OSDN Git Service

Opz merkleBlock msg struct
authorYahtoo Ma <yahtoo.ma@gmail.com>
Wed, 22 Aug 2018 10:38:34 +0000 (18:38 +0800)
committerYahtoo Ma <yahtoo.ma@gmail.com>
Wed, 22 Aug 2018 10:38:34 +0000 (18:38 +0800)
netsync/message.go

index 8d1021b..3c9b62d 100644 (file)
@@ -384,16 +384,13 @@ func NewGetMerkleBlockMessage(height uint64, rawHash [32]byte) *GetMerkleBlockMe
        return &GetMerkleBlockMessage{Height: height, RawHash: rawHash}
 }
 
-//MerkleBlockMessage return the merkle block to client
 type MerkleBlockMessage struct {
-       RawBlockHeader   []byte
-       TransactionCount uint64
-       TxHashes         [][32]byte
-       TxFlags          []byte
-       RawTxDatas       [][]byte
-       StatusHashes     [][32]byte
-       StatusFlags      []byte
-       RawTxStatuses    [][]byte
+       RawBlockHeader []byte
+       TxHashes       [][32]byte
+       RawTxDatas     [][]byte
+       StatusHashes   [][32]byte
+       RawTxStatuses  [][]byte
+       Flags          []byte
 }
 
 //GetBlock get block from msg