mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
make byzantine logic testable
This commit is contained in:
@@ -163,6 +163,10 @@ func (privVal *PrivValidator) Reset() {
|
||||
privVal.Save()
|
||||
}
|
||||
|
||||
func (privVal *PrivValidator) GetAddress() []byte {
|
||||
return privVal.Address
|
||||
}
|
||||
|
||||
func (privVal *PrivValidator) SignVote(chainID string, vote *Vote) error {
|
||||
privVal.mtx.Lock()
|
||||
defer privVal.mtx.Unlock()
|
||||
@@ -231,6 +235,7 @@ func (privVal *PrivValidator) signBytesHRS(height, round int, step int8, signByt
|
||||
privVal.save()
|
||||
|
||||
return signature, nil
|
||||
|
||||
}
|
||||
|
||||
func (privVal *PrivValidator) String() string {
|
||||
|
||||
Reference in New Issue
Block a user