mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
whisper: pow exchange and bloom exchange protocols implemented
This commit is contained in:
parent
aef7580bea
commit
9ecbc535c7
1 changed files with 7 additions and 0 deletions
|
|
@ -273,6 +273,13 @@ func (w *Whisper) SetMinimumPowTest(val float64) {
|
|||
w.settings.Store(minPowToleranceIdx, val)
|
||||
}
|
||||
|
||||
// SetBloomFilterTest sets the Bloom Filter in test environment
|
||||
func (w *Whisper) SetBloomFilterTest(bloom []byte) {
|
||||
w.settings.Store(bloomFilterIdx, bloom)
|
||||
w.notifyPeersAboutBloomFilterChange(bloom)
|
||||
w.settings.Store(bloomFilterToleranceIdx, bloom)
|
||||
}
|
||||
|
||||
func (w *Whisper) notifyPeersAboutPowRequirementChange(pow float64) {
|
||||
arr := w.getPeers()
|
||||
for _, p := range arr {
|
||||
|
|
|
|||
Loading…
Reference in a new issue