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

  Changed paths:
    M rpcserver.go

  Log Message:
  -----------
  Update handleGetBlock to not use deprecated func.

Rather than using the deprecated TxShas function on a btcutil.Block,
convert handleGetBlock to use the newer preferred method of ranging over
the Transactions to obtain the cached hash of each transaction.

This is a little more efficient since it can avoid creating and caching an
extra slice to keep the hashes in addition to having the hash cached with
each transaction.


Reply via email to