-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Using "applyTxToUTxO" then "filterByAddress" filters the entire UTxO on every application of a Tx. By presuming that we've already filtered the previous UTxO, then only applying parts of the new Tx that we care about, we can get better performance characteristics. - Add new "spendTx" function to support this. It does part of what "applyTxToUTxO" does. - Redefine "applyTxToUTxO" in terms of "spendTx" - Replace call to "applyTxToUTxO" with the equivalent, and more efficient: "spendTx tx u <> filterByAddress (utxoFromTx tx)" - Add property tests to prove equivalences. - Re-jig and clean up existing property tests a bit.
- Loading branch information
1 parent
e49c2b5
commit 7717363
Showing
4 changed files
with
114 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters