Repository navigation
feefrac: avoid explicitly computing diagram; compare based on chunks - #29757
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsNo conflicts as of last run. |
instagibbs
left a comment
There was a problem hiding this comment.
approach ACK
this conflicts with #29724 so I'll give it a fuller treatment after
b30395e to
4bf7e1a
Compare
|
Rebased after #29724, and made a few more minor code simplifications. |
instagibbs
left a comment
There was a problem hiding this comment.
ACK 4bf7e1a005853cb57ae3a051bcdfc5c149b1f1db
didn't run fuzz tests
4bf7e1a to
43e2f6d
Compare
instagibbs
left a comment
There was a problem hiding this comment.
ACK 43e2f6d160b75e88b39777428c2c1892b962f394
glozow
left a comment
There was a problem hiding this comment.
code review ACK 43e2f6d160b75e88b39777428c2c1892b962f394
a253f22 to
c2fdcf4
Compare
|
ACK c2fdcf4 |
|
|
|
UBSan |
|
@dergoegge Do those fuzz seeds trigger issues on master too? |
|
looks to be happening on master and I think both reports are from the same underlying issue. Investigating. |
016ed24 fuzz: explicitly cap the vsize of RBFs for diagram checks (Greg Sanders) Pull request description: In master we are hitting a case where vsize transactions much larger than max standard size are causing an overflow in not-yet-exposed RBF diagram checking code: #29757 (comment) `ConsumeTxMemPoolEntry` is creating entries with tens of thousands of sigops cost, causing the resulting RBFs to be "overly large". To fix this I cause the fuzz test to stop adding transactions to the mempool when we reach a potential overflow of `int32_t`. ACKs for top commit: glozow: ACK 016ed24 marcofleon: ACK 016ed24. I ran libFuzzer on `package_rbf` on the current master branch until the overflow was encountered. Then I built the PR branch and ran the fuzzer using the crash input. Tree-SHA512: b3ffc98d2c4598eb3010edd58b9370aab1441aafbb1044c83b2b90c17dfe9135b8de9dba475dd0108863c1ffedede443cd978e95231a41cf1f0715629197fa51
c2fdcf4 to
b22901d
Compare
|
Rebased after the merge of #29879. |
|
reACK b22901d |
This merges the
BuildDiagramFromChunksandCompareFeeRateDiagramintroduced in #29242 into a singleCompareChunksfunction, which operates on sorted chunk data rather than diagrams, instead computing the diagram on the fly.This avoids the need for the construction of an intermediary diagram object, and removes the slightly arbitrary "all diagrams must start at (0, 0)" requirement.
Not a big deal, but I think the result is a bit cleaner and not really more complicated.