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', {
|
||||
"privateKeyID": options.privateKeyID,
|
||||
"ttl": options.ttl || 10,
|
||||
"ttl": options.ttl || 1000,
|
||||
"minPow": options.minPow || 0.002,
|
||||
"powTime": options.powTime || 1
|
||||
"powTime": options.powTime || 1000
|
||||
}, (error, message) => {
|
||||
if(error){
|
||||
cb(error);
|
||||
|
@ -105,10 +105,10 @@ class StatusGasRelayer {
|
|||
}
|
||||
|
||||
const sendOptions = {
|
||||
ttl: options.ttl || 10,
|
||||
ttl: options.ttl || 1000,
|
||||
sig: kid,
|
||||
powTarget: options.powTarget || 0.002,
|
||||
powTime: options.powTime || 1,
|
||||
powTarget: options.powTarget || 1,
|
||||
powTime: options.powTime || 20,
|
||||
topic: this.topic,
|
||||
payload: this.web3.utils.toHex(this.message)
|
||||
};
|
||||
|
@ -121,7 +121,7 @@ class StatusGasRelayer {
|
|||
}
|
||||
sendOptions.symKeyID = skid;
|
||||
}
|
||||
console.log(sendOptions);
|
||||
|
||||
const msgId = await this.web3.shh.post(sendOptions);
|
||||
return msgId;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue