|
@ -70,7 +70,7 @@ func TestByzantine(t *testing.T) { |
|
|
conR.SetLogger(logger.With("validator", i)) |
|
|
conR.SetLogger(logger.With("validator", i)) |
|
|
conR.SetEventBus(eventBus) |
|
|
conR.SetEventBus(eventBus) |
|
|
|
|
|
|
|
|
var conRI p2p.Reactor // nolint: gotype
|
|
|
|
|
|
|
|
|
var conRI p2p.Reactor // nolint: gotype, gosimple
|
|
|
conRI = conR |
|
|
conRI = conR |
|
|
|
|
|
|
|
|
if i == 0 { |
|
|
if i == 0 { |
|
@ -293,12 +293,12 @@ func (privVal *ByzantinePrivValidator) SignVote(chainID string, vote *types.Vote |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (privVal *ByzantinePrivValidator) SignProposal(chainID string, proposal *types.Proposal) (err error) { |
|
|
func (privVal *ByzantinePrivValidator) SignProposal(chainID string, proposal *types.Proposal) (err error) { |
|
|
proposal.Signature, err = privVal.Sign(types.SignBytes(chainID, proposal)) |
|
|
|
|
|
|
|
|
proposal.Signature, _ = privVal.Sign(types.SignBytes(chainID, proposal)) |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (privVal *ByzantinePrivValidator) SignHeartbeat(chainID string, heartbeat *types.Heartbeat) (err error) { |
|
|
func (privVal *ByzantinePrivValidator) SignHeartbeat(chainID string, heartbeat *types.Heartbeat) (err error) { |
|
|
heartbeat.Signature, err = privVal.Sign(types.SignBytes(chainID, heartbeat)) |
|
|
|
|
|
|
|
|
heartbeat.Signature, _ = privVal.Sign(types.SignBytes(chainID, heartbeat)) |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|