Skip to content

Commit 52fff2c

Browse files
algorandskiycce
authored andcommitted
Use LookupAgreement AlgorandFullNode.VotingKeys() (algorand#3050)
## Summary Use LookupAgreement in AlgorandFullNode.VotingKeys() Post algorand#3046 fixes.
1 parent 2cf0ca7 commit 52fff2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/node.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ func (node *AlgorandFullNode) VotingKeys(votingRound, keysRound basics.Round) []
11131113
keys := node.accountManager.Keys(votingRound)
11141114

11151115
participations := make([]account.Participation, 0, len(keys))
1116-
accountsData := make(map[basics.Address]basics.AccountData, len(keys))
1116+
accountsData := make(map[basics.Address]basics.OnlineAccountData, len(keys))
11171117
matchingAccountsKeys := make(map[basics.Address]bool)
11181118
mismatchingAccountsKeys := make(map[basics.Address]int)
11191119
const bitMismatchingVotingKey = 1
@@ -1122,7 +1122,7 @@ func (node *AlgorandFullNode) VotingKeys(votingRound, keysRound basics.Round) []
11221122
acctData, hasAccountData := accountsData[part.Parent]
11231123
if !hasAccountData {
11241124
var err error
1125-
acctData, _, err = node.ledger.LookupWithoutRewards(keysRound, part.Parent)
1125+
acctData, err = node.ledger.LookupAgreement(keysRound, part.Parent)
11261126
if err != nil {
11271127
node.log.Warnf("node.VotingKeys: Account %v not participating: cannot locate account for round %d : %v", part.Address(), keysRound, err)
11281128
continue

0 commit comments

Comments
 (0)