Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcrpcclient
  Commit: 982229439aa78a43c7d68d6b68f7ac98722502de
      
https://github.com/btcsuite/btcrpcclient/commit/982229439aa78a43c7d68d6b68f7ac98722502de
  Author: Dave Collins <da...@conformal.com>
  Date:   2016-09-15 (Thu, 15 Sep 2016)

  Changed paths:
    M chain.go

  Log Message:
  -----------
  Return wire.MsgBlock from GetBlock(Async).

This modifies the return value of the GetBlock and GetBlockAsync
functions to a raw *wire.MsgBlock instead of *btcutil.Block.

This is being done because a btcutil.Block assumes there is a height
associated with the block and the block height is not part of a raw
serialized block as returned by the underlying non-verbose RPC API
getblock call and thus is not available to populate a btcutil.Block
correctly.

A raw wire.Block correctly matches what the underlying RPC call is
actually returning and thus avoids the confusion that could occur.


Reply via email to