aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.crc32c.include
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2022-12-15 18:00:04 +0000
committerglozow <gloriajzhao@gmail.com>2023-09-13 16:14:17 +0100
commit03b87c11ca0705e1d6147b90da33ce555f9f41c8 (patch)
treee7b6667853197d6e12e9919ef3192c8b77c7371b /src/Makefile.crc32c.include
parent3f01a3dab1c4ee37fd4093b6a0a3b622f53e231d (diff)
downloadbitcoin-03b87c11ca0705e1d6147b90da33ce555f9f41c8.tar.xz
[validation] add AcceptSubPackage to delegate Accept* calls and clean up m_view
(1) Call AcceptSingleTransaction when there is only 1 transaction in the subpackage. This avoids calling PackageMempoolChecks() which enforces rules that don't need to be applied for a single transaction, i.e. disabling CPFP carve out. There is a slight change in the error type returned, as shown in the txpackage_tests change. When a transaction is the last one left in the package and its fee is too low, this returns a PCKG_TX instead of PCKG_POLICY. This interface is clearer; "package-fee-too-low" for 1 transaction would be a bit misleading. (2) Clean up m_view and m_viewmempool so that coins created in this sub-package evaluation are not available for other sub-package evaluations. The contents of the mempool may change, so coins that are available now might not be later.
Diffstat (limited to 'src/Makefile.crc32c.include')
0 files changed, 0 insertions, 0 deletions