Skip to content

Commit

Permalink
Use the new bloom Reload API.
Browse files Browse the repository at this point in the history
This fixes a race caught by the go race detector.
ok @jrick
  • Loading branch information
dajohi committed Aug 30, 2014
1 parent 8f375ba commit 9cecf1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peer.go
Expand Up @@ -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
Expand Down

0 comments on commit 9cecf1d

Please sign in to comment.