0.7.0
Changes (Breaking)
BlockId has been added as a core type representing the hash of a block header and also contains the block number. Previously this library treated these values as Checksum256 types which wasn't entirely correct.
The 0.7.0 update makes changes to accomodate for this, some of which may break reverse compatibility if your application is strictly expecting certain types. Listed below is a summary of these changes.
- The
get_block()
andget_block_header_state()
API methods parameters now expect aBlockId
instead of aChecksum256Type
. - The API Client
GetBlockResponse
fromget_block()
,GetInfoResponse
fromget_info()
, andGetTransactionStatusResponse
fromget_transaction_status()
calls now returnBlockId
typed values. - The P2P Client
HandshakeMessage
,ChainSizeMessage
,NoticeMessage
,RequestMessage
, andBlockHeader
now communicate usingBlockId
typed values. - The P2P Client
blockNum()
method now returns aUInt32
value instead of a number. - The P2P Client
id()
method now returns aBlockId
value instead of aChecksum256
.
For the majority of applications, these changes should not impact your application, as the BlockId
implementation is very similar to the Checksum256
implementation. It will however provide applications the ability to work with BlockId
values more easily, including extracting the block number from the hash with the .blockNum()
method on each instance.
Full Changelog: 0.6.11...0.7.0