X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=netsync%2Fconsensusmgr%2Fconsensus_msg.go;fp=netsync%2Fconsensusmgr%2Fconsensus_msg.go;h=0015cca9ec7809b9c474fc102ad8b20604b9054d;hp=40f74c79c498414ba14ac3892ca73d7a65b42d54;hb=eea317c609eee0bb184a6cdfdda39d9f336f92c4;hpb=283ba9b55c22010a6180cee27c031eeec7a23b5e diff --git a/netsync/consensusmgr/consensus_msg.go b/netsync/consensusmgr/consensus_msg.go index 40f74c79..0015cca9 100644 --- a/netsync/consensusmgr/consensus_msg.go +++ b/netsync/consensusmgr/consensus_msg.go @@ -48,11 +48,11 @@ type BlockSignatureMsg struct { BlockHash [32]byte Height uint64 Signature []byte - PubKey [64]byte + PubKey []byte } //NewBlockSignatureMsg create new block signature msg. -func NewBlockSignatureMsg(blockHash bc.Hash, height uint64, signature []byte, pubKey [64]byte) ConsensusMessage { +func NewBlockSignatureMsg(blockHash bc.Hash, height uint64, signature, pubKey []byte) ConsensusMessage { hash := blockHash.Byte32() return &BlockSignatureMsg{BlockHash: hash, Height: height, Signature: signature, PubKey: pubKey} }