|
|
@ -1138,6 +1138,9 @@ Value dhtput(const Array& params, bool fHelp) |
|
|
|
"dhtput <username> <resource> <s(ingle)/m(ulti)> <value> <sig_user> <seq>\n" |
|
|
|
"dhtput <username> <resource> <s(ingle)/m(ulti)> <value> <sig_user> <seq>\n" |
|
|
|
"Store resource in dht network"); |
|
|
|
"Store resource in dht network"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !ses ) |
|
|
|
|
|
|
|
return Value(); |
|
|
|
|
|
|
|
|
|
|
|
EnsureWalletIsUnlocked(); |
|
|
|
EnsureWalletIsUnlocked(); |
|
|
|
|
|
|
|
|
|
|
|
string strUsername = params[0].get_str(); |
|
|
|
string strUsername = params[0].get_str(); |
|
|
@ -1181,6 +1184,9 @@ Value dhtget(const Array& params, bool fHelp) |
|
|
|
"dhtget <username> <resource> <s(ingle)/m(ulti)>\n" |
|
|
|
"dhtget <username> <resource> <s(ingle)/m(ulti)>\n" |
|
|
|
"Get resource from dht network"); |
|
|
|
"Get resource from dht network"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !ses ) |
|
|
|
|
|
|
|
return Array(); |
|
|
|
|
|
|
|
|
|
|
|
string strUsername = params[0].get_str(); |
|
|
|
string strUsername = params[0].get_str(); |
|
|
|
string strResource = params[1].get_str(); |
|
|
|
string strResource = params[1].get_str(); |
|
|
|
string strMulti = params[2].get_str(); |
|
|
|
string strMulti = params[2].get_str(); |
|
|
|