Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeBlock ¶
func DeserializeBlock(serializedBlock []byte) (*storePb.BlockWithRWSet, error)
DeserializeBlock returns a deserialized block for given serialized bytes
Types ¶
type BlockWithSerializedInfo ¶
type BlockWithSerializedInfo struct { Block *commonPb.Block Meta *storePb.SerializedBlock //Block without Txs SerializedMeta []byte Txs []*commonPb.Transaction SerializedTxs [][]byte TxRWSets []*commonPb.TxRWSet SerializedTxRWSets [][]byte ContractEvents []*commonPb.ContractEvent SerializedContractEvents [][]byte }
BlockWithSerializedInfo contains block,txs and corresponding serialized data
func SerializeBlock ¶
func SerializeBlock(blockWithRWSet *storePb.BlockWithRWSet) ([]byte, *BlockWithSerializedInfo, error)
SerializeBlock serialized a BlockWithRWSet and return serialized data which combined as a BlockWithSerializedInfo
Click to show internal directories.
Click to hide internal directories.