Branch: refs/heads/master
  Home:   https://github.com/conformal/btcutil
  Commit: 2db41b1f5645d06c25b59c6471b73bc7fd1e3b68
      
https://github.com/conformal/btcutil/commit/2db41b1f5645d06c25b59c6471b73bc7fd1e3b68
  Author: Dave Collins <[email protected]>
  Date:   2014-03-24 (Mon, 24 Mar 2014)

  Changed paths:
    M block.go
    M block_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Remove deprecated TxShas func from btcutil.Block.

This commit removes the previously deprecated TxShas function from
btcutil.Block.  The preferred method to access transaction hashes is via
the Sha function on each btcutil.Tx contained within the block.

For example, the following illustrates how convert the old TxShas approach
to the new method:

OLD:

for i, sha := range block.TxShas() {
        // use sha
}

NEW:

for i, tx := range block.Transactions() {
        // use tx.Sha()
}

This commit also updates the tests for the removed function.


Reply via email to