Skip to content

Commit

Permalink
client/btc: fix racing test
Browse files Browse the repository at this point in the history
  • Loading branch information
norwnd authored and chappjc committed Feb 22, 2023
1 parent 2d99cc4 commit 9a612a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/asset/btc/spv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (c *tNeutrinoClient) GetBlockHash(blockHeight int64) (*chainhash.Hash, erro
func (c *tNeutrinoClient) BestBlock() (*headerfs.BlockStamp, error) {
c.blockchainMtx.RLock()
if c.getBestBlockHashErr != nil {
c.blockchainMtx.RUnlock()
defer c.blockchainMtx.RUnlock() // reading c.getBestBlockHashErr below
return nil, c.getBestBlockHashErr
}
c.blockchainMtx.RUnlock()
Expand Down

0 comments on commit 9a612a3

Please sign in to comment.