mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-15 11:46:11 +00:00
WIP consensus
This commit is contained in:
+3
-1
@@ -94,7 +94,9 @@ func (b *Block) Hash() cmn.HexBytes {
|
||||
// MakePartSet returns a PartSet containing parts of a serialized block.
|
||||
// This is the form in which the block is gossipped to peers.
|
||||
func (b *Block) MakePartSet(partSize int) *PartSet {
|
||||
bz, err := cdc.MarshalBinaryBare(b)
|
||||
// We prefix the byte length, so that unmarshaling
|
||||
// can easily happen via a reader.
|
||||
bz, err := cdc.MarshalBinary(b)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
@@ -87,3 +87,10 @@ func (pv *MockPV) SignHeartbeat(chainID string, heartbeat *Heartbeat) error {
|
||||
func (pv *MockPV) String() string {
|
||||
return fmt.Sprintf("MockPV{%v}", pv.GetAddress())
|
||||
}
|
||||
|
||||
// XXX: Implement.
|
||||
func (pv *MockPV) DisableChecks() {
|
||||
// Currently this does nothing,
|
||||
// as MockPV has no safety checks at all.
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user