Use the new bloom Reload API.
This fixes a race caught by the go race detector. ok @jrick
This commit is contained in:
parent
8f375ba391
commit
9cecf1dc2e
1 changed files with 1 additions and 1 deletions
2
peer.go
2
peer.go
|
@ -1092,7 +1092,7 @@ func (p *peer) handleFilterLoadMsg(msg *btcwire.MsgFilterLoad) {
|
|||
p.disableRelayTx = false
|
||||
p.relayMtx.Unlock()
|
||||
|
||||
p.filter = bloom.LoadFilter(msg)
|
||||
p.filter.Reload(msg)
|
||||
}
|
||||
|
||||
// handleGetAddrMsg is invoked when a peer receives a getaddr bitcoin message
|
||||
|
|
Loading…
Reference in a new issue