summaryrefslogtreecommitdiff
path: root/data/ledger.go
diff options
context:
space:
mode:
Diffstat (limited to 'data/ledger.go')
-rw-r--r--data/ledger.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/ledger.go b/data/ledger.go
index 3cc526889..0767d2948 100644
--- a/data/ledger.go
+++ b/data/ledger.go
@@ -101,7 +101,7 @@ func LoadLedger(
l := &Ledger{
log: log,
}
- genesisInitState := ledger.InitState{
+ genesisInitState := ledgercore.InitState{
Block: genBlock,
Accounts: genesisBal.Balances,
GenesisHash: genesisHash,
@@ -184,7 +184,7 @@ func (l *Ledger) Circulation(r basics.Round) (basics.MicroAlgos, error) {
}
}
- totals, err := l.Totals(r)
+ totals, err := l.OnlineTotals(r) //nolint:typecheck
if err != nil {
return basics.MicroAlgos{}, err
}
@@ -196,12 +196,12 @@ func (l *Ledger) Circulation(r basics.Round) (basics.MicroAlgos, error) {
circulation.elements[1],
{
round: r,
- onlineMoney: totals.Online.Money},
+ onlineMoney: totals},
},
})
}
- return totals.Online.Money, nil
+ return totals, nil
}
// Seed gives the VRF seed that was agreed on in a given round,
@@ -316,7 +316,7 @@ func (l *Ledger) ConsensusVersion(r basics.Round) (protocol.ConsensusVersion, er
// EnsureValidatedBlock ensures that the block, and associated certificate c, are
// written to the ledger, or that some other block for the same round is
// written to the ledger.
-func (l *Ledger) EnsureValidatedBlock(vb *ledger.ValidatedBlock, c agreement.Certificate) {
+func (l *Ledger) EnsureValidatedBlock(vb *ledgercore.ValidatedBlock, c agreement.Certificate) {
round := vb.Block().Round()
for l.LastRound() < round {