|
|
@ -5,6 +5,7 @@ import ( |
|
|
|
"encoding/gob" |
|
|
|
"encoding/gob" |
|
|
|
"log" |
|
|
|
"log" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/rlp" |
|
|
|
"github.com/ethereum/go-ethereum/rlp" |
|
|
|
"github.com/harmony-one/harmony/core/types" |
|
|
|
"github.com/harmony-one/harmony/core/types" |
|
|
|
|
|
|
|
|
|
|
@ -34,7 +35,7 @@ const ( |
|
|
|
// BlockchainSyncMessage is a struct for blockchain sync message.
|
|
|
|
// BlockchainSyncMessage is a struct for blockchain sync message.
|
|
|
|
type BlockchainSyncMessage struct { |
|
|
|
type BlockchainSyncMessage struct { |
|
|
|
BlockHeight int |
|
|
|
BlockHeight int |
|
|
|
BlockHashes [][32]byte |
|
|
|
BlockHashes []common.Hash |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// BlockchainSyncMessageType represents BlockchainSyncMessageType type.
|
|
|
|
// BlockchainSyncMessageType represents BlockchainSyncMessageType type.
|
|
|
|