Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenient and High-fidelity Transaction Processing Tests #2730

Merged
merged 5 commits into from
Aug 13, 2021

Commits on Aug 12, 2021

  1. Convenient and High-fidelity Transaction Processing Tests

    This refactors some of the `ledger` code so that it's convenient
    to write short tests that operate on a fairly complete ledger,
    including rewards payouts.  Previously, tests used genesis(), but
    genesis() build the genesis block internally "by hand" rather
    than using MakeGenesisBlock, so it missed some details (like
    setting up RewardsState). Presumably, this was because
    MakeGenesisBlock was in the `data` package, and could not be
    imported.  That is the motivation behind moving it, and some
    related code, to bookkeeping (where various Genesis related code
    already existed).
    
    The txntest packaged is motivated purely by a desire for more
    concise tests.  It allows for the construction of
    transaction.Transaction objects concisely, and we can add all
    sort of conveneince routines here that would not make sense in
    the production code (turning these into SignedTxns,
    SignedTxnWithADs, TransactionGroups, etc).
    jannotti committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    9a80084 View commit details
    Browse the repository at this point in the history
  2. copyright

    jannotti committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    8019d59 View commit details
    Browse the repository at this point in the history
  3. make sanity demands fealty!

    jannotti committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    1e45d67 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2021

  1. Configuration menu
    Copy the full SHA
    fecb795 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e44635 View commit details
    Browse the repository at this point in the history