-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove NextVoters
from state
#100
Changes from all commits
79817b5
cc03b38
dce9488
95cab29
1f69835
d2e155f
77700dd
e44b93e
d882bb5
e0b312d
88c436e
88afe5f
46dd04c
f0c1818
f9a9fad
69c1860
2283f43
2e4c788
d2a5d1f
65dd60d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ package unmarshaler | |
|
||
import ( | ||
"encoding/json" | ||
|
||
"gopkg.in/yaml.v3" | ||
) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import ( | |
"time" | ||
|
||
"github.com/stretchr/testify/assert" | ||
"github.com/tendermint/tendermint/libs/rand" | ||
|
||
dbm "github.com/tendermint/tm-db" | ||
|
||
|
@@ -30,10 +31,13 @@ func initializeValidatorState(valAddr []byte, height int64) dbm.DB { | |
{Address: valAddr, StakingPower: 1}, | ||
} | ||
state := sm.State{ | ||
VoterParams: types.DefaultVoterParams(), | ||
LastBlockHeight: 0, | ||
LastBlockTime: tmtime.Now(), | ||
LastProofHash: rand.Bytes(10), | ||
Validators: types.NewValidatorSet(vals), | ||
NextValidators: types.NewValidatorSet(vals), | ||
Voters: types.ToVoterAll(vals), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why don't you use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The existing test code used |
||
LastHeightValidatorsChanged: 1, | ||
ConsensusParams: types.ConsensusParams{ | ||
Evidence: types.EvidenceParams{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property was added in #99. So, if #99 is merged, check it later, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll check it after merging