Ray
2017-03-29 16:10:43 UTC
Hi,
I'm trying to use the "dht" command from libtorrent/tools/dht_put.cpp
but it don't seems to work.
-First I generate the keys with:
$ ./dht gen-key keys
-Then I try to store the string "test" as a mutable object in the DHT:
$ ./dht mput keys test
bootstrapping
\
bootstrap done.
MPUT public key:
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
DHT put complete (success=0
key=7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
sig=312abe025b5e5c54102671041a2371a3074fa50ba7831d6cfb1dada388ce1faea312e8c269cf2abeeb914e756d208c961969042c70dee40df481a218ab97c30c
salt= seq=1)
-Finally I try to grab what I have just store:
$ ./dht mget
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
load dht state from .dht
bootstrapping
|
bootstrap done.
MGET 7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
auth: <uninitialized>
If I have understood correctly the mget didn't work because the mput
didn't work either, since we can see that "success=0". But I don't know
why. Does someone have an idea ?
Thanks.
I'm trying to use the "dht" command from libtorrent/tools/dht_put.cpp
but it don't seems to work.
-First I generate the keys with:
$ ./dht gen-key keys
-Then I try to store the string "test" as a mutable object in the DHT:
$ ./dht mput keys test
bootstrapping
\
bootstrap done.
MPUT public key:
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
DHT put complete (success=0
key=7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
sig=312abe025b5e5c54102671041a2371a3074fa50ba7831d6cfb1dada388ce1faea312e8c269cf2abeeb914e756d208c961969042c70dee40df481a218ab97c30c
salt= seq=1)
-Finally I try to grab what I have just store:
$ ./dht mget
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
load dht state from .dht
bootstrapping
|
bootstrap done.
MGET 7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
auth: <uninitialized>
If I have understood correctly the mget didn't work because the mput
didn't work either, since we can see that "success=0". But I don't know
why. Does someone have an idea ?
Thanks.