Add missing error check
This commit is contained in:
parent
59e825d796
commit
37fbff291c
1 changed files with 1 additions and 1 deletions
2
chain.go
2
chain.go
|
@ -83,7 +83,7 @@ func (r FutureGetBlockResult) Receive() (*btcutil.Block, error) {
|
|||
|
||||
// Deserialize the block and return it.
|
||||
var msgBlock btcwire.MsgBlock
|
||||
msgBlock.Deserialize(bytes.NewReader(serializedBlock))
|
||||
err = msgBlock.Deserialize(bytes.NewReader(serializedBlock))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue