summaryrefslogtreecommitdiff
path: root/agreement/selector.go
diff options
context:
space:
mode:
Diffstat (limited to 'agreement/selector.go')
-rw-r--r--agreement/selector.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/agreement/selector.go b/agreement/selector.go
index 623c4d23e..74bfdebdd 100644
--- a/agreement/selector.go
+++ b/agreement/selector.go
@@ -64,7 +64,7 @@ func membership(l LedgerReader, addr basics.Address, r basics.Round, p period, s
balanceRound := balanceRound(r, cparams)
seedRound := seedRound(r, cparams)
- record, err := l.Lookup(balanceRound, addr)
+ record, err := l.LookupAgreement(balanceRound, addr)
if err != nil {
err = fmt.Errorf("Service.initializeVote (r=%d): Failed to obtain balance record for address %v in round %d: %w", r, addr, balanceRound, err)
return
@@ -82,7 +82,7 @@ func membership(l LedgerReader, addr basics.Address, r basics.Round, p period, s
return
}
- m.Record = committee.BalanceRecord{AccountData: record, Addr: addr}
+ m.Record = committee.BalanceRecord{OnlineAccountData: record, Addr: addr}
m.Selector = selector{Seed: seed, Round: r, Period: p, Step: s}
m.TotalMoney = total
return m, nil