glozow
5eab397b98
[validation] remove PackageMempoolAcceptResult::m_package_feerate
...
This value creates an extremely confusing interface as its existence is
dependent upon implementation details (whether something was submitted
on its own, etc). MempoolAcceptResult::m_effective_feerate is much more
helpful, as it always exists for submitted transactions.
2023-01-10 11:09:03 +00:00
glozow
d6c7b78ef2
[validation] return wtxids of other transactions whose fees were used
2023-01-10 10:36:57 +00:00
glozow
1605886380
[validation] return effective feerate from mempool validation
2023-01-06 17:37:01 +00:00
glozow
5d35b4a7de
[test] package validation quits early due to non-policy, non-missing-inputs failure
2023-01-06 17:37:01 +00:00
Hennadii Stepanov
306ccd4927
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
Commits of previous years:
- 2021: f47dda2c58
- 2020: fa0074e2d8
- 2019: aaaaad6ac9
2022-12-24 23:49:50 +00:00
fanquake
f87f25948a
refactor: fixup named args in txpackage tests
...
Regression in #24152 .
2022-04-07 12:50:54 +01:00
glozow
51edcffa0e
[unit test] package feerate and package cpfp
2022-04-05 18:51:37 -04:00
fanquake
bf77fea3c1
test: fix incorrect named args in txpackage tests
2022-03-31 16:34:33 +01:00
glozow
5ae187f876
[validation] look up transaction by txid
...
GetIter takes a txid, not wtxid.
2022-02-14 10:04:51 +00:00
glozow
3cd7f693d3
[unit test] package parents are a mix
2022-01-17 13:00:19 +00:00
glozow
2db77cd3b8
[unit test] different witness in package submission
...
If/when witness replacement is implemented in the future, this test case
can be easily replaced with witness replacement tests.
2022-01-17 12:24:43 +00:00
W. J. van der Laan
216f4ca9e7
Merge bitcoin/bitcoin#22674 : validation: mempool validation and submission for packages of 1 child + parents
...
046e8ff264
[unit test] package submission (glozow)
e12fafda2d
[validation] de-duplicate package transactions already in mempool (glozow)
8310d942e0
[packages] add sanity checks for package vs mempool limits (glozow)
be3ff151a1
[validation] full package accept + mempool submission (glozow)
144a29099a
[policy] require submitted packages to be child-with-unconfirmed-parents (glozow)
d59ddc5c3d
[packages/doc] define and document package rules (glozow)
ba26169f60
[unit test] context-free package checks (glozow)
9b2fdca7f0
[packages] add static IsChildWithParents function (glozow)
Pull request description:
This is 1 chunk of [Package Mempool Accept](https://gist.github.com/glozow/dc4e9d5c5b14ade7cdfac40f43adb18a ); it restricts packages to 1 child with its parents, doesn't allow conflicts, and doesn't have CPFP (yet). Future PRs (see #22290 ) will add RBF and CPFP within packages.
ACKs for top commit:
laanwj:
Code review ACK 046e8ff264
Tree-SHA512: 37dbba37d527712f8efef71ee05c90a8308992615af35f5e0cfeafc60d859cc792737d125aac526e37742fe7683ac8c155ac24af562426213904333c01260c95
2021-12-15 20:42:33 +01:00
glozow
046e8ff264
[unit test] package submission
2021-11-29 16:07:18 +00:00
glozow
ba26169f60
[unit test] context-free package checks
2021-11-29 12:48:23 +00:00
MarcoFalke
fa00447442
scripted-diff: Use clang-tidy syntax for C++ named arguments
...
-BEGIN VERIFY SCRIPT-
perl -0777 -pi -e 's:((\(|\{|,)(\n| )*)\/\* ?([^=* ]+) ?\*\/ ?:\1/*\4=*/:g' $( git ls-files ./src/test ./src/wallet/test )
-END VERIFY SCRIPT-
2021-11-19 12:41:47 +01:00
MarcoFalke
fac49470ca
doc: Fix incorrect C++ named args
2021-11-17 09:25:14 +01:00
glozow
14cd7bf793
[test] call CheckPackage for package sanitization checks
...
Makes the test more minimal. We're just trying to test that our package
sanitization logic is correct. Now that this code lives in its own
function (rather than inside of AcceptMultipleTransactions), there's no
need to call ProcessNewPackage to test this.
2021-11-04 14:55:12 -04:00
glozow
6876378365
MOVEONLY: move package unit tests to their own file
2021-11-04 14:55:12 -04:00