Skip to content

Commit

Permalink
add FeesCollected to applications_test
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Dec 20, 2024
1 parent d0d58c6 commit 55283e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ledger/applications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ return`
blk.TxnCounter = blk.TxnCounter + 2
blk.Payset = append(blk.Payset, txib1, txib2)
blk.TxnCommitments, err = blk.PaysetCommit()
blk.FeesCollected = basics.MicroAlgos{Raw: txib1.Txn.Fee.Raw + txib2.Txn.Fee.Raw}
a.NoError(err)
err = l.appendUnvalidated(blk)
a.NoError(err)
Expand Down Expand Up @@ -731,6 +732,7 @@ return`
blk.TxnCounter = blk.TxnCounter + 2
blk.Payset = append(blk.Payset, txib1, txib2)
blk.TxnCommitments, err = blk.PaysetCommit()
blk.FeesCollected = basics.MicroAlgos{Raw: txib1.Txn.Fee.Raw + txib2.Txn.Fee.Raw}
a.NoError(err)
err = l.appendUnvalidated(blk)
a.NoError(err)
Expand Down Expand Up @@ -867,6 +869,7 @@ return`
blk.TxnCounter = blk.TxnCounter + 2
blk.Payset = append(blk.Payset, txib1, txib2)
blk.TxnCommitments, err = blk.PaysetCommit()
blk.FeesCollected = basics.MicroAlgos{Raw: txib1.Txn.Fee.Raw + txib2.Txn.Fee.Raw}
a.NoError(err)
err = l.appendUnvalidated(blk)
a.NoError(err)
Expand Down
5 changes: 3 additions & 2 deletions ledger/eval_simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"github.com/algorand/go-algorand/crypto/merklesignature"
"github.com/algorand/go-algorand/data/basics"
"github.com/algorand/go-algorand/data/bookkeeping"
"github.com/algorand/go-algorand/data/committee"
"github.com/algorand/go-algorand/data/transactions"
"github.com/algorand/go-algorand/data/txntest"
"github.com/algorand/go-algorand/ledger/ledgercore"
Expand Down Expand Up @@ -1238,11 +1239,11 @@ func TestRekeying(t *testing.T) {
if err != nil {
return err
}
validatedBlock := ledgercore.MakeValidatedBlock(unfinishedBlock.UnfinishedBlock(), unfinishedBlock.UnfinishedDeltas())
fb := unfinishedBlock.FinishBlock(committee.Seed{0x01}, basics.Address{0x01}, false)

backlogPool := execpool.MakeBacklog(nil, 0, execpool.LowPriority, nil)
defer backlogPool.Shutdown()
_, err = l.Validate(context.Background(), validatedBlock.Block(), backlogPool)
_, err = l.Validate(context.Background(), fb, backlogPool)
return err
}

Expand Down

0 comments on commit 55283e6

Please sign in to comment.