Skip to content

Commit

Permalink
Update for recent wire API hash error changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Apr 17, 2015
1 parent e330838 commit 9556412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,8 @@ func (b *Block) Sha() *wire.ShaHash {
return b.blockSha
}

// Generate the block hash. Ignore the error since BlockSha can't
// currently fail.
sha, _ := b.msgBlock.BlockSha()

// Cache the block hash and return it.
sha := b.msgBlock.BlockSha()
b.blockSha = &sha
return &sha
}
Expand Down
5 changes: 1 addition & 4 deletions tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ func (t *Tx) Sha() *wire.ShaHash {
return t.txSha
}

// Generate the transaction hash. Ignore the error since TxSha can't
// currently fail.
sha, _ := t.msgTx.TxSha()

// Cache the hash and return it.
sha := t.msgTx.TxSha()
t.txSha = &sha
return &sha
}
Expand Down

0 comments on commit 9556412

Please sign in to comment.