summaryrefslogtreecommitdiff
path: root/agreement/agreementtest/simulate_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'agreement/agreementtest/simulate_test.go')
-rw-r--r--agreement/agreementtest/simulate_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/agreement/agreementtest/simulate_test.go b/agreement/agreementtest/simulate_test.go
index 086349b82..c2dcbe233 100644
--- a/agreement/agreementtest/simulate_test.go
+++ b/agreement/agreementtest/simulate_test.go
@@ -92,7 +92,7 @@ type testBlockFactory struct {
Owner int
}
-func (f testBlockFactory) AssembleBlock(r basics.Round, deadline time.Time) (agreement.ValidatedBlock, error) {
+func (f testBlockFactory) AssembleBlock(r basics.Round) (agreement.ValidatedBlock, error) {
return testValidatedBlock{Inside: bookkeeping.Block{BlockHeader: bookkeeping.BlockHeader{Round: r}}}, nil
}
@@ -203,7 +203,7 @@ func (l *testLedger) LookupDigest(r basics.Round) (crypto.Digest, error) {
return l.entries[r].Digest(), nil
}
-func (l *testLedger) Lookup(r basics.Round, a basics.Address) (basics.AccountData, error) {
+func (l *testLedger) LookupAgreement(r basics.Round, a basics.Address) (basics.OnlineAccountData, error) {
l.mu.Lock()
defer l.mu.Unlock()
@@ -211,7 +211,7 @@ func (l *testLedger) Lookup(r basics.Round, a basics.Address) (basics.AccountDat
err := fmt.Errorf("Lookup called on future round: %v > %v! (this is probably a bug)", r, l.nextRound)
panic(err)
}
- return l.state[a], nil
+ return l.state[a].OnlineAccountData(), nil
}
func (l *testLedger) Circulation(r basics.Round) (basics.MicroAlgos, error) {
@@ -226,7 +226,7 @@ func (l *testLedger) Circulation(r basics.Round) (basics.MicroAlgos, error) {
var sum basics.MicroAlgos
var overflowed bool
for _, rec := range l.state {
- sum, overflowed = basics.OAddA(sum, rec.VotingStake())
+ sum, overflowed = basics.OAddA(sum, rec.OnlineAccountData().VotingStake())
if overflowed {
panic("circulation computation overflowed")
}