View definition

(*MsgBlock).Deserialize

Defined in github.com/btcsuite/btcd/wire/msgblock.go

Description

Deserialize decodes a block from r into the receiver using a format that is suitable for long-term storage such as a database while respecting the Version field in the block. This function differs from BtcDecode in that BtcDecode decodes from the bitcoin wire protocol as it was sent across the network. The wire encoding can technically differ depending on the protocol version and doesn't even really need to match the format of a stored block at all. As of the time this comment was written, the encoded block is the same in both instances, but there is a distinct difference and separating the two allows the API to be flexible enough to deal with changes.

Deserialize is referenced in 4 repositories

github.com/btcsuite/btcd github.com/btcsuite/btcutil github.com/btcsuite/btcrpcclient

...