Repository navigation
[31.x] More Backports - #35699
[31.x] More Backports#35699
Conversation
Github-Pull: bitcoin#35691 Rebased-From: d908063
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35699. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
Github-Pull: bitcoin#34873 Rebased-From: 999d18a
Github-Pull: bitcoin#34873 Rebased-From: 325afe6
Add a belt-and-suspenders feature, limit the amount of memory and cpu possible when unlucky or simply misconfigured. The worst case limit is roughly 400kB * 10,000 = 4GB, regardless of usage pattern. Before this change, sheer volume of broadcasts, mismatches in standardness rules, or simply fee mismatches may result in unbounded growth of memory usage. As the feature may be expanded in the future, explicit bounds helps reasoning going forward. Github-Pull: bitcoin#35406 Rebased-From: 5aea3d0
This queue may be hundreds to thousands of items, each of which are being revalidated at short interval. Allow the node to be more responsive in this scenario. Github-Pull: bitcoin#35406 Rebased-From: cbf8c10
7aeb2b2 to
a575163
Compare
The server isn't running out of memory when the private broadcast transaction queue is full. Add a new RPC_LIMIT_EXCEEDED code that can be used whenever a resource is bound and currently at capacity. Github-Pull: bitcoin#35678 Rebased-From: 82a02a2
a575163 to
1f432b2
Compare
|
private tx commits lgtm 1f432b2 |
|
ACK 1f432b28b262fa65cce15df27dc109085f890491 I've reviewed commits, compared commits to the originals, checked local build & unit tests. |
This overload has been unused since it was added in fac81af. Github-Pull: bitcoin#35679 Rebased-From: efa7f8c
Serialization parameters should be embedded into the object being serialized rather than passed as a separate argument. This works here because only serialization is performed and no new object needs to be constructed. Github-Pull: bitcoin#35679 Rebased-From: afab8d4
1f432b2 to
fb5168d
Compare
By now, the vast majority of nodes in the network supports BIP324. Even if the optimistic guess would turn out to be wrong for a given node, we would just reconnect with v1. This is better than making v1 connections with peers when both nodes support v2. Github-Pull: bitcoin#35766 Rebased-From: cf0f2ae
fb5168d to
57b14ac
Compare
See zeromq/libzmq#4911. Github-Pull: bitcoin#35769 Rebased-From: e446ea0
57b14ac to
869dcca
Compare
|
Could you add #34779? Was about to open a PR for it, but probably better here. If we are going to have BIP 323 in 32 i think it makes sense to also have it in previous major versions (at least, those for which we plan to cut another release). |
… BIP323 Test bits are conserved. This only has an effect on the warnings. Co-Authored-By: Antoine Poinsot <[email protected]> Github-Pull: bitcoin#34779 Rebased-From: f802edf
Co-Authored-by: Anthony Towns <[email protected]> Github-Pull: bitcoin#34779 Rebased-From: 1d52405
869dcca to
35bb5ef
Compare
Added. |
bitcoin/pull/35699/changes#diff-54409bbc1a072860afa5d3e2c920ac585b819f1db7ba0d894a4c64d7a66f8464 bitcoin/pull/35699 BIP 9 bits 5 to 28 inclusive are now ignored for soft fork signaling, as per BIP 323. We won't warn about unknown deployments when receiving blocks that set any of those bits in their version. The private-broadcast queue (transactions submitted via `sendrawtransaction` when `-privatebroadcast` is enabled and not yet echoed back from the network) is now capped at 10,000 entries. When full, new submissions are rejected. It is up to the caller to inspect the queue via `getprivatebroadcastinfo` and free up space when stuck via `abortprivatebroadcast`. ### Versionbits BIP 323: reserve version bits 5-28 as extra nonce space ### Validation ### P2P net: fix premature stale flagging of unpicked private broadcast txs private broadcast: limit outstanding txs to count of 10,000 private broadcast: define and use new RPC_LIMIT_EXCEEDED error code ### Fuzz fuzz: Remove unused DeserializeFromFuzzingInput params overload ### Build depends, zeromq: Apply upstream patch Tree-SHA512: 89d66ebe355eb31f9395facf8edc69afa11344f83642acd093801e8497182fb8c4c07659f3c665468c90fd63b95646defee7044d57108da0ac8e6fee326e8392
Github-Pull: bitcoin#34779 Rebased-From: 94e3ac0
…aviour Co-Authored-by: Anthony Towns <[email protected]> Github-Pull: bitcoin#34779 Rebased-From: 107d417
35bb5ef to
859c920
Compare
willcl-ark
left a comment
There was a problem hiding this comment.
ACK 859c920
Backports all look good.
All commits are in the release notes, and partial backports are documented correctly. Cleanup commits from 35678 are not included along with the fuzz changes from 35406, as 31.x doesn't have that target.
Backports:
DeserializeFromFuzzingInputparams overload #35679