OSDN Git Service

accumulate vote (#103)
[bytom/vapor.git] / netsync / consensusmgr / consensus_msg.go
index a6bbb7b..40f74c7 100644 (file)
@@ -48,11 +48,11 @@ type BlockSignatureMsg struct {
        BlockHash [32]byte
        Height    uint64
        Signature []byte
-       PubKey    []byte
+       PubKey    [64]byte
 }
 
 //NewBlockSignatureMsg create new block signature msg.
-func NewBlockSignatureMsg(blockHash bc.Hash, height uint64, signature []byte, pubKey []byte) ConsensusMessage {
+func NewBlockSignatureMsg(blockHash bc.Hash, height uint64, signature []byte, pubKey [64]byte) ConsensusMessage {
        hash := blockHash.Byte32()
        return &BlockSignatureMsg{BlockHash: hash, Height: height, Signature: signature, PubKey: pubKey}
 }