msg: &BlockSignatureMsg{
BlockHash: [32]byte{0x01},
Signature: []byte{0x00},
- PubKey: [64]byte{0x01},
+ PubKey: []byte{0x01},
},
msgType: blockSignatureByte,
},
BlockHash: [32]byte{0x01},
Height: 100,
Signature: []byte{0x00},
- PubKey: [64]byte{0x01},
+ PubKey: []byte{0x01},
}
signatureBroadcastMsg := NewBroadcastMsg(NewBlockSignatureMsg(bc.NewHash(blockSignMsg.BlockHash), blockSignMsg.Height, blockSignMsg.Signature, blockSignMsg.PubKey), consensusChannel)
BlockHash: [32]byte{0x01},
Height: 100,
Signature: []byte{0x00},
- PubKey: [64]byte{0x01},
+ PubKey: []byte{0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
}
gotMsg := NewBlockSignatureMsg(bc.NewHash(msg.BlockHash), msg.Height, msg.Signature, msg.PubKey)