Lower default MinimumPoW
This commit lowers the default minimum pow for both Waku & Whisper. We need to override the value as mobile clients have this already stored in the database. This is done in order to support sending of images.
This commit is contained in:
parent
12c7253b83
commit
3e312cb167
|
@ -633,6 +633,16 @@ func (c *NodeConfig) UpdateWithMobileDefaults() {
|
|||
if c.APIModules == "" {
|
||||
c.APIModules = "net,web3,eth"
|
||||
}
|
||||
|
||||
// Override defaultMinPoW passed by the mobile
|
||||
if c.WakuConfig.Enabled {
|
||||
c.WakuConfig.MinimumPoW = WakuMinimumPoW
|
||||
}
|
||||
|
||||
if c.WhisperConfig.Enabled {
|
||||
c.WakuConfig.MinimumPoW = WhisperMinimumPoW
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// NewNodeConfigWithDefaultsAndFiles creates new node configuration object
|
||||
|
|
|
@ -22,13 +22,13 @@ const (
|
|||
DefaultGas = 180000
|
||||
|
||||
// WhisperMinimumPoW amount of work for Whisper message to be added to sending queue
|
||||
WhisperMinimumPoW = 0.001
|
||||
WhisperMinimumPoW = 0.000002
|
||||
|
||||
// WhisperTTL is time to live for messages, in seconds
|
||||
WhisperTTL = 120
|
||||
|
||||
// WakuMinimumPoW amount of work for Whisper message to be added to sending queue
|
||||
WakuMinimumPoW = 0.001
|
||||
WakuMinimumPoW = 0.000002
|
||||
|
||||
// WakuTTL is time to live for messages, in seconds
|
||||
WakuTTL = 120
|
||||
|
|
Loading…
Reference in New Issue