From 78c117ca4c87e78328344bf27e0e258cc8827c25 Mon Sep 17 00:00:00 2001 From: mariko Date: Wed, 17 Nov 2021 16:26:53 +0900 Subject: [PATCH 1/2] fix: Modify omission of change to change ValidatorSet to VoterSet for `maverick` --- test/maverick/consensus/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/maverick/consensus/state.go b/test/maverick/consensus/state.go index 3b0b60929..941144ddd 100644 --- a/test/maverick/consensus/state.go +++ b/test/maverick/consensus/state.go @@ -1807,7 +1807,7 @@ func (cs *State) signVote( return nil, errPubKeyIsNotSet } addr := cs.privValidatorPubKey.Address() - valIdx, _ := cs.Validators.GetByAddress(addr) + valIdx, _ := cs.Voters.GetByAddress(addr) vote := &types.Vote{ ValidatorAddress: addr, From 2bac1b2ae27b7314da15e2465ce11395cdf9d030 Mon Sep 17 00:00:00 2001 From: mariko Date: Fri, 19 Nov 2021 11:10:56 +0900 Subject: [PATCH 2/2] fix: Change the description of maverick in contibuting.md --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8bb9671e2..d795741f8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -338,8 +338,8 @@ cd test/e2e && \ ### Maverick -**If you're changing the code in `consensus` package, please make sure to -replicate all the changes in `./test/maverick/consensus`**. Maverick is a +**If you're changing the code in `consensus` package or `node` package, please make sure to +replicate all the changes in `./test/maverick/consensus`** and `./test/maverick/node`**. Maverick is a byzantine node used to assert that the validator gets punished for malicious behavior.