Use the new bloom Reload API.

This fixes a race caught by the go race detector.
ok @jrick
This commit is contained in:
David Hill 2014-08-30 12:14:56 -04:00
parent 8f375ba391
commit 9cecf1dc2e

View file

@ -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