Skip to content

Commit

Permalink
change FoundationSubsidy use
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Oct 29, 2024
1 parent 7af9b53 commit 6754b6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion persist/sqlite/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,10 @@ func TestMetricCirculatingSupply(t *testing.T) {

cm := chain.NewManager(store, genesisState)

circulatingSupply := genesisState.FoundationSubsidy().Value
var circulatingSupply types.Currency
if foundationSubsidy, ok := genesisState.FoundationSubsidy(); ok {
circulatingSupply = circulatingSupply.Add(foundationSubsidy.Value)
}
for _, txn := range genesisBlock.Transactions {
for _, sco := range txn.SiacoinOutputs {
circulatingSupply = circulatingSupply.Add(sco.Value)
Expand Down

0 comments on commit 6754b6a

Please sign in to comment.