Setting minPow default for status cluster
This commit is contained in:
parent
726d91f749
commit
4236ae0cf6
|
@ -73,9 +73,9 @@ class StatusGasRelayer {
|
||||||
|
|
||||||
web3.shh.subscribe('messages', {
|
web3.shh.subscribe('messages', {
|
||||||
"privateKeyID": options.privateKeyID,
|
"privateKeyID": options.privateKeyID,
|
||||||
"ttl": options.ttl || 10,
|
"ttl": options.ttl || 1000,
|
||||||
"minPow": options.minPow || 0.002,
|
"minPow": options.minPow || 0.002,
|
||||||
"powTime": options.powTime || 1
|
"powTime": options.powTime || 1000
|
||||||
}, (error, message) => {
|
}, (error, message) => {
|
||||||
if(error){
|
if(error){
|
||||||
cb(error);
|
cb(error);
|
||||||
|
@ -105,10 +105,10 @@ class StatusGasRelayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
const sendOptions = {
|
const sendOptions = {
|
||||||
ttl: options.ttl || 10,
|
ttl: options.ttl || 1000,
|
||||||
sig: kid,
|
sig: kid,
|
||||||
powTarget: options.powTarget || 0.002,
|
powTarget: options.powTarget || 1,
|
||||||
powTime: options.powTime || 1,
|
powTime: options.powTime || 20,
|
||||||
topic: this.topic,
|
topic: this.topic,
|
||||||
payload: this.web3.utils.toHex(this.message)
|
payload: this.web3.utils.toHex(this.message)
|
||||||
};
|
};
|
||||||
|
@ -121,7 +121,7 @@ class StatusGasRelayer {
|
||||||
}
|
}
|
||||||
sendOptions.symKeyID = skid;
|
sendOptions.symKeyID = skid;
|
||||||
}
|
}
|
||||||
console.log(sendOptions);
|
|
||||||
const msgId = await this.web3.shh.post(sendOptions);
|
const msgId = await this.web3.shh.post(sendOptions);
|
||||||
return msgId;
|
return msgId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue