use a common type for block hash

Signed-off-by: Leo Chen <leo@harmony.one>
pull/212/head
Leo Chen 6 years ago
parent 3cb54087b7
commit 91b4219d25
  1. 3
      api/proto/node/node.go

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

Loading…
Cancel
Save