aboutsummaryrefslogtreecommitdiff
path: root/src/script/sigcache.cpp
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-08-03 16:39:35 +0100
committerGreg Sanders <gsanders87@gmail.com>2024-05-23 12:08:46 -0400
commit20d8936d8bb6137a5a3722d34e0d7ae756031009 (patch)
tree0f61ae5bb661cfe833bd1182f43b756d37089950 /src/script/sigcache.cpp
parentcbbfe719b223b9e05398227cef68c99eb97670bd (diff)
[refactor] make some members MemPoolAccept-wide
No change in behavior. For single transaction acceptance, this is a simple refactor: Workspace::m_all_conflicting Workspace::m_conflicting_fees Workspace::m_conflicting_size Workspace::m_replaced_transactions are now grouped under a new SubPackageState struct that is a member of MemPoolAccept. And local variables m_total_vsize and m_total_modified_fees are now SubpackageState members so they can be accessed from PackageMempoolChecks. We want these to be package-wide variables because - Transactions could conflict with the same tx (just not the same prevout), or their conflicts could share descendants. - We want to compare conflicts with the package fee rather than individual transaction fee. We reset these MemPoolAccept-wide fields for each subpackage evaluation to not cause state leaking, similar to temporary coins.
Diffstat (limited to 'src/script/sigcache.cpp')
0 files changed, 0 insertions, 0 deletions