|
|
@ -121,7 +121,7 @@ class LokiMessageAPI {
|
|
|
|
const url = `${nodeUrl}${this.messageServerPort}/v1/storage_rpc`;
|
|
|
|
const url = `${nodeUrl}${this.messageServerPort}/v1/storage_rpc`;
|
|
|
|
const body = {
|
|
|
|
const body = {
|
|
|
|
method: 'store',
|
|
|
|
method: 'store',
|
|
|
|
args: {
|
|
|
|
params: {
|
|
|
|
pubKey,
|
|
|
|
pubKey,
|
|
|
|
ttl: ttl.toString(),
|
|
|
|
ttl: ttl.toString(),
|
|
|
|
nonce,
|
|
|
|
nonce,
|
|
|
@ -218,7 +218,7 @@ class LokiMessageAPI {
|
|
|
|
const url = `${nodeUrl}${this.messageServerPort}/v1/storage_rpc`;
|
|
|
|
const url = `${nodeUrl}${this.messageServerPort}/v1/storage_rpc`;
|
|
|
|
const body = {
|
|
|
|
const body = {
|
|
|
|
method: 'retrieve',
|
|
|
|
method: 'retrieve',
|
|
|
|
args: {
|
|
|
|
params: {
|
|
|
|
pubKey: ourKey,
|
|
|
|
pubKey: ourKey,
|
|
|
|
lastHash: nodeData.lastHash,
|
|
|
|
lastHash: nodeData.lastHash,
|
|
|
|
},
|
|
|
|
},
|
|
|
|