forked from TrueCloudLab/neoneo-go
native: fix a bug in GetCommitteeMembers
Return standby committee instead of validators.
This commit is contained in:
parent
b0c051b817
commit
dce456f77f
2 changed files with 7 additions and 2 deletions
|
@ -83,6 +83,11 @@ func TestNEO_Vote(t *testing.T) {
|
|||
ic.VM.Load(priv.PublicKey().GetVerificationScript())
|
||||
require.NoError(t, neo.VoteInternal(ic, h, candidates[0]))
|
||||
|
||||
for i := testchain.ValidatorsCount; i < testchain.CommitteeSize(); i++ {
|
||||
priv := testchain.PrivateKey(i)
|
||||
require.NoError(t, neo.RegisterCandidateInternal(ic, priv.PublicKey()))
|
||||
}
|
||||
|
||||
pubs, err = neo.GetValidatorsInternal(bc, ic.DAO)
|
||||
require.NoError(t, err)
|
||||
sortedCandidates := candidates.Copy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue