Skip to content

p2p: improve TxOrphanage denial of service bounds #31829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Jul 18, 2025

Conversation

glozow
Copy link
Member

@glozow glozow commented Feb 9, 2025

This PR is part of the orphan resolution project, see #27463.

This design came from collaboration with sipa - thanks.

We want to limit the CPU work and memory used by TxOrphanage to avoid denial of service attacks. On master, this is achieved by limiting the number of transactions in this data structure to 100, and the weight of each transaction to 400KWu (the largest standard tx) [0]. We always allow new orphans, but if the addition causes us to exceed 100, we evict one randomly. This is dead simple, but has problems:

  • It makes the orphanage trivially churnable: any one peer can render it useless by spamming us with lots of orphans. It's possible this is happening: "Looking at data from node alice on 2024-09-14 shows that we’re sometimes removing more than 100k orphans per minute. This feels like someone flooding us with orphans." [1]
  • Effectively, opportunistic 1p1c is useless in the presence of adversaries: it is opportunistic and pairs a low feerate tx with a child that happens to be in the orphanage. So if nothing is able to stay in orphanages, we can't expect 1p1cs to propagate.
  • This number is also often insufficient for the volume of orphans we handle: historical data show that overflows are pretty common, and there are times where "it seems like [the node] forgot about the orphans and re-requested them multiple times." [1]

Just jacking up the -maxorphantxs number is not a good enough solution, because it doesn't solve the churnability problem, and the effective resource bounds scale poorly.

This PR introduces numbers for {global, per-peer} {memory usage, announcements + number of inputs}, representing resource limits:

  • The (constant) global latency score limit is the number of unique (wtxid, peer) pairs in the orphanage + the number of inputs spent by those (deduplicated) transactions floor-divided by 10 [2]. This represents a cap on CPU or latency for any given operation, and does not change with the number of peers we have. Evictions must happen whenever this limit is reached. The primary goal of this limit is to ensure we do not spend more than a few ms on any call to LimitOrphans or EraseForBlock.
  • The (variable) per-peer latency score limit is the global latency score limit divided by the number of peers. Peers are allowed to exceed this limit provided the global announcement limit has not been reached. The per-peer announcement limit decreases with more peers.
  • The (constant) per-peer memory usage reservation is the amount of orphan weight [3] reserved per peer [4]. Reservation means that peers are effectively guaranteed this amount of space. Peers are allowed to exceed this limit provided the global usage limit is not reached. The primary goal of this limit is to ensure we don't oom.
  • The (variable) global memory usage limit is the number of peers multiplied by the per-peer reservation [5]. As such, the global memory usage limit scales up with the number of peers we have. Evictions must happen whenever this limit is reached.
  • We introduce a "Peer DoS Score" which is the maximum between its "CPU Score" and "Memory Score." The CPU score is the ratio between the number of orphans announced by this peer / peer announcement limit. The memory score is the total usage of all orphans announced by this peer / peer usage reservation.

Eviction changes in a few ways:

  • It is triggered if either limit is exceeded.
  • On each iteration of the loop, instead of selecting a random orphan, we select a peer and delete 1 of its announcements. Specifically, we select the peer with the highest DoS score, which is the maximum between its CPU DoS score (based on announcements) and Memory DoS score (based on tx weight). After the peer has been selected, we evict the oldest orphan (non-reconsiderable sorted before reconsiderable).
  • Instead of evicting orphans, we evict announcements. An orphan is still in the orphanage as long as there is 1 peer announcer. Of course, over the course of several iteration loops, we may erase all announcers, thus erasing the orphan itself. The purpose of this change is to prevent a peer from being able to trigger eviction of another peer's orphans.

This PR also:

  • Reimplements TxOrphanage as single multi-index container.
  • Effectively bounds the number of transactions that can be in a peer's work set by ensuring it is a subset of the peer's announcements.
  • Removes the -maxorphantxs config option, as the orphanage no longer limits by unique orphans.

This means we can receive 1p1c packages in the presence of spammy peers. It also makes the orphanage more useful and increases our download capacity without drastically increasing orphanage resource usage.

[0]: This means the effective memory limit in orphan weight is 100 * 400KWu = 40MWu
[1]: https://delvingbitcoin.org/t/stats-on-orphanage-overflows/1421
[2]: Limit is 3000, which is equivalent to one max size ancestor package (24 transactions can be missing inputs) for each peer (default max connections is 125).
[3]: Orphan weight is used in place of actual memory usage because something like "one maximally sized standard tx" is easier to reason about than "considering the bytes allocated for vin and vout vectors, it needs to be within N bytes..." etc. We can also consider a different formula to encapsulate more the memory overhead but still have an interface that is easy to reason about.
[4]: The limit is 404KWu, which is the maximum size of an ancestor package.
[5]: With 125 peers, this is 50.5MWu, which is a small increase from the existing limit of 40MWu. While the actual memory usage limit is higher (this number does not include the other memory used by TxOrphanage to store the outpoints map, etc.), this is within the same ballpark as the old limit.

@glozow glozow added the P2P label Feb 9, 2025
@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 9, 2025

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31829.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK marcofleon, instagibbs, theStack, achow101
Approach ACK sipa, jsarenik
Stale ACK monlovesmango

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #32896 (wallet, rpc: add v3 transaction creation and wallet support by ishaanam)
  • #32827 (mempool: Avoid needless vtx iteration during IBD by l0rinc)
  • #32430 (test: Add and use ElapseTime helper by maflcko)
  • #30277 ([DO NOT MERGE] Erlay: bandwidth-efficient transaction relay protocol (Full implementation) by sr-gi)
  • #29415 (Broadcast own transactions only via short-lived Tor or I2P connections by vasild)
  • #28690 (build: Introduce internal kernel library by TheCharlatan)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

LLM Linter (✨ experimental)

Possible typos and grammar issues:

List of typos found in added lines:

  • tranaction -> transaction [misspelling in comment “memory usage of the tranaction”]
  • comphehensive -> comprehensive [misspelling in comment “This is a comphehensive simulation…”]

drahtbot_id_4_m

@glozow glozow force-pushed the 2025-01-orphanage-peer-dos branch from bfc78fa to 765fcdf Compare February 9, 2025 21:20
@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 9, 2025

🚧 At least one of the CI tasks failed.
Debug: https://github.com/bitcoin/bitcoin/runs/36925040096

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

@glozow
Copy link
Member Author

glozow commented Feb 10, 2025

Rebased

Copy link
Member

@instagibbs instagibbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resource bounds additions seem to make sense, still working through the workset change implications.

I've got a minimal fuzz harness checking that the "honest" peer cannot be evicted, please feel free to take it: https://github.com/instagibbs/bitcoin/tree/2025-01-orphanage-peer-dos_greg_2

@glozow glozow force-pushed the 2025-01-orphanage-peer-dos branch from 0ccf21e to 7aaf390 Compare February 11, 2025 17:03
@glozow
Copy link
Member Author

glozow commented Feb 11, 2025

Thanks @instagibbs for the testing and review, added your fuzz commits and took comments. Still need to write the p2p_orphan_handling test.

@glozow glozow force-pushed the 2025-01-orphanage-peer-dos branch from 7aaf390 to 61b40f0 Compare February 11, 2025 17:08
@DrahtBot
Copy link
Contributor

🚧 At least one of the CI tasks failed.
Debug: https://github.com/bitcoin/bitcoin/runs/37041607307

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

@glozow glozow force-pushed the 2025-01-orphanage-peer-dos branch from 61b40f0 to ff82676 Compare February 11, 2025 17:25
Copy link
Contributor

@mzumsande mzumsande left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Halfway through, some minor points below - my main conceptual question is why m_total_announcements is a meaningful metric in limiting the orphanage.

My understanding is that m_total_orphan_usage exists to limit memory usage, and m_total_announcements to limit CPU usage - but why the number of announcements instead of number of orphans?
Why would it make the situation any less DoSy if we remove an announcer but keep the orphan? Since we only assign the tx to one peer's workset after 7426afb, more announcers for the same number of orphans doesn't really mean any additional work.

@glozow
Copy link
Member Author

glozow commented Feb 11, 2025

My understanding is that m_total_orphan_usage exists to limit memory usage, and m_total_announcements to limit CPU usage - but why the number of announcements instead of number of orphans?

Yep, to limit CPU usage. The complexity of eviction for example is bounded by the total number of announcements: in the worst case, each orphan has many announcers and the MaybeTrimOrphans loop first removes announcements until each orphan just has 1 left, and then finally can remove transactions. See comment above declaration, "The loop can run a maximum of m_max_global_announcement times"

Why would it make the situation any less DoSy if we remove an announcer but keep the orphan?

Perhaps I should have stated this in the OP more explicitly, but a major motivation for this eviction strategy is to prevent any peer from being to evict any announcements of another peer, hence the per-peer limits. If we changed the eviction code to remove orphans wholesale instead of just announcements, we'd have a similar situation to today's: an attacker can cause churn of an honest orphan by announcing it along with a lot of other orphans.

So evicting announcements instead of orphans isn't less DoSy, but it does make the orphanage less churnable.

@glozow glozow force-pushed the 2025-01-orphanage-peer-dos branch 2 times, most recently from 19194f2 to 3903310 Compare February 12, 2025 04:37
Copy link
Member

@sipa sipa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach ACK

Copy link
Member

@instagibbs instagibbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

combing through tests a bit, think I spotted the CI failure cause

@glozow glozow added this to the 29.0 milestone Feb 12, 2025
@glozow glozow requested a review from sr-gi February 13, 2025 16:59
glozow and others added 8 commits July 14, 2025 16:13
For the default number of peers (125), allows each to relay a default
descendant package (up to 25-1=24 can be missing inputs) of small (9
inputs or fewer) transactions out of order.

This limit also gives acceptable bounds for worst case LimitOrphans iterations.

Functional tests aren't changed to check for larger cap because it would
make the runtime too long.

Also deletes the now-unused DEFAULT_MAX_ORPHAN_TRANSACTIONS.
…orkSet

This is preparation for the simulation fuzz test added in a later commit. Since
AddChildrenToWorkSet consumes randomness, there is no way for the simulator to
exactly predict its behavior. By returning the set of made-reconsiderable announcements
instead, the simulator can instead test that it is *a* valid choice, and then
apply it to its own data structures.
This adds a large simulation fuzz test for all TxOrphanage public interface
functions, using a mix of comparison with expected behavior (in case it is
fully specified), and testing of properties exhibited otherwise.
…ng subtests

If we want to restart at all during the tests, we can't have future timestamps.
@glozow glozow force-pushed the 2025-01-orphanage-peer-dos branch from 790f6e7 to 5002462 Compare July 14, 2025 20:19
@marcofleon
Copy link
Contributor

ReACK 5002462

A couple additional assertions, some nits addressed, and improvements in the txorphanage_sim fuzz target since last review. Ran the fuzz tests for a bit on existing corpora to be sure.

Copy link
Member

@instagibbs instagibbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 5002462

Wish orphan traffic was higher for more live testing on mainnet. Will test anyways and report back if I see anything odd.

I'm not convinced that we really need EraseForBlock anymore, but I don't think it's a unique danger and it's nice that we get some real benchmarks for it in master.

@instagibbs
Copy link
Member

Looking at logs, was wondering if we can get some more information about which peer/ which tx is being evicted from the orphanage? I'm eyeballing some logs since I've been running variants of this for a few weeks now, and the orphanage overflow string shows up significantly more often due to the non-timeout of announcements after this PR.

e.g.: "2025-07-07T11:27:34.481530Z [txpackages] orphanage overflow, removed 1 tx (4 announcements)"

Being able to quickly see that, f.e., the only reason we're evicting is because of a single faulty / spammy peer would be helpful to separate from "legitimate" traffic, where you'd expect to see more a round-robin eviction pattern.

@glozow
Copy link
Member Author

glozow commented Jul 15, 2025

Looking at logs, was wondering if we can get some more information about which peer/ which tx is being evicted from the orphanage?

Will add to the followup. What about adding a log for each peer chosen in the loop? So for example 1 call to LimitOrphans:

[txpackages] peer=25 orphanage overflow, removed 4 announcements
[txpackages] peer=177 orphanage overflow, removed 1 announcements
[txpackages] peer=25 orphanage overflow, removed 1 announcements
[txpackages] orphanage overflow, removed 5 tx (6 announcements)

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-review ACK 5002462

With two suggestions regarding sanity checks on lower_bound iterators. Probably more than just nits, but still fine to tackle in the follow-up IMHO.

Comment on lines +467 to +468
if (!Assume(it_ann->m_announcer == worst_peer)) break;
if (!Assume(it_ann != m_orphans.get<ByPeer>().end())) break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two Assume lines should be swapped I think, to prevent potential dereference of an end() iterator (which, AFAIR, would be UB)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, added to #32941

for (const auto& wtxid : it_by_prev->second) {
// Belt and suspenders, each entry in m_outpoint_to_orphan_it should always have at least 1 announcement.
auto it = index_by_wtxid.lower_bound(ByWtxidView{wtxid, MIN_PEER});
if (!Assume(it != index_by_wtxid.end())) continue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!Assume(it != index_by_wtxid.end())) continue;
if (!Assume(it != index_by_wtxid.end() && it->m_tx->GetWitnessHash() == wtxid)) continue;

for a full belts and suspenders (though I guess if no m_orphan entry with this wtxid exists, it would still be caught with the next Assume below, as std::distance would return a negative(?) value 🤔 )

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, added to #32941

@achow101
Copy link
Member

light ACK 5002462

@achow101 achow101 merged commit 80067ac into bitcoin:master Jul 18, 2025
19 checks passed
} else if (command-- == 0) {
// AddChildrenToWorkSet
auto tx = read_tx_fn();
FastRandomContext rand_ctx(rng.rand256());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b113877

On Alpine Linux v3.22, using GCC 14.2.0:

[ 74%] Building CXX object src/test/fuzz/CMakeFiles/fuzz.dir/txorphan.cpp.o
In file included from /bitcoin/src/script/script.h:10,
                 from /bitcoin/src/primitives/transaction.h:11,
                 from /bitcoin/src/consensus/validation.h:11,
                 from /bitcoin/src/test/fuzz/txorphan.cpp:6:
/bitcoin/src/crypto/common.h: In function 'void txorphanage_sim_fuzz_target(FuzzBufferType)':
/bitcoin/src/crypto/common.h:53:11: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
   53 |     memcpy(ptr, &v, 4);
      |           ^
/bitcoin/src/test/fuzz/txorphan.cpp:669:55: note: at offset 32 into destination object '<anonymous>' of size 32
  669 |                 FastRandomContext rand_ctx(rng.rand256());
      |                                            ~~~~~~~~~~~^~

@glozow glozow deleted the 2025-01-orphanage-peer-dos branch July 20, 2025 14:03
TheCharlatan added a commit to TheCharlatan/rust-bitcoinkernel that referenced this pull request Jul 28, 2025
…f1a28fa3f98

cf1a28fa3f98 kernel: Fix bitcoin-chainstate for windows
dde03b676bea kernel: Add Purpose section to header documentation
6e4460579cb1 kernel: Add pure kernel bitcoin-chainstate
3895b9e9a29c kernel: Add functions to get the block hash from a block
cec2f27c4573 kernel: Add block index utility functions to C header
ae9e296b6bec kernel: Add function to read block undo data from disk to C header
1c1efa20baed kernel: Add functions to read block from disk to C header
ffdeaa8b749b kernel: Add function for copying block data to C header
6145f14e5cf5 kernel: Add functions for the block validation state to C header
0a9b0d129469 kernel: Add validation interface to C header
907b0a5390fd kernel: Add interrupt function to C header
68812ede5042 kernel: Add import blocks function to C header
bd2e516d1771 kernel: Add chainstate load options for in-memory dbs in C header
a5b2d02ebe05 kernel: Add options for reindexing in C header
e6c7ac508b29 kernel: Add block validation to C header
28f2c5d14ec8 kernel: Add chainstate loading when instantiating a ChainstateManager
2f51e1627a23 kernel: Add chainstate manager option for setting worker threads
237082b66424 kernel: Add chainstate manager object to C header
414f92931154 kernel: Add notifications context option to C header
de523cbd6f82 kernel: Add chain params context option to C header
503bfcd1486e kernel: Add kernel library context object
ba82693907d1 kernel: Add logging to kernel library C header
9b1d963a1dda kernel: Introduce initial kernel C header API
fdbade6f8ded kernel: create monolithic kernel static library
75a5c8258ec5 Merge bitcoin/bitcoin#33063: util: Revert "common: Close non-std fds before exec in RunCommandJSON"
3b188b8b3dae Merge bitcoin/bitcoin#31576: test: Move `script_assets_tests` into its own suite
2e97541396b9 Merge bitcoin/bitcoin#32944: wallet: Remove `upgradewallet` RPC
b08041cac863 Merge bitcoin/bitcoin#32845: rpc, test: Fix JSON parsing errors in unloadwallet and getdescriptoractivity RPCs
fc162299f0cc Merge bitcoin/bitcoin#32994: p2p: rename GetAddresses -> GetAddressesUnsafe
633d8ea17b9f Merge bitcoin/bitcoin#32970: ci: Enable more shellcheck
faa1c3e80d95 Revert "Merge bitcoin/bitcoin#32343: common: Close non-std fds before exec in RunCommandJSON"
6cdc5a90cffe Merge bitcoin/bitcoin#32967: log: [refactor] Use info level for init logs
443c32a3e686 Merge bitcoin/bitcoin#32822: fuzz: Make process_message(s) more deterministic
face8123fdc1 log: [refactor] Use info level for init logs
fa183761cb09 log: Remove function name from init logs
5ad79b203505 Merge bitcoin/bitcoin#32593: wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
e17fb86382ea Merge bitcoin/bitcoin#32888: ci: Use optimized Debug build type in test-each-commit
fd3d80c209e5 Merge bitcoin/bitcoin#33047: test: check proper OP_2ROT behavior
1119ac51f0c8 Merge bitcoin/bitcoin#33040: doc: update headers and remove manual TOCs
e2f2df0ead81 Merge bitcoin/bitcoin#32984: wallet: Set migrated wallet name only on success
16f7b43b6808 Merge bitcoin/bitcoin#33049: doc: Fix typos in asmap README
b59dc21847d3 doc: Fix typos in asmap README
ca38cf701dc6 doc: fix a few obvious typos in the affected files
ddab466e0d95 doc: remove manual TOCs
26a3730711c7 doc: unify `developer-notes` and `productivity` header styles
eb137184482c Merge bitcoin/bitcoin#31179: RPC: Add reserve member function to `UniValue` and use it in `blockToJSON` function
b94c6356a29b test: check proper OP_2ROT behavior
73e754bd01b0 Merge bitcoin/bitcoin#33001: test: Do not pass tests on unhandled exceptions
cfb859e82edf Merge bitcoin/bitcoin#33037: doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
afd3b34dc5e2 Merge bitcoin/bitcoin#33004: Enable `-natpmp` by default
49bbf9ff28f8 Merge bitcoin/bitcoin#33036: Update secp256k1 subtree to latest master
c5c1960f9350 doc: Add release notes for changes in RPCs
90fd5acbe57e rpc, test: Fix error message in getdescriptoractivity
39fef1d20367 test: Add missing logging info for each test
53ac704efd66 rpc, test: Fix error message in unloadwallet
1fc3a8e8e7ae rpc, test: Add EnsureUniqueWalletName tests
900bb53905aa Merge bitcoin/bitcoin#32990: wallet: remove outdated `pszSkip` arg of database `Rewrite` func
c8ec423719aa Merge bitcoin/bitcoin#33020: test: delete commented-out tests and add a test case in wallet_signer
09f004bd9fec Merge bitcoin/bitcoin#32945: tests: speed up coins_tests by parallelizing
5d98fc755963 Merge bitcoin/bitcoin#33030: test: check tx is final when there is no locktime
b635bc089629 rpc, util: Add EnsureUniqueWalletName
da318fe53fa9 test: delete commented out tests
6d80e999a064 test: external signer returns invalid JSON response
065e42976a70 test: IsFinalTx returns true when there is no locktime
1cb23997033c doc: clarify the GetAddresses/GetAddressesUnsafe documentation
e5a7dfd79f61 p2p: rename GetAddresses -> GetAddressesUnsafe
faa2f3b1afe7 doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
336b8be37b22 Update secp256k1 subtree to latest master
5600e6fc4bb4 Squashed 'src/secp256k1/' changes from 4187a46649..b9313c6e1a
06ab3a394ade tests: speed up coins_tests by parallelizing
7129c9ea8e95 Merge bitcoin/bitcoin#32827: mempool: Avoid needless vtx iteration during IBD
11c6a864c9ee Merge bitcoin/bitcoin#33007: test: fix `ReadTopologicalSet` unsigned integer overflow
9bc33432e214 Merge bitcoin/bitcoin#32999: ci: Use APT_LLVM_V in msan task
5878f35446ae Merge bitcoin/bitcoin#31144: [IBD] multi-byte block obfuscation
249889bee6b8 orphanage: avoid vtx iteration when no orphans
41ad2be4340d mempool: Avoid expensive loop in `removeForBlock` during IBD
e9edd43a9592 Merge bitcoin/bitcoin#32521: policy: make pathological transactions packed with legacy sigops non-standard
80067ac111c2 Merge bitcoin/bitcoin#31829: p2p: improve TxOrphanage denial of service bounds
31c4e77a256c test: fix ReadTopologicalSet unsigned integer overflow
672c85cb1ea0 Merge bitcoin/bitcoin#32868: test: refactor: overhaul block hash determination for `CBlock{,Header}` objects
fa1a14a13a15 fuzz: Reset chainman state in process_message(s) targets
fa9a3de09b4c fuzz: DisableNextWrite
aeeeeec9f749 fuzz: Reset dirty connman state in process_message(s) targets
fa11eea4059a fuzz: Avoid non-determinism in process_message(s) target (PeerMan)
faa3e684118b test: Log KeyboardInterrupt as exception
b2d07f872c58 Add release notes for -natpmp enabled by default
3fc660d26719 mapport: turn -natpmp to on by default
fa30b34026f7 test: Do not pass tests on unhandled exceptions
96da68a38fa2 qa: functional test a transaction running into the legacy sigop limit
367147954d16 qa: unit test standardness of inputs packed with legacy sigops
5863315e33ba policy: make pathological transactions packed with legacy sigops non-standard.
5fa34951ead2 test: avoid unneeded block header hash -> integer conversions
2118301d77c2 test: rename CBlockHeader `.hash` -> `.hash_hex` for consistency
23be0ec2f074 test: rename CBlockHeader `.rehash()`/`.sha256` -> `.hash_int` for consistency
8b09cc350afa test: remove bare CBlockHeader `.rehash()`/`.calc_sha256()` calls
0716382c20a6 test: remove header hash caching in CBlockHeader class
0f044e82bd5f test: avoid direct block header modification in feature_block.py
f3c791d2e391 test: refactor: dedup `CBlockHeader` serialization
fad040a5787a ci: Use APT_LLVM_V in msan task
060695c22ae7 test: Failed load after migrate should restore backup
248b6a27c351 optimization: peel align-head and unroll body to 64 bytes
e7114fc6dc34 optimization: migrate fixed-size obfuscation from `std::vector<std::byte>` to `uint64_t`
478d40afc6fa refactor: encapsulate `vector`/`array` keys into `Obfuscation`
377aab8e5a8d refactor: move `util::Xor` to `Obfuscation().Xor`
fa5d296e3beb refactor: prepare mempool_persist for obfuscation key change
6bbf2d9311b4 refactor: prepare `DBWrapper` for obfuscation key change
0b8bec8aa626 scripted-diff: unify xor-vs-obfuscation nomenclature
972697976c02 bench: make ObfuscationBench more representative
618a30e326e9 test: compare util::Xor with randomized inputs against simple impl
a5141cd39ecb test: make sure dbwrapper obfuscation key is never obfuscated
54ab0bd64c36 refactor: commit to 8 byte obfuscation keys
7aa557a37b73 random: add fixed-size `std::array` generation
9f713b83dcf7 Merge bitcoin/bitcoin#32837: depends: fix libevent `_WIN32_WINNT` usage
2dfeb6668cb2 wallet: remove outdated `pszSkip` arg of database `Rewrite` func
8a4cfddf23a4 wallet: Set migrated wallet name only on success
d89c6fa4a718 wallet: Remove `upgradewallet` RPC
184159e4f30c Merge bitcoin/bitcoin#32922: test: use notarized v28.2 binaries and fix macOS detection
5d17e64a0290 Merge bitcoin/bitcoin#32677: test: headers sync timeout
0087ba409b36 Merge bitcoin/bitcoin#32968: test: fix intermittent failure in rpc_invalidateblock.py
50024620b909 [bench] worst case LimitOrphans and EraseForBlock
45c7a4b56d28 [functional test] orphan resolution works in the presence of DoSy peers
835f5c77cdee [prep/test] restart instead of bumpmocktime between p2p_orphan_handling subtests
b113877545a1 [fuzz] Add simulation fuzz test for TxOrphanage
03aaaedc6daf [prep] Return the made-reconsiderable announcements in AddChildrenToWorkSet
ea29c4371e86 [p2p] bump DEFAULT_MAX_ORPHANAGE_LATENCY_SCORE to 3,000
24afee8d8f94 [fuzz] TxOrphanage protects peers that don't go over limit
a2878cfb4ae2 [unit test] strengthen GetChildrenFromSamePeer tests: results are in recency order
7ce3b7ee579c [unit test] basic TxOrphanage eviction and protection
4d23d1d7e7fa [cleanup] remove unused rng param from LimitOrphans
067365d2a8a4 [p2p] overhaul TxOrphanage with smarter limits
1a41e7962db3 [refactor] create aliases for TxOrphanage Count and Usage
b50bd72c42bc [prep] change return type of EraseTx to bool
3da6d7f8f6fc [prep/refactor] make TxOrphanage a virtual class implemented by TxOrphanageImpl
77ebe8f28012 [prep/test] have TxOrphanage remember its own limits in LimitOrphans
d0af4239b7f0 [prep/refactor] move DEFAULT_MAX_ORPHAN_TRANSACTIONS to txorphanage.h
51365225b898 [prep/config] remove -maxorphantx
8dd24c29aec8 [prep/test] modify test to not access TxOrphanage internals
b53fab1467fd Merge bitcoin/bitcoin#32948: refactor: cleanup index logging
fa1fd074685c ci: Enable more shellcheck
61e800e75cff test: headers sync timeout
28416f367a5d test: fix intermittent failure in rpc_invalidateblock.py
e72cb20c3fb7 Merge bitcoin/bitcoin#32943: depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
97fb46d0a081 Merge bitcoin/bitcoin#32880: ci: Avoid cd into build dir
69b9ad02da89 Merge bitcoin/bitcoin#32954: cmake: Drop no longer necessary "cmakeMinimumRequired" object
faa3171ff22f ci: Use optimized Debug build type in test-each-commit
fa21c3401e15 ci: [doc] reword debug log message
12a6959892cb cmake: Drop no longer necessary "cmakeMinimumRequired" object
44f532782445 [fuzz] add SeedRandomStateForTest(SeedRand::ZEROS) to txorphan
15a4ec906976 [prep/rpc] remove entry and expiry time from getorphantxs
08e58fa91198 [prep/refactor] move txorphanage to node namespace and directory
bb91d23fa956 [txorphanage] change type of usage to int64_t
c18bf0bd9be6 refactor: cleanup index logging
f5647c6c5ae8 depends: fix libevent _WIN32_WINNT usage
44f3bae300dc depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
fad191ff48b1 ci: Avoid cd into build dir
4bb4c865999b test: document HOST for get_previous_releases.py
609203d5075c test: stop signing previous releases >= v28.2
c6dc2c29f828 test: replace v28.0 with notarized v28.2
5bd73d96a3a7 test: fix macOS detection
c40dbbbf7707 test: Move `script_assets_tests` into its own suite
6135e0553e6e wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
5d82d92aff7c rpc: reserve space for `UniValue` variables  in `blockToJSON`
6a506d5c37d1 UniValue: add reserve member function
bd461195f4b3 bench: support benching all verbosity of `BlockToJson`
REVERT: 1ffc1c9d94b1 kernel: Fix bitcoin-chainstate for windows
REVERT: 686c4108cc1d kernel: Add Purpose section to header documentation
REVERT: 8d47a4073120 kernel: Add pure kernel bitcoin-chainstate
REVERT: ba84650882f1 kernel: Add functions to get the block hash from a block
REVERT: a4217273422b kernel: Add block index utility functions to C header
REVERT: aedbe73cf096 kernel: Add function to read block undo data from disk to C header
REVERT: 109dda0845d8 kernel: Add functions to read block from disk to C header
REVERT: 3e24c34ad481 kernel: Add function for copying block data to C header
REVERT: 9ab3d14c1d15 kernel: Add functions for the block validation state to C header
REVERT: 4408228f8556 kernel: Add validation interface to C header
REVERT: 0c3054ef4b6e kernel: Add interrupt function to C header
REVERT: 45895c4ac778 kernel: Add import blocks function to C header
REVERT: 994c869ba238 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: b4ad47e31268 kernel: Add options for reindexing in C header
REVERT: 591b28d61548 kernel: Add block validation to C header
REVERT: a1fe6b4264bf kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: 0cf99f827e48 kernel: Add chainstate manager option for setting worker threads
REVERT: c18b35135c75 kernel: Add chainstate manager object to C header
REVERT: 1de2db7eacde kernel: Add notifications context option to C header
REVERT: b1e6a28d17c6 kernel: Add chain params context option to C header
REVERT: 369cfd3f6c4f kernel: Add kernel library context object
REVERT: f9e13dbb1ade kernel: Add logging to kernel library C header
REVERT: ce1288828783 kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: cf1a28fa3f985e3836652b8ad2c3bc35f04fec6d
TheCharlatan added a commit to TheCharlatan/rust-bitcoinkernel that referenced this pull request Jul 28, 2025
…06c4276cf7a

506c4276cf7a Merge branch 'monolithic-kernel-lib' into kernelApi_symbols
fdbade6f8ded kernel: create monolithic kernel static library
75a5c8258ec5 Merge bitcoin/bitcoin#33063: util: Revert "common: Close non-std fds before exec in RunCommandJSON"
3b188b8b3dae Merge bitcoin/bitcoin#31576: test: Move `script_assets_tests` into its own suite
2e97541396b9 Merge bitcoin/bitcoin#32944: wallet: Remove `upgradewallet` RPC
b08041cac863 Merge bitcoin/bitcoin#32845: rpc, test: Fix JSON parsing errors in unloadwallet and getdescriptoractivity RPCs
fc162299f0cc Merge bitcoin/bitcoin#32994: p2p: rename GetAddresses -> GetAddressesUnsafe
633d8ea17b9f Merge bitcoin/bitcoin#32970: ci: Enable more shellcheck
faa1c3e80d95 Revert "Merge bitcoin/bitcoin#32343: common: Close non-std fds before exec in RunCommandJSON"
6cdc5a90cffe Merge bitcoin/bitcoin#32967: log: [refactor] Use info level for init logs
443c32a3e686 Merge bitcoin/bitcoin#32822: fuzz: Make process_message(s) more deterministic
face8123fdc1 log: [refactor] Use info level for init logs
fa183761cb09 log: Remove function name from init logs
5ad79b203505 Merge bitcoin/bitcoin#32593: wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
e17fb86382ea Merge bitcoin/bitcoin#32888: ci: Use optimized Debug build type in test-each-commit
fd3d80c209e5 Merge bitcoin/bitcoin#33047: test: check proper OP_2ROT behavior
1119ac51f0c8 Merge bitcoin/bitcoin#33040: doc: update headers and remove manual TOCs
e2f2df0ead81 Merge bitcoin/bitcoin#32984: wallet: Set migrated wallet name only on success
16f7b43b6808 Merge bitcoin/bitcoin#33049: doc: Fix typos in asmap README
b59dc21847d3 doc: Fix typos in asmap README
ca38cf701dc6 doc: fix a few obvious typos in the affected files
ddab466e0d95 doc: remove manual TOCs
26a3730711c7 doc: unify `developer-notes` and `productivity` header styles
eb137184482c Merge bitcoin/bitcoin#31179: RPC: Add reserve member function to `UniValue` and use it in `blockToJSON` function
b94c6356a29b test: check proper OP_2ROT behavior
73e754bd01b0 Merge bitcoin/bitcoin#33001: test: Do not pass tests on unhandled exceptions
cfb859e82edf Merge bitcoin/bitcoin#33037: doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
afd3b34dc5e2 Merge bitcoin/bitcoin#33004: Enable `-natpmp` by default
49bbf9ff28f8 Merge bitcoin/bitcoin#33036: Update secp256k1 subtree to latest master
c5c1960f9350 doc: Add release notes for changes in RPCs
90fd5acbe57e rpc, test: Fix error message in getdescriptoractivity
39fef1d20367 test: Add missing logging info for each test
53ac704efd66 rpc, test: Fix error message in unloadwallet
1fc3a8e8e7ae rpc, test: Add EnsureUniqueWalletName tests
900bb53905aa Merge bitcoin/bitcoin#32990: wallet: remove outdated `pszSkip` arg of database `Rewrite` func
c8ec423719aa Merge bitcoin/bitcoin#33020: test: delete commented-out tests and add a test case in wallet_signer
09f004bd9fec Merge bitcoin/bitcoin#32945: tests: speed up coins_tests by parallelizing
5d98fc755963 Merge bitcoin/bitcoin#33030: test: check tx is final when there is no locktime
b635bc089629 rpc, util: Add EnsureUniqueWalletName
da318fe53fa9 test: delete commented out tests
6d80e999a064 test: external signer returns invalid JSON response
065e42976a70 test: IsFinalTx returns true when there is no locktime
1cb23997033c doc: clarify the GetAddresses/GetAddressesUnsafe documentation
e5a7dfd79f61 p2p: rename GetAddresses -> GetAddressesUnsafe
faa2f3b1afe7 doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
336b8be37b22 Update secp256k1 subtree to latest master
5600e6fc4bb4 Squashed 'src/secp256k1/' changes from 4187a46649..b9313c6e1a
06ab3a394ade tests: speed up coins_tests by parallelizing
7129c9ea8e95 Merge bitcoin/bitcoin#32827: mempool: Avoid needless vtx iteration during IBD
11c6a864c9ee Merge bitcoin/bitcoin#33007: test: fix `ReadTopologicalSet` unsigned integer overflow
9bc33432e214 Merge bitcoin/bitcoin#32999: ci: Use APT_LLVM_V in msan task
5878f35446ae Merge bitcoin/bitcoin#31144: [IBD] multi-byte block obfuscation
249889bee6b8 orphanage: avoid vtx iteration when no orphans
41ad2be4340d mempool: Avoid expensive loop in `removeForBlock` during IBD
e9edd43a9592 Merge bitcoin/bitcoin#32521: policy: make pathological transactions packed with legacy sigops non-standard
80067ac111c2 Merge bitcoin/bitcoin#31829: p2p: improve TxOrphanage denial of service bounds
31c4e77a256c test: fix ReadTopologicalSet unsigned integer overflow
672c85cb1ea0 Merge bitcoin/bitcoin#32868: test: refactor: overhaul block hash determination for `CBlock{,Header}` objects
fa1a14a13a15 fuzz: Reset chainman state in process_message(s) targets
fa9a3de09b4c fuzz: DisableNextWrite
aeeeeec9f749 fuzz: Reset dirty connman state in process_message(s) targets
fa11eea4059a fuzz: Avoid non-determinism in process_message(s) target (PeerMan)
faa3e684118b test: Log KeyboardInterrupt as exception
b2d07f872c58 Add release notes for -natpmp enabled by default
3fc660d26719 mapport: turn -natpmp to on by default
fa30b34026f7 test: Do not pass tests on unhandled exceptions
96da68a38fa2 qa: functional test a transaction running into the legacy sigop limit
367147954d16 qa: unit test standardness of inputs packed with legacy sigops
5863315e33ba policy: make pathological transactions packed with legacy sigops non-standard.
5fa34951ead2 test: avoid unneeded block header hash -> integer conversions
2118301d77c2 test: rename CBlockHeader `.hash` -> `.hash_hex` for consistency
23be0ec2f074 test: rename CBlockHeader `.rehash()`/`.sha256` -> `.hash_int` for consistency
8b09cc350afa test: remove bare CBlockHeader `.rehash()`/`.calc_sha256()` calls
0716382c20a6 test: remove header hash caching in CBlockHeader class
0f044e82bd5f test: avoid direct block header modification in feature_block.py
f3c791d2e391 test: refactor: dedup `CBlockHeader` serialization
fad040a5787a ci: Use APT_LLVM_V in msan task
060695c22ae7 test: Failed load after migrate should restore backup
248b6a27c351 optimization: peel align-head and unroll body to 64 bytes
e7114fc6dc34 optimization: migrate fixed-size obfuscation from `std::vector<std::byte>` to `uint64_t`
478d40afc6fa refactor: encapsulate `vector`/`array` keys into `Obfuscation`
377aab8e5a8d refactor: move `util::Xor` to `Obfuscation().Xor`
fa5d296e3beb refactor: prepare mempool_persist for obfuscation key change
6bbf2d9311b4 refactor: prepare `DBWrapper` for obfuscation key change
0b8bec8aa626 scripted-diff: unify xor-vs-obfuscation nomenclature
972697976c02 bench: make ObfuscationBench more representative
618a30e326e9 test: compare util::Xor with randomized inputs against simple impl
a5141cd39ecb test: make sure dbwrapper obfuscation key is never obfuscated
54ab0bd64c36 refactor: commit to 8 byte obfuscation keys
7aa557a37b73 random: add fixed-size `std::array` generation
9f713b83dcf7 Merge bitcoin/bitcoin#32837: depends: fix libevent `_WIN32_WINNT` usage
2dfeb6668cb2 wallet: remove outdated `pszSkip` arg of database `Rewrite` func
8a4cfddf23a4 wallet: Set migrated wallet name only on success
d89c6fa4a718 wallet: Remove `upgradewallet` RPC
184159e4f30c Merge bitcoin/bitcoin#32922: test: use notarized v28.2 binaries and fix macOS detection
5d17e64a0290 Merge bitcoin/bitcoin#32677: test: headers sync timeout
0087ba409b36 Merge bitcoin/bitcoin#32968: test: fix intermittent failure in rpc_invalidateblock.py
50024620b909 [bench] worst case LimitOrphans and EraseForBlock
45c7a4b56d28 [functional test] orphan resolution works in the presence of DoSy peers
835f5c77cdee [prep/test] restart instead of bumpmocktime between p2p_orphan_handling subtests
b113877545a1 [fuzz] Add simulation fuzz test for TxOrphanage
03aaaedc6daf [prep] Return the made-reconsiderable announcements in AddChildrenToWorkSet
ea29c4371e86 [p2p] bump DEFAULT_MAX_ORPHANAGE_LATENCY_SCORE to 3,000
24afee8d8f94 [fuzz] TxOrphanage protects peers that don't go over limit
a2878cfb4ae2 [unit test] strengthen GetChildrenFromSamePeer tests: results are in recency order
7ce3b7ee579c [unit test] basic TxOrphanage eviction and protection
4d23d1d7e7fa [cleanup] remove unused rng param from LimitOrphans
067365d2a8a4 [p2p] overhaul TxOrphanage with smarter limits
1a41e7962db3 [refactor] create aliases for TxOrphanage Count and Usage
b50bd72c42bc [prep] change return type of EraseTx to bool
3da6d7f8f6fc [prep/refactor] make TxOrphanage a virtual class implemented by TxOrphanageImpl
77ebe8f28012 [prep/test] have TxOrphanage remember its own limits in LimitOrphans
d0af4239b7f0 [prep/refactor] move DEFAULT_MAX_ORPHAN_TRANSACTIONS to txorphanage.h
51365225b898 [prep/config] remove -maxorphantx
8dd24c29aec8 [prep/test] modify test to not access TxOrphanage internals
b53fab1467fd Merge bitcoin/bitcoin#32948: refactor: cleanup index logging
fa1fd074685c ci: Enable more shellcheck
61e800e75cff test: headers sync timeout
28416f367a5d test: fix intermittent failure in rpc_invalidateblock.py
e72cb20c3fb7 Merge bitcoin/bitcoin#32943: depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
97fb46d0a081 Merge bitcoin/bitcoin#32880: ci: Avoid cd into build dir
69b9ad02da89 Merge bitcoin/bitcoin#32954: cmake: Drop no longer necessary "cmakeMinimumRequired" object
faa3171ff22f ci: Use optimized Debug build type in test-each-commit
fa21c3401e15 ci: [doc] reword debug log message
12a6959892cb cmake: Drop no longer necessary "cmakeMinimumRequired" object
44f532782445 [fuzz] add SeedRandomStateForTest(SeedRand::ZEROS) to txorphan
15a4ec906976 [prep/rpc] remove entry and expiry time from getorphantxs
08e58fa91198 [prep/refactor] move txorphanage to node namespace and directory
bb91d23fa956 [txorphanage] change type of usage to int64_t
c18bf0bd9be6 refactor: cleanup index logging
f5647c6c5ae8 depends: fix libevent _WIN32_WINNT usage
44f3bae300dc depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
fad191ff48b1 ci: Avoid cd into build dir
4bb4c865999b test: document HOST for get_previous_releases.py
609203d5075c test: stop signing previous releases >= v28.2
c6dc2c29f828 test: replace v28.0 with notarized v28.2
5bd73d96a3a7 test: fix macOS detection
c40dbbbf7707 test: Move `script_assets_tests` into its own suite
6135e0553e6e wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
5d82d92aff7c rpc: reserve space for `UniValue` variables  in `blockToJSON`
6a506d5c37d1 UniValue: add reserve member function
bd461195f4b3 bench: support benching all verbosity of `BlockToJson`

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 506c4276cf7a2b775265646e2b593262bd18c0ec
fanquake added a commit that referenced this pull request Aug 4, 2025
c0642e5 [fuzz] fix latency score check in txorphan_protected (glozow)
3d4d4f0 scripted-diff: rename "ann" variables to "latency_score" (monlovesmango)
3b92448 [doc] comment fixups for orphanage changes (glozow)
1384dba [config] emit warning for -maxorphantx, but allow it to be set (glozow)
b10c55b fix up TxOrphanage lower_bound sanity checks (glozow)
cfd71c6 scripted-diff: rename TxOrphanage outpoints index (glozow)
edb97bb [logging] add logs for inner loop of LimitOrphans (glozow)
8a58d0e scripted-diff: rename OrphanTxBase to OrphanInfo (glozow)
cc50f2f [cleanup] replace TxOrphanage::Size() with CountUniqueOrphans (glozow)
ed24e01 [optimization] Maintain at most 1 reconsiderable announcement per wtxid (Pieter Wuille)
af7402c [refactor] make TxOrphanage keep itself trimmed (glozow)
d1fac25 [doc] 31829 release note (glozow)

Pull request description:

  Followup to #31829:
  - Release notes
  - Have the orphanage auto-trim itself whenever necessary (and test changes) #31829 (comment)
  - Reduce duplicate reconsiderations by keeping track of which txns are already reconsiderable so we only mark it for reconsideration for 1 peer at a time #31829 (comment)
  - Rename `OrphanTxBase` to `OrphanInfo`
  - Get rid of `Size()` method by replacing all calls with `CountUniqueOrphans`
  - Rename outpoints index since they point to wtxids, not iterators #31829 (comment)
  - Add more logging in the `LimitOrphans` inner loop to make it easy to see which peers are being trimmed #31829 (comment)

ACKs for top commit:
  sipa:
    utACK c0642e5
  marcofleon:
    Nice, ACK c0642e5

Tree-SHA512: f298eae92cf906ed5e4f15a24eeffa7b9e620bcff457772cd77522dd9f0b3b183ffc976871b1b0e6fe93009e64877d518e53d4b9e186e0df58fc16d17f6de90a
alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Aug 6, 2025
…1f4c885b0

641f4c885b0 Add BlockReader fucntionality to kernel library
2c792833836 Add directory lcoking and read-only mode to BlockTreeStore
357cdb12cdd Flush disk writes when not in initial block download
11ffa7948c5 Remove block_tree_db_in_memory parameter after flat-file migration
7b3c7268728 blockstorage: Remove BlockTreeDB dead code
4d66896d1a2 kernel: Add assumed header store to chainparams
08d1848c81b kernel: Remove block tree db params
c2e72c134d2 blockstorage: Replace BlockTreeDB with BlockTreeStore
1559ec22ac2 fuzz: Use BlockTreeStore in block index fuzz test
32bb39bad1d kernel: Add blocktreestorage module
6a9fdf7ae58 kernel: Fix bitcoin-chainstate for windows
f6524514e33 kernel: Add Purpose section to header documentation
4ae2cfb4e27 kernel: Allowing reducing exports
a1c072eb393 kernel: Add pure kernel bitcoin-chainstate
136fc5b3f0d kernel: Add functions to get the block hash from a block
3791a272053 kernel: Add block index utility functions to C header
1236c88392a kernel: Add function to read block undo data from disk to C header
bf340b140ff kernel: Add functions to read block from disk to C header
173e621fa10 kernel: Add function for copying block data to C header
8f717b62a56 kernel: Add functions for the block validation state to C header
4353ddcd6d2 kernel: Add validation interface to C header
037bc7c5109 kernel: Add interrupt function to C header
4cc133ba101 kernel: Add import blocks function to C header
88ea62fc269 kernel: Add chainstate load options for in-memory dbs in C header
8c5fcdc65d1 kernel: Add options for reindexing in C header
d2181ddcb78 kernel: Add block validation to C header
0f50066b6fc kernel: Add chainstate loading when instantiating a ChainstateManager
e1486618c04 kernel: Add chainstate manager option for setting worker threads
0bf8f0e583a kernel: Add chainstate manager object to C header
89b4b0100ed kernel: Add notifications context option to C header
c229caf460e kernel: Add chain params context option to C header
052bedb4075 kernel: Add kernel library context object
a25e2f76092 kernel: Add logging to kernel library C header
0a9b1793134 kernel: Introduce initial kernel C header API
00604296e17 Merge bitcoin/bitcoin#32866: doc: add note for watch-only wallet migration
91058877ff7 Merge bitcoin/bitcoin#32273: wallet: Fix relative path backup during migration.
6b99670e3c0 Merge bitcoin/bitcoin#33075: doc: Add legacy wallet removal release notes
2cef200340f Merge bitcoin/bitcoin#28944: wallet, rpc: add anti-fee-sniping to `send` and `sendall`
932e993b37c Merge bitcoin/bitcoin#33073: guix: warn SOURCE_DATE_EPOCH set in guix-codesign
0bed946e5d1 Merge bitcoin/bitcoin#33079: ci: limit max stack size to 512 KiB
28ec91c30e2 Merge bitcoin/bitcoin#33088: doc: move `cmake -B build -LH` up in Unix build docs
2f410ad78c7 Merge bitcoin/bitcoin#32263: cluster mempool: add TxGraph work controls
6757052fc43 doc: move `cmake -B build -LH` up in Unix build docs
953c90d7649 Merge bitcoin/bitcoin#33086: contrib: [tracing] fix pointer argument handling in mempool_monitor.py
5888b4a2a55 doc: add note for watch-only wallet migration
3b23f95e346 ci: limit max stack size to 512 KiB
2931a874776 ci: limit stack size to 512kb in native macOS jobs
3724e9b40a6 Merge bitcoin/bitcoin#32973: validation: docs and cleanups for MemPoolAccept coins views
0ce041ea88d tracing: fix pointer argument handling in mempool_monitor.py
321984705db Merge bitcoin/bitcoin#32279: [IBD] prevector: store `P2WSH`/`P2TR`/`P2PK` scripts inline
fa45ccc15df doc: Add legacy wallet removal release notes
2a97ff466d3 Merge bitcoin/bitcoin#29954: RPC: Return `permitbaremultisig` and `maxdatacarriersize` in `getmempoolinfo`
fd068257e07 Merge bitcoin/bitcoin#33065: rpc, wallet: replace remaining hardcoded output types with `FormatAllOutputTypes`
9cafdf8941a Merge bitcoin/bitcoin#33064: test: fix RPC coverage check
c8309198f81 Merge bitcoin/bitcoin#33070: doc/zmq: fix unix socket path example
1bed0f734b3 guix: warn SOURCE_DATE_EPOCH set in guix-codesign
1c10b7351e1 RPC: Return permitbaremultisig and maxdatacarriersize in getmempoolinfo
e83699a626b doc/zmq: fix unix socket path example
8aed477c332 test: fix RPC coverage check
2630b64f810 test: add abortrescan RPC test
75a5c8258ec Merge bitcoin/bitcoin#33063: util: Revert "common: Close non-std fds before exec in RunCommandJSON"
d5104cfbaeb prevector: store `P2WSH`/`P2TR`/`P2PK` scripts inline
52121506b2a test: assert `CScript` allocation characteristics
65ac7f6d4d1 refactor: modernize `CScriptBase` definition
756da2a994c refactor: extract `STATIC_SIZE` constant to prevector
251d0208468 init, wallet: replace hardcoded output types with `FormatAllOutputTypes`
3b188b8b3da Merge bitcoin/bitcoin#31576: test: Move `script_assets_tests` into its own suite
2e97541396b Merge bitcoin/bitcoin#32944: wallet: Remove `upgradewallet` RPC
b08041cac86 Merge bitcoin/bitcoin#32845: rpc, test: Fix JSON parsing errors in unloadwallet and getdescriptoractivity RPCs
e3ba0757a94 rpc, wallet: replace remaining hardcoded output types with `FormatAllOutputTypes`
fc162299f0c Merge bitcoin/bitcoin#32994: p2p: rename GetAddresses -> GetAddressesUnsafe
633d8ea17b9 Merge bitcoin/bitcoin#32970: ci: Enable more shellcheck
faa1c3e80d9 Revert "Merge bitcoin/bitcoin#32343: common: Close non-std fds before exec in RunCommandJSON"
6cdc5a90cff Merge bitcoin/bitcoin#32967: log: [refactor] Use info level for init logs
443c32a3e68 Merge bitcoin/bitcoin#32822: fuzz: Make process_message(s) more deterministic
face8123fdc log: [refactor] Use info level for init logs
fa183761cb0 log: Remove function name from init logs
5ad79b20350 Merge bitcoin/bitcoin#32593: wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
e17fb86382e Merge bitcoin/bitcoin#32888: ci: Use optimized Debug build type in test-each-commit
fd3d80c209e Merge bitcoin/bitcoin#33047: test: check proper OP_2ROT behavior
1119ac51f0c Merge bitcoin/bitcoin#33040: doc: update headers and remove manual TOCs
e2f2df0ead8 Merge bitcoin/bitcoin#32984: wallet: Set migrated wallet name only on success
16f7b43b680 Merge bitcoin/bitcoin#33049: doc: Fix typos in asmap README
b59dc21847d doc: Fix typos in asmap README
ca38cf701dc doc: fix a few obvious typos in the affected files
ddab466e0d9 doc: remove manual TOCs
26a3730711c doc: unify `developer-notes` and `productivity` header styles
eb137184482 Merge bitcoin/bitcoin#31179: RPC: Add reserve member function to `UniValue` and use it in `blockToJSON` function
b94c6356a29 test: check proper OP_2ROT behavior
73e754bd01b Merge bitcoin/bitcoin#33001: test: Do not pass tests on unhandled exceptions
cfb859e82ed Merge bitcoin/bitcoin#33037: doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
afd3b34dc5e Merge bitcoin/bitcoin#33004: Enable `-natpmp` by default
49bbf9ff28f Merge bitcoin/bitcoin#33036: Update secp256k1 subtree to latest master
c5c1960f935 doc: Add release notes for changes in RPCs
90fd5acbe57 rpc, test: Fix error message in getdescriptoractivity
39fef1d2036 test: Add missing logging info for each test
53ac704efd6 rpc, test: Fix error message in unloadwallet
1fc3a8e8e7a rpc, test: Add EnsureUniqueWalletName tests
900bb53905a Merge bitcoin/bitcoin#32990: wallet: remove outdated `pszSkip` arg of database `Rewrite` func
c8ec423719a Merge bitcoin/bitcoin#33020: test: delete commented-out tests and add a test case in wallet_signer
09f004bd9fe Merge bitcoin/bitcoin#32945: tests: speed up coins_tests by parallelizing
5d98fc75596 Merge bitcoin/bitcoin#33030: test: check tx is final when there is no locktime
b635bc08962 rpc, util: Add EnsureUniqueWalletName
da318fe53fa test: delete commented out tests
6d80e999a06 test: external signer returns invalid JSON response
065e42976a7 test: IsFinalTx returns true when there is no locktime
1cb23997033 doc: clarify the GetAddresses/GetAddressesUnsafe documentation
e5a7dfd79f6 p2p: rename GetAddresses -> GetAddressesUnsafe
faa2f3b1afe doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
336b8be37b2 Update secp256k1 subtree to latest master
5600e6fc4bb Squashed 'src/secp256k1/' changes from 4187a46649..b9313c6e1a
06ab3a394ad tests: speed up coins_tests by parallelizing
7129c9ea8e9 Merge bitcoin/bitcoin#32827: mempool: Avoid needless vtx iteration during IBD
11c6a864c9e Merge bitcoin/bitcoin#33007: test: fix `ReadTopologicalSet` unsigned integer overflow
9bc33432e21 Merge bitcoin/bitcoin#32999: ci: Use APT_LLVM_V in msan task
5878f35446a Merge bitcoin/bitcoin#31144: [IBD] multi-byte block obfuscation
249889bee6b orphanage: avoid vtx iteration when no orphans
41ad2be4340 mempool: Avoid expensive loop in `removeForBlock` during IBD
e9edd43a959 Merge bitcoin/bitcoin#32521: policy: make pathological transactions packed with legacy sigops non-standard
80067ac111c Merge bitcoin/bitcoin#31829: p2p: improve TxOrphanage denial of service bounds
31c4e77a256 test: fix ReadTopologicalSet unsigned integer overflow
672c85cb1ea Merge bitcoin/bitcoin#32868: test: refactor: overhaul block hash determination for `CBlock{,Header}` objects
fa1a14a13a1 fuzz: Reset chainman state in process_message(s) targets
fa9a3de09b4 fuzz: DisableNextWrite
aeeeeec9f74 fuzz: Reset dirty connman state in process_message(s) targets
fa11eea4059 fuzz: Avoid non-determinism in process_message(s) target (PeerMan)
faa3e684118 test: Log KeyboardInterrupt as exception
b2d07f872c5 Add release notes for -natpmp enabled by default
3fc660d2671 mapport: turn -natpmp to on by default
fa30b34026f test: Do not pass tests on unhandled exceptions
96da68a38fa qa: functional test a transaction running into the legacy sigop limit
367147954d1 qa: unit test standardness of inputs packed with legacy sigops
5863315e33b policy: make pathological transactions packed with legacy sigops non-standard.
5fa34951ead test: avoid unneeded block header hash -> integer conversions
2118301d77c test: rename CBlockHeader `.hash` -> `.hash_hex` for consistency
23be0ec2f07 test: rename CBlockHeader `.rehash()`/`.sha256` -> `.hash_int` for consistency
8b09cc350af test: remove bare CBlockHeader `.rehash()`/`.calc_sha256()` calls
0716382c20a test: remove header hash caching in CBlockHeader class
0f044e82bd5 test: avoid direct block header modification in feature_block.py
f3c791d2e39 test: refactor: dedup `CBlockHeader` serialization
fad040a5787 ci: Use APT_LLVM_V in msan task
76fe0e59ec4 test: Migration of a wallet ending in `../`
f0bb3d50fef test: Migration of a wallet ending in `/`
41faef5f80d test: Migration fail recovery w/ `../` in path
63c6d364376 test: Migration of a wallet with `../` in path.
70f1c99c901 wallet: Fix migration of wallets with pathnames.
f6ee59b6e29 wallet: migration: Make backup in walletdir
e22c3599c67 test: wallet: Check direct file backup name.
060695c22ae test: Failed load after migrate should restore backup
248b6a27c35 optimization: peel align-head and unroll body to 64 bytes
e7114fc6dc3 optimization: migrate fixed-size obfuscation from `std::vector<std::byte>` to `uint64_t`
478d40afc6f refactor: encapsulate `vector`/`array` keys into `Obfuscation`
377aab8e5a8 refactor: move `util::Xor` to `Obfuscation().Xor`
fa5d296e3be refactor: prepare mempool_persist for obfuscation key change
6bbf2d9311b refactor: prepare `DBWrapper` for obfuscation key change
0b8bec8aa62 scripted-diff: unify xor-vs-obfuscation nomenclature
972697976c0 bench: make ObfuscationBench more representative
618a30e326e test: compare util::Xor with randomized inputs against simple impl
a5141cd39ec test: make sure dbwrapper obfuscation key is never obfuscated
54ab0bd64c3 refactor: commit to 8 byte obfuscation keys
7aa557a37b7 random: add fixed-size `std::array` generation
b6d4688f77d [doc] reword comments in test_mid_package_replacement
f3a613aa5bb [cleanup] delete brittle test_mid_package_eviction
9f713b83dcf Merge bitcoin/bitcoin#32837: depends: fix libevent `_WIN32_WINNT` usage
2dfeb6668cb wallet: remove outdated `pszSkip` arg of database `Rewrite` func
8a4cfddf23a wallet: Set migrated wallet name only on success
d89c6fa4a71 wallet: Remove `upgradewallet` RPC
184159e4f30 Merge bitcoin/bitcoin#32922: test: use notarized v28.2 binaries and fix macOS detection
5d17e64a029 Merge bitcoin/bitcoin#32677: test: headers sync timeout
0087ba409b3 Merge bitcoin/bitcoin#32968: test: fix intermittent failure in rpc_invalidateblock.py
50024620b90 [bench] worst case LimitOrphans and EraseForBlock
45c7a4b56d2 [functional test] orphan resolution works in the presence of DoSy peers
835f5c77cde [prep/test] restart instead of bumpmocktime between p2p_orphan_handling subtests
b113877545a [fuzz] Add simulation fuzz test for TxOrphanage
03aaaedc6da [prep] Return the made-reconsiderable announcements in AddChildrenToWorkSet
ea29c4371e8 [p2p] bump DEFAULT_MAX_ORPHANAGE_LATENCY_SCORE to 3,000
24afee8d8f9 [fuzz] TxOrphanage protects peers that don't go over limit
a2878cfb4ae [unit test] strengthen GetChildrenFromSamePeer tests: results are in recency order
7ce3b7ee579 [unit test] basic TxOrphanage eviction and protection
4d23d1d7e7f [cleanup] remove unused rng param from LimitOrphans
067365d2a8a [p2p] overhaul TxOrphanage with smarter limits
1a41e7962db [refactor] create aliases for TxOrphanage Count and Usage
b50bd72c42b [prep] change return type of EraseTx to bool
3da6d7f8f6f [prep/refactor] make TxOrphanage a virtual class implemented by TxOrphanageImpl
77ebe8f2801 [prep/test] have TxOrphanage remember its own limits in LimitOrphans
d0af4239b7f [prep/refactor] move DEFAULT_MAX_ORPHAN_TRANSACTIONS to txorphanage.h
51365225b89 [prep/config] remove -maxorphantx
8dd24c29aec [prep/test] modify test to not access TxOrphanage internals
c3cd7fcb2cd [doc] remove references to now-nonexistent Finalize() function
d8140f5f050 don't make a copy of m_non_base_coins
98ba2b1db2e [doc] MemPoolAccept coins views
ba02c30b8a6 [doc] always CleanupTemporaryCoins after a mempool trim
b53fab1467f Merge bitcoin/bitcoin#32948: refactor: cleanup index logging
62ed1f92eff txgraph: check that DoWork finds optimal if given high budget (tests)
f3c2fc867fc txgraph: add work limit to DoWork(), try optimal (feature)
fa1fd074685 ci: Enable more shellcheck
e96b00d99eb txgraph: make number of acceptable iterations configurable (feature)
cfe9958852b txgraph: track amount of work done in linearization (preparation)
6ba316eaa03 txgraph: 1-or-2-tx split-off clusters are optimal (optimization)
fad0eb091e5 txgraph: reset quality when merging clusters (bugfix)
61e800e75cf test: headers sync timeout
28416f367a5 test: fix intermittent failure in rpc_invalidateblock.py
e72cb20c3fb Merge bitcoin/bitcoin#32943: depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
97fb46d0a08 Merge bitcoin/bitcoin#32880: ci: Avoid cd into build dir
69b9ad02da8 Merge bitcoin/bitcoin#32954: cmake: Drop no longer necessary "cmakeMinimumRequired" object
faa3171ff22 ci: Use optimized Debug build type in test-each-commit
fa21c3401e1 ci: [doc] reword debug log message
12a6959892c cmake: Drop no longer necessary "cmakeMinimumRequired" object
44f53278244 [fuzz] add SeedRandomStateForTest(SeedRand::ZEROS) to txorphan
15a4ec90697 [prep/rpc] remove entry and expiry time from getorphantxs
08e58fa9119 [prep/refactor] move txorphanage to node namespace and directory
bb91d23fa95 [txorphanage] change type of usage to int64_t
c18bf0bd9be refactor: cleanup index logging
f5647c6c5ae depends: fix libevent _WIN32_WINNT usage
44f3bae300d depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
fad191ff48b ci: Avoid cd into build dir
4bb4c865999 test: document HOST for get_previous_releases.py
609203d5075 test: stop signing previous releases >= v28.2
c6dc2c29f82 test: replace v28.0 with notarized v28.2
5bd73d96a3a test: fix macOS detection
aac0b6dd79b test: test sendall and send do anti-fee-sniping
20802c7b65f wallet, rpc: add anti-fee-sniping to `send` and `sendall`
c40dbbbf770 test: Move `script_assets_tests` into its own suite
6135e0553e6 wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
5d82d92aff7 rpc: reserve space for `UniValue` variables  in `blockToJSON`
6a506d5c37d UniValue: add reserve member function
bd461195f4b bench: support benching all verbosity of `BlockToJson`
REVERT: 3d6b3fd8f65 kernel: Fix bitcoin-chainstate for windows
REVERT: ec099435dda kernel: Add Purpose section to header documentation
REVERT: 832689c68b5 kernel: Allowing reducing exports
REVERT: 969a8110a56 kernel: Add pure kernel bitcoin-chainstate
REVERT: 88e2f3001b6 kernel: Add functions to get the block hash from a block
REVERT: de4a96b341f kernel: Add block index utility functions to C header
REVERT: c3582e16a77 kernel: Add function to read block undo data from disk to C header
REVERT: 183b53c981e kernel: Add functions to read block from disk to C header
REVERT: d3557068694 kernel: Add function for copying block data to C header
REVERT: 3ac26a9911a kernel: Add functions for the block validation state to C header
REVERT: eb9a90ff5cc kernel: Add validation interface to C header
REVERT: 451558a160a kernel: Add interrupt function to C header
REVERT: 55e36cf39fd kernel: Add import blocks function to C header
REVERT: 3671c91fd59 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 128415b1b75 kernel: Add options for reindexing in C header
REVERT: add8205e8e9 kernel: Add block validation to C header
REVERT: 1404b97942c kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: 76d73226d99 kernel: Add chainstate manager option for setting worker threads
REVERT: 6de50dca962 kernel: Add chainstate manager object to C header
REVERT: 477df9b640e kernel: Add notifications context option to C header
REVERT: c3868780f52 kernel: Add chain params context option to C header
REVERT: 649bd3fd565 kernel: Add kernel library context object
REVERT: b7e24e1547a kernel: Add logging to kernel library C header
REVERT: c1536041e43 kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 641f4c885b0a09b2d496f17fa2b210e488849557
TheCharlatan added a commit to TheCharlatan/rust-bitcoinkernel that referenced this pull request Aug 7, 2025
…e8003578e72

ce8003578e72 kernel: Fix bitcoin-chainstate for windows
9ebe4a83a937 kernel: Add Purpose section to header documentation
10d2432218eb kernel: Allowing reducing exports
e04b1e1f5284 kernel: Add pure kernel bitcoin-chainstate
e0f98a533cd6 kernel: Add functions to get the block hash from a block
af1c5e349550 kernel: Add block index utility functions to C header
fd60e50badc5 kernel: Add function to read block undo data from disk to C header
f507d230bba3 kernel: Add functions to read block from disk to C header
1480dd9f41fc kernel: Add function for copying block data to C header
26f484b94e66 kernel: Add functions for the block validation state to C header
8c286be14aff kernel: Add validation interface to C header
6d733019bba6 kernel: Add interrupt function to C header
c917663b0b51 kernel: Add import blocks function to C header
9c2496406f7e kernel: Add chainstate load options for in-memory dbs in C header
393329899d90 kernel: Add options for reindexing in C header
107156b9362e kernel: Add block validation to C header
b83c0d3ba499 kernel: Add chainstate loading when instantiating a ChainstateManager
c3279239c75f kernel: Add chainstate manager option for setting worker threads
f7a2c3c600e5 kernel: Add chainstate manager object to C header
5e8b57622c33 kernel: Add notifications context option to C header
56298e76271a kernel: Add chain params context option to C header
9bade37d97d7 kernel: Add kernel library context object
9859726fbd6b kernel: Add logging to kernel library C header
6dd7a4fcab08 kernel: Introduce initial kernel C header API
cf15d45192e0 Merge bitcoin/bitcoin#33044: contrib: drop use of `PermissionsStartOnly` & `Group=`
d7ed47fb80af Merge bitcoin/bitcoin#33077: kernel: create monolithic kernel static library
38e6ea9f3a6b Merge bitcoin/bitcoin#33101: cmake: Proactively avoid use of `SECP256K1_DISABLE_SHARED`
c92115dcb219 Merge bitcoin/bitcoin#33119: rpc: Fix 'getdescriptoractivity' RPCHelpMan, add test to verify fix
1dab8d0635b3 Merge bitcoin/bitcoin#33113: refactor: Use immediate lambda to work around GCC bug 117966
45bdbb13174f Merge bitcoin/bitcoin#33122: test: remove duplicated code in test/functional/wallet_migration.py
a45cc17d3443 Merge bitcoin/bitcoin#33115: cmake: Switch to generated `ts_files.cmake` file
b90da9c2e959 Merge bitcoin/bitcoin#33138: ci: Pass CI_FAILFAST_TEST_LEAVE_DANGLING into container
fa1d2f63803e ci: Pass CI_FAILFAST_TEST_LEAVE_DANGLING into container
fd813bf863b1 Merge bitcoin/bitcoin#33002: ci: Only pass documented env vars
9617a42fdb6f Merge bitcoin/bitcoin#32581: allocators: Apply manual ASan poisoning to `PoolResource`
33e7fc51f43d Merge bitcoin/bitcoin#33133: rpc: fix getpeerinfo ping duration unit docs
1252eeb997df rpc: fix getpeerinfo ping duration unit docs
6a7c0d3f8749 test: refactor to remove duplicated test code
d1b583181dcc Merge bitcoin/bitcoin#32654: init: make `-blockmaxweight` startup option debug only
50a92cd56fab Merge bitcoin/bitcoin#33060: test: Slay BnB Mutants
643bacd124f5 Merge bitcoin/bitcoin#33058: test: add assertions to SRD max weight test
eeb0b31e3a4b Merge bitcoin/bitcoin#32941: p2p: TxOrphanage revamp cleanups
c0642e558a02 [fuzz] fix latency score check in txorphan_protected
0cb1ed2b7c63 Merge bitcoin/bitcoin#33132: fuzz: txgraph: fix `real_is_optimal` flag propagation in `CommitStaging`
a26fbee38f95 qt: Translations update
444dcb2f9944 fuzz: txgraph: fix `real_is_optimal` flag propagation in `CommitStaging`
83a2216f5278 Merge bitcoin/bitcoin#33118: test: fix anti-fee-sniping off-by-one error
3543bfdfec34 test: Fix 'getdescriptoractivity' RPCHelpMan, add test to verify 'spend_vin' is the correct field
e07e2532b4d7 test: fix anti-fee-sniping off-by-one error
c7a24c305255 ci: Re-enable DEBUG=1 in centos task
3d4d4f0d92d4 scripted-diff: rename "ann" variables to "latency_score"
3b9244892382 [doc] comment fixups for orphanage changes
1384dbaf6d0b [config] emit warning for -maxorphantx, but allow it to be set
b10c55b298d4 fix up TxOrphanage lower_bound sanity checks
cfd71c67043a scripted-diff: rename TxOrphanage outpoints index
edb97bb3f151 [logging] add logs for inner loop of LimitOrphans
8a58d0e87d70 scripted-diff: rename OrphanTxBase to OrphanInfo
cc50f2f0df6e [cleanup] replace TxOrphanage::Size() with CountUniqueOrphans
ed24e0169690 [optimization] Maintain at most 1 reconsiderable announcement per wtxid
af7402ccfa7f [refactor] make TxOrphanage keep itself trimmed
d1fac25ff3c3 [doc] 31829 release note
75ed673193c5 Merge bitcoin/bitcoin#33048: test: reduce runtime of p2p_opportunistic_1p1c.py
ca04eebd7282 cmake: Switch to generated `ts_files.cmake` file
95341de6ca65 cmake, refactor: Move handling of Qt TS files into `locale` directory
24246c3deb8d Merge bitcoin/bitcoin#31385: package validation: relax the package-not-child-with-unconfirmed-parents rule
b8025b30cc42 Merge bitcoin/bitcoin#32559: doc: add alpine build instructions
18d1071dd124 init: replace deprecated PermissionsStartOnly systemd directive
1caaf650436e init: remove Group= as it will default to the user's default group
a7bafb3e0504 refactor: Use immediate lambda to work around GCC bug 117966
b093a19ae2ef cmake: Proactively avoid use of `SECP256K1_DISABLE_SHARED`
eb59a192d9ca cmake, refactor: Encapsulate adding secp256k1 subtree in function
4f27e8ca4d2a Merge bitcoin/bitcoin#33083: qa: test that we do not disconnect a peer for submitting an invalid compact block
bfc9d951292a Merge bitcoin/bitcoin#33104: test: Perform backup filename checks in migrate_and_get_rpc in wallet_migration.py
8712e074bb54 Merge bitcoin/bitcoin#33093: refactor: remove unused `ser_writedata16be` and `ser_readdata16be`
5ee4e7966957 Merge bitcoin/bitcoin#31244: descriptors: MuSig2
4b80147feb97 test: Perform backup filename checks in migrate_and_get_rpc
aef2dbb40276 Merge bitcoin/bitcoin#33099: ci: allow for any libc++ intrumentation & use it for TSAN
8283af13fe86 Merge bitcoin/bitcoin#32584: depends: hard-code necessary c(xx)flags rather than setting them per-host
547c64814d07 Merge bitcoin/bitcoin#32987: init: [gui] Avoid UB/crash in InitAndLoadChainstate
e6bfd95d5012 Merge bitcoin-core/gui#881: Move `FreespaceChecker` class into its own module
8a94cf8efebc Merge bitcoin/bitcoin#30635: rpc: add optional blockhash to waitfornewblock, unhide wait methods in help
dc78ed214061 Merge bitcoin/bitcoin#33005: refactor: GenTxid type safety followups
3cb65ffa83d4 Merge bitcoin/bitcoin#33100: ci: remove `ninja-build` from MSAN jobs
7aa5b67132df ci: remove DEBUG_LOCKORDER from TSAN job
b09af2ce5081 ci: instrument libc++ in TSAN job
6653cafd0b70 ci: allow libc++ instrumentation other than msan
3333d3f75f89 ci: Only pass documented env vars
3fe3fdb02b5c Merge bitcoin/bitcoin#33102: fuzz: cover BanMan::IsDiscouraged
c2ed576d2caf fuzz: cover BanMan::IsDiscouraged
3a03f075606b qt: Avoid header circular dependency
cab6736b701f ci: remove ninja-build from MSAN jobs
0431a690c3a4 cleanup: remove unused `ser_writedata16be` and `ser_readdata16be`
00604296e178 Merge bitcoin/bitcoin#32866: doc: add note for watch-only wallet migration
91058877ff78 Merge bitcoin/bitcoin#32273: wallet: Fix relative path backup during migration.
6b99670e3c08 Merge bitcoin/bitcoin#33075: doc: Add legacy wallet removal release notes
2cef200340f4 Merge bitcoin/bitcoin#28944: wallet, rpc: add anti-fee-sniping to `send` and `sendall`
932e993b37c4 Merge bitcoin/bitcoin#33073: guix: warn SOURCE_DATE_EPOCH set in guix-codesign
0bed946e5d16 Merge bitcoin/bitcoin#33079: ci: limit max stack size to 512 KiB
28ec91c30e23 Merge bitcoin/bitcoin#33088: doc: move `cmake -B build -LH` up in Unix build docs
c15743811685 qa: test that we do disconnect upon a second invalid compact block being announced
2f410ad78c76 Merge bitcoin/bitcoin#32263: cluster mempool: add TxGraph work controls
6757052fc439 doc: move `cmake -B build -LH` up in Unix build docs
9954d6c83338 depends: hard-code necessary c(xx)flags rather than setting them per-host
953c90d7649c Merge bitcoin/bitcoin#33086: contrib: [tracing] fix pointer argument handling in mempool_monitor.py
5888b4a2a556 doc: add note for watch-only wallet migration
3b23f95e3463 ci: limit max stack size to 512 KiB
2931a8747760 ci: limit stack size to 512kb in native macOS jobs
3724e9b40a69 Merge bitcoin/bitcoin#32973: validation: docs and cleanups for MemPoolAccept coins views
0ce041ea88db tracing: fix pointer argument handling in mempool_monitor.py
25884bd89684 qt, refactor: Move `FreespaceChecker` class into its own module
fb2dcbb160bd qa: test cached failure for compact block
f12d8b104e0e qa: test a compact block with an invalid transaction
d6c37b28a782 qa: remove unnecessary tx removal from compact block
321984705dbc Merge bitcoin/bitcoin#32279: [IBD] prevector: store `P2WSH`/`P2TR`/`P2PK` scripts inline
94b39ce73831 refactor: Change `m_tx_inventory_to_send` from `std::set<GenTxid>` to `std::set<Wtxid>`
fa45ccc15dfc doc: Add legacy wallet removal release notes
2a97ff466d32 Merge bitcoin/bitcoin#29954: RPC: Return `permitbaremultisig` and `maxdatacarriersize` in `getmempoolinfo`
fd068257e078 Merge bitcoin/bitcoin#33065: rpc, wallet: replace remaining hardcoded output types with `FormatAllOutputTypes`
9cafdf8941a9 Merge bitcoin/bitcoin#33064: test: fix RPC coverage check
fdbade6f8ded kernel: create monolithic kernel static library
c8309198f812 Merge bitcoin/bitcoin#33070: doc/zmq: fix unix socket path example
1bed0f734b3f guix: warn SOURCE_DATE_EPOCH set in guix-codesign
cc33e4578946 test: improve assertion for SRD max weight test
1c10b7351e19 RPC: Return permitbaremultisig and maxdatacarriersize in getmempoolinfo
e83699a626b8 doc/zmq: fix unix socket path example
8aed477c3322 test: fix RPC coverage check
2630b64f8100 test: add abortrescan RPC test
75a5c8258ec5 Merge bitcoin/bitcoin#33063: util: Revert "common: Close non-std fds before exec in RunCommandJSON"
d5104cfbaeb8 prevector: store `P2WSH`/`P2TR`/`P2PK` scripts inline
52121506b2a3 test: assert `CScript` allocation characteristics
65ac7f6d4d1e refactor: modernize `CScriptBase` definition
756da2a994c5 refactor: extract `STATIC_SIZE` constant to prevector
251d02084688 init, wallet: replace hardcoded output types with `FormatAllOutputTypes`
3b188b8b3dae Merge bitcoin/bitcoin#31576: test: Move `script_assets_tests` into its own suite
2e97541396b9 Merge bitcoin/bitcoin#32944: wallet: Remove `upgradewallet` RPC
b08041cac863 Merge bitcoin/bitcoin#32845: rpc, test: Fix JSON parsing errors in unloadwallet and getdescriptoractivity RPCs
a3cf623364e8 test: Test max_selection_weight edge cases
57fe8acc8a84 test: Check max_weight_exceeded error
e3ba0757a941 rpc, wallet: replace remaining hardcoded output types with `FormatAllOutputTypes`
fc162299f0cc Merge bitcoin/bitcoin#32994: p2p: rename GetAddresses -> GetAddressesUnsafe
633d8ea17b9f Merge bitcoin/bitcoin#32970: ci: Enable more shellcheck
faa1c3e80d95 Revert "Merge bitcoin/bitcoin#32343: common: Close non-std fds before exec in RunCommandJSON"
6cdc5a90cffe Merge bitcoin/bitcoin#32967: log: [refactor] Use info level for init logs
443c32a3e686 Merge bitcoin/bitcoin#32822: fuzz: Make process_message(s) more deterministic
face8123fdc1 log: [refactor] Use info level for init logs
fa183761cb09 log: Remove function name from init logs
5ad79b203505 Merge bitcoin/bitcoin#32593: wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
ea17a9423fb4 [doc] release note for relaxing requirement of all unconfirmed parents present
12f48d5ed302 test: add chained 1p1c propagation test
525be56741cf [unit test] package submission 2p1c with 1 parent missing
f24771af0581 relax child-with-unconfirmed-parents rule
e17fb86382ea Merge bitcoin/bitcoin#32888: ci: Use optimized Debug build type in test-each-commit
fd3d80c209e5 Merge bitcoin/bitcoin#33047: test: check proper OP_2ROT behavior
1119ac51f0c8 Merge bitcoin/bitcoin#33040: doc: update headers and remove manual TOCs
e2f2df0ead81 Merge bitcoin/bitcoin#32984: wallet: Set migrated wallet name only on success
16f7b43b6808 Merge bitcoin/bitcoin#33049: doc: Fix typos in asmap README
b59dc21847d3 doc: Fix typos in asmap README
ca38cf701dc6 doc: fix a few obvious typos in the affected files
ddab466e0d95 doc: remove manual TOCs
26a3730711c7 doc: unify `developer-notes` and `productivity` header styles
eb137184482c Merge bitcoin/bitcoin#31179: RPC: Add reserve member function to `UniValue` and use it in `blockToJSON` function
eb65f57f319d [test] setmocktime instead of waiting in 1p1c tests
70772dd4693b [test] cut the number of transactions involved in 1p1c DoS tests
b94c6356a29b test: check proper OP_2ROT behavior
73e754bd01b0 Merge bitcoin/bitcoin#33001: test: Do not pass tests on unhandled exceptions
a9819b0e9d3c refactor: Change `FindTxForGetData` to take GenTxid instead of CInv
d588575ed1e6 refactor: miscellaneous GenTxid followups
cfb859e82edf Merge bitcoin/bitcoin#33037: doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
afd3b34dc5e2 Merge bitcoin/bitcoin#33004: Enable `-natpmp` by default
49bbf9ff28f8 Merge bitcoin/bitcoin#33036: Update secp256k1 subtree to latest master
c5c1960f9350 doc: Add release notes for changes in RPCs
90fd5acbe57e rpc, test: Fix error message in getdescriptoractivity
39fef1d20367 test: Add missing logging info for each test
53ac704efd66 rpc, test: Fix error message in unloadwallet
1fc3a8e8e7ae rpc, test: Add EnsureUniqueWalletName tests
900bb53905aa Merge bitcoin/bitcoin#32990: wallet: remove outdated `pszSkip` arg of database `Rewrite` func
c8ec423719aa Merge bitcoin/bitcoin#33020: test: delete commented-out tests and add a test case in wallet_signer
09f004bd9fec Merge bitcoin/bitcoin#32945: tests: speed up coins_tests by parallelizing
5d98fc755963 Merge bitcoin/bitcoin#33030: test: check tx is final when there is no locktime
b635bc089629 rpc, util: Add EnsureUniqueWalletName
da318fe53fa9 test: delete commented out tests
6d80e999a064 test: external signer returns invalid JSON response
065e42976a70 test: IsFinalTx returns true when there is no locktime
1cb23997033c doc: clarify the GetAddresses/GetAddressesUnsafe documentation
e5a7dfd79f61 p2p: rename GetAddresses -> GetAddressesUnsafe
faa2f3b1afe7 doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
336b8be37b22 Update secp256k1 subtree to latest master
5600e6fc4bb4 Squashed 'src/secp256k1/' changes from 4187a46649..b9313c6e1a
06ab3a394ade tests: speed up coins_tests by parallelizing
7129c9ea8e95 Merge bitcoin/bitcoin#32827: mempool: Avoid needless vtx iteration during IBD
11c6a864c9ee Merge bitcoin/bitcoin#33007: test: fix `ReadTopologicalSet` unsigned integer overflow
9bc33432e214 Merge bitcoin/bitcoin#32999: ci: Use APT_LLVM_V in msan task
5878f35446ae Merge bitcoin/bitcoin#31144: [IBD] multi-byte block obfuscation
249889bee6b8 orphanage: avoid vtx iteration when no orphans
41ad2be4340d mempool: Avoid expensive loop in `removeForBlock` during IBD
e9edd43a9592 Merge bitcoin/bitcoin#32521: policy: make pathological transactions packed with legacy sigops non-standard
80067ac111c2 Merge bitcoin/bitcoin#31829: p2p: improve TxOrphanage denial of service bounds
31c4e77a256c test: fix ReadTopologicalSet unsigned integer overflow
672c85cb1ea0 Merge bitcoin/bitcoin#32868: test: refactor: overhaul block hash determination for `CBlock{,Header}` objects
fa1a14a13a15 fuzz: Reset chainman state in process_message(s) targets
fa9a3de09b4c fuzz: DisableNextWrite
aeeeeec9f749 fuzz: Reset dirty connman state in process_message(s) targets
fa11eea4059a fuzz: Avoid non-determinism in process_message(s) target (PeerMan)
faa3e684118b test: Log KeyboardInterrupt as exception
fac90e5261b8 test: Check that the GUI interactive reindex works
b2d07f872c58 Add release notes for -natpmp enabled by default
3fc660d26719 mapport: turn -natpmp to on by default
fa30b34026f7 test: Do not pass tests on unhandled exceptions
96da68a38fa2 qa: functional test a transaction running into the legacy sigop limit
367147954d16 qa: unit test standardness of inputs packed with legacy sigops
5863315e33ba policy: make pathological transactions packed with legacy sigops non-standard.
5fa34951ead2 test: avoid unneeded block header hash -> integer conversions
2118301d77c2 test: rename CBlockHeader `.hash` -> `.hash_hex` for consistency
23be0ec2f074 test: rename CBlockHeader `.rehash()`/`.sha256` -> `.hash_int` for consistency
8b09cc350afa test: remove bare CBlockHeader `.rehash()`/`.calc_sha256()` calls
0716382c20a6 test: remove header hash caching in CBlockHeader class
0f044e82bd5f test: avoid direct block header modification in feature_block.py
f3c791d2e391 test: refactor: dedup `CBlockHeader` serialization
fad040a5787a ci: Use APT_LLVM_V in msan task
76fe0e59ec4a test: Migration of a wallet ending in `../`
f0bb3d50fef0 test: Migration of a wallet ending in `/`
41faef5f80d6 test: Migration fail recovery w/ `../` in path
63c6d3643769 test: Migration of a wallet with `../` in path.
70f1c99c901d wallet: Fix migration of wallets with pathnames.
f6ee59b6e299 wallet: migration: Make backup in walletdir
e22c3599c677 test: wallet: Check direct file backup name.
060695c22ae7 test: Failed load after migrate should restore backup
248b6a27c351 optimization: peel align-head and unroll body to 64 bytes
e7114fc6dc34 optimization: migrate fixed-size obfuscation from `std::vector<std::byte>` to `uint64_t`
478d40afc6fa refactor: encapsulate `vector`/`array` keys into `Obfuscation`
377aab8e5a8d refactor: move `util::Xor` to `Obfuscation().Xor`
fa5d296e3beb refactor: prepare mempool_persist for obfuscation key change
6bbf2d9311b4 refactor: prepare `DBWrapper` for obfuscation key change
0b8bec8aa626 scripted-diff: unify xor-vs-obfuscation nomenclature
972697976c02 bench: make ObfuscationBench more representative
618a30e326e9 test: compare util::Xor with randomized inputs against simple impl
a5141cd39ecb test: make sure dbwrapper obfuscation key is never obfuscated
54ab0bd64c36 refactor: commit to 8 byte obfuscation keys
7aa557a37b73 random: add fixed-size `std::array` generation
b6d4688f77df [doc] reword comments in test_mid_package_replacement
f3a613aa5bb7 [cleanup] delete brittle test_mid_package_eviction
9f713b83dcf7 Merge bitcoin/bitcoin#32837: depends: fix libevent `_WIN32_WINNT` usage
2dfeb6668cb2 wallet: remove outdated `pszSkip` arg of database `Rewrite` func
faaaddaaf8e5 init: [gui] Avoid UB/crash in InitAndLoadChainstate
8a4cfddf23a4 wallet: Set migrated wallet name only on success
4f502baf8f64 doc: add alpine depends build instructions
d89c6fa4a718 wallet: Remove `upgradewallet` RPC
184159e4f30c Merge bitcoin/bitcoin#32922: test: use notarized v28.2 binaries and fix macOS detection
5d17e64a0290 Merge bitcoin/bitcoin#32677: test: headers sync timeout
0087ba409b36 Merge bitcoin/bitcoin#32968: test: fix intermittent failure in rpc_invalidateblock.py
50024620b909 [bench] worst case LimitOrphans and EraseForBlock
45c7a4b56d28 [functional test] orphan resolution works in the presence of DoSy peers
835f5c77cdee [prep/test] restart instead of bumpmocktime between p2p_orphan_handling subtests
b113877545a1 [fuzz] Add simulation fuzz test for TxOrphanage
03aaaedc6daf [prep] Return the made-reconsiderable announcements in AddChildrenToWorkSet
ea29c4371e86 [p2p] bump DEFAULT_MAX_ORPHANAGE_LATENCY_SCORE to 3,000
24afee8d8f94 [fuzz] TxOrphanage protects peers that don't go over limit
a2878cfb4ae2 [unit test] strengthen GetChildrenFromSamePeer tests: results are in recency order
7ce3b7ee579c [unit test] basic TxOrphanage eviction and protection
4d23d1d7e7fa [cleanup] remove unused rng param from LimitOrphans
067365d2a8a4 [p2p] overhaul TxOrphanage with smarter limits
1a41e7962db3 [refactor] create aliases for TxOrphanage Count and Usage
b50bd72c42bc [prep] change return type of EraseTx to bool
3da6d7f8f6fc [prep/refactor] make TxOrphanage a virtual class implemented by TxOrphanageImpl
77ebe8f28012 [prep/test] have TxOrphanage remember its own limits in LimitOrphans
d0af4239b7f0 [prep/refactor] move DEFAULT_MAX_ORPHAN_TRANSACTIONS to txorphanage.h
51365225b898 [prep/config] remove -maxorphantx
8dd24c29aec8 [prep/test] modify test to not access TxOrphanage internals
c3cd7fcb2cd9 [doc] remove references to now-nonexistent Finalize() function
d8140f5f0500 don't make a copy of m_non_base_coins
98ba2b1db2eb [doc] MemPoolAccept coins views
ba02c30b8a63 [doc] always CleanupTemporaryCoins after a mempool trim
b53fab1467fd Merge bitcoin/bitcoin#32948: refactor: cleanup index logging
62ed1f92efff txgraph: check that DoWork finds optimal if given high budget (tests)
f3c2fc867fc4 txgraph: add work limit to DoWork(), try optimal (feature)
fa1fd074685c ci: Enable more shellcheck
e96b00d99ebe txgraph: make number of acceptable iterations configurable (feature)
cfe9958852be txgraph: track amount of work done in linearization (preparation)
6ba316eaa032 txgraph: 1-or-2-tx split-off clusters are optimal (optimization)
fad0eb091e58 txgraph: reset quality when merging clusters (bugfix)
61e800e75cff test: headers sync timeout
28416f367a5d test: fix intermittent failure in rpc_invalidateblock.py
e72cb20c3fb7 Merge bitcoin/bitcoin#32943: depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
97fb46d0a081 Merge bitcoin/bitcoin#32880: ci: Avoid cd into build dir
69b9ad02da89 Merge bitcoin/bitcoin#32954: cmake: Drop no longer necessary "cmakeMinimumRequired" object
faa3171ff22f ci: Use optimized Debug build type in test-each-commit
fa21c3401e15 ci: [doc] reword debug log message
12a6959892cb cmake: Drop no longer necessary "cmakeMinimumRequired" object
44f532782445 [fuzz] add SeedRandomStateForTest(SeedRand::ZEROS) to txorphan
15a4ec906976 [prep/rpc] remove entry and expiry time from getorphantxs
08e58fa91198 [prep/refactor] move txorphanage to node namespace and directory
bb91d23fa956 [txorphanage] change type of usage to int64_t
c18bf0bd9be6 refactor: cleanup index logging
f5647c6c5ae8 depends: fix libevent _WIN32_WINNT usage
44f3bae300dc depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
fad191ff48b1 ci: Avoid cd into build dir
4bb4c865999b test: document HOST for get_previous_releases.py
609203d5075c test: stop signing previous releases >= v28.2
c6dc2c29f828 test: replace v28.0 with notarized v28.2
5bd73d96a3a7 test: fix macOS detection
aac0b6dd79b0 test: test sendall and send do anti-fee-sniping
20802c7b65f4 wallet, rpc: add anti-fee-sniping to `send` and `sendall`
5fe7915c865a doc: Add musig() example
d576079ab470 tests: Test musig() parsing
a53924bee321 descriptor: Parse musig() key expressions
9473e9606ce7 descriptors: Move DeriveType parsing into its own function
4af0dca096ca descriptor: Add MuSigPubkeyProvider
c40dbbbf7707 test: Move `script_assets_tests` into its own suite
d00d95437dd1 Add MuSig2 Keyagg Cache helper functions
8ecea91bf296 sign: Add GetMuSig2ParticipantPubkeys to SigningProvider
fac0ee0bfc91 build: Enable secp256k1 musig module
1894f9750320 descriptors: Add PubkeyProvider::IsBIP32()
12bc1d0b1e96 util/string: Allow Split to include the separator
88113125716c script/parsing: Allow Const to not skip the found constant
e017ef3c7eb7 init: make `-blockmaxweight` startup option debug-only
6135e0553e6e wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
ad132761fc49 [allocators] Apply manual ASan poisoning to PoolResource
5fe4c66462e6 XOnlyPubKey: Add GetCPubKeys
5332082d0099 doc: add alpine build instructions
c6e2c31c5512 rpc: unhide waitfor{block,newblock,blockheight}
0786b7509acd rpc: add optional blockhash to waitfornewblock
5d82d92aff7c rpc: reserve space for `UniValue` variables  in `blockToJSON`
6a506d5c37d1 UniValue: add reserve member function
bd461195f4b3 bench: support benching all verbosity of `BlockToJson`
REVERT: 3d6b3fd8f65e kernel: Fix bitcoin-chainstate for windows
REVERT: ec099435dda4 kernel: Add Purpose section to header documentation
REVERT: 832689c68b5a kernel: Allowing reducing exports
REVERT: 969a8110a567 kernel: Add pure kernel bitcoin-chainstate
REVERT: 88e2f3001b65 kernel: Add functions to get the block hash from a block
REVERT: de4a96b341f9 kernel: Add block index utility functions to C header
REVERT: c3582e16a774 kernel: Add function to read block undo data from disk to C header
REVERT: 183b53c981e6 kernel: Add functions to read block from disk to C header
REVERT: d35570686946 kernel: Add function for copying block data to C header
REVERT: 3ac26a9911a6 kernel: Add functions for the block validation state to C header
REVERT: eb9a90ff5cc0 kernel: Add validation interface to C header
REVERT: 451558a160a2 kernel: Add interrupt function to C header
REVERT: 55e36cf39fdf kernel: Add import blocks function to C header
REVERT: 3671c91fd593 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 128415b1b753 kernel: Add options for reindexing in C header
REVERT: add8205e8e93 kernel: Add block validation to C header
REVERT: 1404b97942ca kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: 76d73226d99d kernel: Add chainstate manager option for setting worker threads
REVERT: 6de50dca962f kernel: Add chainstate manager object to C header
REVERT: 477df9b640e8 kernel: Add notifications context option to C header
REVERT: c3868780f525 kernel: Add chain params context option to C header
REVERT: 649bd3fd565e kernel: Add kernel library context object
REVERT: b7e24e1547ad kernel: Add logging to kernel library C header
REVERT: c1536041e434 kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: ce8003578e725cf3c64a0f3e1447459e26955a3d
alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Aug 8, 2025
…c498e1485

82c498e1485 Add BlockReader fucntionality to kernel library
2c792833836 Add directory lcoking and read-only mode to BlockTreeStore
357cdb12cdd Flush disk writes when not in initial block download
11ffa7948c5 Remove block_tree_db_in_memory parameter after flat-file migration
7b3c7268728 blockstorage: Remove BlockTreeDB dead code
4d66896d1a2 kernel: Add assumed header store to chainparams
08d1848c81b kernel: Remove block tree db params
c2e72c134d2 blockstorage: Replace BlockTreeDB with BlockTreeStore
1559ec22ac2 fuzz: Use BlockTreeStore in block index fuzz test
32bb39bad1d kernel: Add blocktreestorage module
6a9fdf7ae58 kernel: Fix bitcoin-chainstate for windows
f6524514e33 kernel: Add Purpose section to header documentation
4ae2cfb4e27 kernel: Allowing reducing exports
a1c072eb393 kernel: Add pure kernel bitcoin-chainstate
136fc5b3f0d kernel: Add functions to get the block hash from a block
3791a272053 kernel: Add block index utility functions to C header
1236c88392a kernel: Add function to read block undo data from disk to C header
bf340b140ff kernel: Add functions to read block from disk to C header
173e621fa10 kernel: Add function for copying block data to C header
8f717b62a56 kernel: Add functions for the block validation state to C header
4353ddcd6d2 kernel: Add validation interface to C header
037bc7c5109 kernel: Add interrupt function to C header
4cc133ba101 kernel: Add import blocks function to C header
88ea62fc269 kernel: Add chainstate load options for in-memory dbs in C header
8c5fcdc65d1 kernel: Add options for reindexing in C header
d2181ddcb78 kernel: Add block validation to C header
0f50066b6fc kernel: Add chainstate loading when instantiating a ChainstateManager
e1486618c04 kernel: Add chainstate manager option for setting worker threads
0bf8f0e583a kernel: Add chainstate manager object to C header
89b4b0100ed kernel: Add notifications context option to C header
c229caf460e kernel: Add chain params context option to C header
052bedb4075 kernel: Add kernel library context object
a25e2f76092 kernel: Add logging to kernel library C header
0a9b1793134 kernel: Introduce initial kernel C header API
00604296e17 Merge bitcoin/bitcoin#32866: doc: add note for watch-only wallet migration
91058877ff7 Merge bitcoin/bitcoin#32273: wallet: Fix relative path backup during migration.
6b99670e3c0 Merge bitcoin/bitcoin#33075: doc: Add legacy wallet removal release notes
2cef200340f Merge bitcoin/bitcoin#28944: wallet, rpc: add anti-fee-sniping to `send` and `sendall`
932e993b37c Merge bitcoin/bitcoin#33073: guix: warn SOURCE_DATE_EPOCH set in guix-codesign
0bed946e5d1 Merge bitcoin/bitcoin#33079: ci: limit max stack size to 512 KiB
28ec91c30e2 Merge bitcoin/bitcoin#33088: doc: move `cmake -B build -LH` up in Unix build docs
2f410ad78c7 Merge bitcoin/bitcoin#32263: cluster mempool: add TxGraph work controls
6757052fc43 doc: move `cmake -B build -LH` up in Unix build docs
953c90d7649 Merge bitcoin/bitcoin#33086: contrib: [tracing] fix pointer argument handling in mempool_monitor.py
5888b4a2a55 doc: add note for watch-only wallet migration
3b23f95e346 ci: limit max stack size to 512 KiB
2931a874776 ci: limit stack size to 512kb in native macOS jobs
3724e9b40a6 Merge bitcoin/bitcoin#32973: validation: docs and cleanups for MemPoolAccept coins views
0ce041ea88d tracing: fix pointer argument handling in mempool_monitor.py
321984705db Merge bitcoin/bitcoin#32279: [IBD] prevector: store `P2WSH`/`P2TR`/`P2PK` scripts inline
fa45ccc15df doc: Add legacy wallet removal release notes
2a97ff466d3 Merge bitcoin/bitcoin#29954: RPC: Return `permitbaremultisig` and `maxdatacarriersize` in `getmempoolinfo`
fd068257e07 Merge bitcoin/bitcoin#33065: rpc, wallet: replace remaining hardcoded output types with `FormatAllOutputTypes`
9cafdf8941a Merge bitcoin/bitcoin#33064: test: fix RPC coverage check
c8309198f81 Merge bitcoin/bitcoin#33070: doc/zmq: fix unix socket path example
1bed0f734b3 guix: warn SOURCE_DATE_EPOCH set in guix-codesign
1c10b7351e1 RPC: Return permitbaremultisig and maxdatacarriersize in getmempoolinfo
e83699a626b doc/zmq: fix unix socket path example
8aed477c332 test: fix RPC coverage check
2630b64f810 test: add abortrescan RPC test
75a5c8258ec Merge bitcoin/bitcoin#33063: util: Revert "common: Close non-std fds before exec in RunCommandJSON"
d5104cfbaeb prevector: store `P2WSH`/`P2TR`/`P2PK` scripts inline
52121506b2a test: assert `CScript` allocation characteristics
65ac7f6d4d1 refactor: modernize `CScriptBase` definition
756da2a994c refactor: extract `STATIC_SIZE` constant to prevector
251d0208468 init, wallet: replace hardcoded output types with `FormatAllOutputTypes`
3b188b8b3da Merge bitcoin/bitcoin#31576: test: Move `script_assets_tests` into its own suite
2e97541396b Merge bitcoin/bitcoin#32944: wallet: Remove `upgradewallet` RPC
b08041cac86 Merge bitcoin/bitcoin#32845: rpc, test: Fix JSON parsing errors in unloadwallet and getdescriptoractivity RPCs
e3ba0757a94 rpc, wallet: replace remaining hardcoded output types with `FormatAllOutputTypes`
fc162299f0c Merge bitcoin/bitcoin#32994: p2p: rename GetAddresses -> GetAddressesUnsafe
633d8ea17b9 Merge bitcoin/bitcoin#32970: ci: Enable more shellcheck
faa1c3e80d9 Revert "Merge bitcoin/bitcoin#32343: common: Close non-std fds before exec in RunCommandJSON"
6cdc5a90cff Merge bitcoin/bitcoin#32967: log: [refactor] Use info level for init logs
443c32a3e68 Merge bitcoin/bitcoin#32822: fuzz: Make process_message(s) more deterministic
face8123fdc log: [refactor] Use info level for init logs
fa183761cb0 log: Remove function name from init logs
5ad79b20350 Merge bitcoin/bitcoin#32593: wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
e17fb86382e Merge bitcoin/bitcoin#32888: ci: Use optimized Debug build type in test-each-commit
fd3d80c209e Merge bitcoin/bitcoin#33047: test: check proper OP_2ROT behavior
1119ac51f0c Merge bitcoin/bitcoin#33040: doc: update headers and remove manual TOCs
e2f2df0ead8 Merge bitcoin/bitcoin#32984: wallet: Set migrated wallet name only on success
16f7b43b680 Merge bitcoin/bitcoin#33049: doc: Fix typos in asmap README
b59dc21847d doc: Fix typos in asmap README
ca38cf701dc doc: fix a few obvious typos in the affected files
ddab466e0d9 doc: remove manual TOCs
26a3730711c doc: unify `developer-notes` and `productivity` header styles
eb137184482 Merge bitcoin/bitcoin#31179: RPC: Add reserve member function to `UniValue` and use it in `blockToJSON` function
b94c6356a29 test: check proper OP_2ROT behavior
73e754bd01b Merge bitcoin/bitcoin#33001: test: Do not pass tests on unhandled exceptions
cfb859e82ed Merge bitcoin/bitcoin#33037: doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
afd3b34dc5e Merge bitcoin/bitcoin#33004: Enable `-natpmp` by default
49bbf9ff28f Merge bitcoin/bitcoin#33036: Update secp256k1 subtree to latest master
c5c1960f935 doc: Add release notes for changes in RPCs
90fd5acbe57 rpc, test: Fix error message in getdescriptoractivity
39fef1d2036 test: Add missing logging info for each test
53ac704efd6 rpc, test: Fix error message in unloadwallet
1fc3a8e8e7a rpc, test: Add EnsureUniqueWalletName tests
900bb53905a Merge bitcoin/bitcoin#32990: wallet: remove outdated `pszSkip` arg of database `Rewrite` func
c8ec423719a Merge bitcoin/bitcoin#33020: test: delete commented-out tests and add a test case in wallet_signer
09f004bd9fe Merge bitcoin/bitcoin#32945: tests: speed up coins_tests by parallelizing
5d98fc75596 Merge bitcoin/bitcoin#33030: test: check tx is final when there is no locktime
b635bc08962 rpc, util: Add EnsureUniqueWalletName
da318fe53fa test: delete commented out tests
6d80e999a06 test: external signer returns invalid JSON response
065e42976a7 test: IsFinalTx returns true when there is no locktime
1cb23997033 doc: clarify the GetAddresses/GetAddressesUnsafe documentation
e5a7dfd79f6 p2p: rename GetAddresses -> GetAddressesUnsafe
faa2f3b1afe doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
336b8be37b2 Update secp256k1 subtree to latest master
5600e6fc4bb Squashed 'src/secp256k1/' changes from 4187a46649..b9313c6e1a
06ab3a394ad tests: speed up coins_tests by parallelizing
7129c9ea8e9 Merge bitcoin/bitcoin#32827: mempool: Avoid needless vtx iteration during IBD
11c6a864c9e Merge bitcoin/bitcoin#33007: test: fix `ReadTopologicalSet` unsigned integer overflow
9bc33432e21 Merge bitcoin/bitcoin#32999: ci: Use APT_LLVM_V in msan task
5878f35446a Merge bitcoin/bitcoin#31144: [IBD] multi-byte block obfuscation
249889bee6b orphanage: avoid vtx iteration when no orphans
41ad2be4340 mempool: Avoid expensive loop in `removeForBlock` during IBD
e9edd43a959 Merge bitcoin/bitcoin#32521: policy: make pathological transactions packed with legacy sigops non-standard
80067ac111c Merge bitcoin/bitcoin#31829: p2p: improve TxOrphanage denial of service bounds
31c4e77a256 test: fix ReadTopologicalSet unsigned integer overflow
672c85cb1ea Merge bitcoin/bitcoin#32868: test: refactor: overhaul block hash determination for `CBlock{,Header}` objects
fa1a14a13a1 fuzz: Reset chainman state in process_message(s) targets
fa9a3de09b4 fuzz: DisableNextWrite
aeeeeec9f74 fuzz: Reset dirty connman state in process_message(s) targets
fa11eea4059 fuzz: Avoid non-determinism in process_message(s) target (PeerMan)
faa3e684118 test: Log KeyboardInterrupt as exception
b2d07f872c5 Add release notes for -natpmp enabled by default
3fc660d2671 mapport: turn -natpmp to on by default
fa30b34026f test: Do not pass tests on unhandled exceptions
96da68a38fa qa: functional test a transaction running into the legacy sigop limit
367147954d1 qa: unit test standardness of inputs packed with legacy sigops
5863315e33b policy: make pathological transactions packed with legacy sigops non-standard.
5fa34951ead test: avoid unneeded block header hash -> integer conversions
2118301d77c test: rename CBlockHeader `.hash` -> `.hash_hex` for consistency
23be0ec2f07 test: rename CBlockHeader `.rehash()`/`.sha256` -> `.hash_int` for consistency
8b09cc350af test: remove bare CBlockHeader `.rehash()`/`.calc_sha256()` calls
0716382c20a test: remove header hash caching in CBlockHeader class
0f044e82bd5 test: avoid direct block header modification in feature_block.py
f3c791d2e39 test: refactor: dedup `CBlockHeader` serialization
fad040a5787 ci: Use APT_LLVM_V in msan task
76fe0e59ec4 test: Migration of a wallet ending in `../`
f0bb3d50fef test: Migration of a wallet ending in `/`
41faef5f80d test: Migration fail recovery w/ `../` in path
63c6d364376 test: Migration of a wallet with `../` in path.
70f1c99c901 wallet: Fix migration of wallets with pathnames.
f6ee59b6e29 wallet: migration: Make backup in walletdir
e22c3599c67 test: wallet: Check direct file backup name.
060695c22ae test: Failed load after migrate should restore backup
248b6a27c35 optimization: peel align-head and unroll body to 64 bytes
e7114fc6dc3 optimization: migrate fixed-size obfuscation from `std::vector<std::byte>` to `uint64_t`
478d40afc6f refactor: encapsulate `vector`/`array` keys into `Obfuscation`
377aab8e5a8 refactor: move `util::Xor` to `Obfuscation().Xor`
fa5d296e3be refactor: prepare mempool_persist for obfuscation key change
6bbf2d9311b refactor: prepare `DBWrapper` for obfuscation key change
0b8bec8aa62 scripted-diff: unify xor-vs-obfuscation nomenclature
972697976c0 bench: make ObfuscationBench more representative
618a30e326e test: compare util::Xor with randomized inputs against simple impl
a5141cd39ec test: make sure dbwrapper obfuscation key is never obfuscated
54ab0bd64c3 refactor: commit to 8 byte obfuscation keys
7aa557a37b7 random: add fixed-size `std::array` generation
b6d4688f77d [doc] reword comments in test_mid_package_replacement
f3a613aa5bb [cleanup] delete brittle test_mid_package_eviction
9f713b83dcf Merge bitcoin/bitcoin#32837: depends: fix libevent `_WIN32_WINNT` usage
2dfeb6668cb wallet: remove outdated `pszSkip` arg of database `Rewrite` func
8a4cfddf23a wallet: Set migrated wallet name only on success
d89c6fa4a71 wallet: Remove `upgradewallet` RPC
184159e4f30 Merge bitcoin/bitcoin#32922: test: use notarized v28.2 binaries and fix macOS detection
5d17e64a029 Merge bitcoin/bitcoin#32677: test: headers sync timeout
0087ba409b3 Merge bitcoin/bitcoin#32968: test: fix intermittent failure in rpc_invalidateblock.py
50024620b90 [bench] worst case LimitOrphans and EraseForBlock
45c7a4b56d2 [functional test] orphan resolution works in the presence of DoSy peers
835f5c77cde [prep/test] restart instead of bumpmocktime between p2p_orphan_handling subtests
b113877545a [fuzz] Add simulation fuzz test for TxOrphanage
03aaaedc6da [prep] Return the made-reconsiderable announcements in AddChildrenToWorkSet
ea29c4371e8 [p2p] bump DEFAULT_MAX_ORPHANAGE_LATENCY_SCORE to 3,000
24afee8d8f9 [fuzz] TxOrphanage protects peers that don't go over limit
a2878cfb4ae [unit test] strengthen GetChildrenFromSamePeer tests: results are in recency order
7ce3b7ee579 [unit test] basic TxOrphanage eviction and protection
4d23d1d7e7f [cleanup] remove unused rng param from LimitOrphans
067365d2a8a [p2p] overhaul TxOrphanage with smarter limits
1a41e7962db [refactor] create aliases for TxOrphanage Count and Usage
b50bd72c42b [prep] change return type of EraseTx to bool
3da6d7f8f6f [prep/refactor] make TxOrphanage a virtual class implemented by TxOrphanageImpl
77ebe8f2801 [prep/test] have TxOrphanage remember its own limits in LimitOrphans
d0af4239b7f [prep/refactor] move DEFAULT_MAX_ORPHAN_TRANSACTIONS to txorphanage.h
51365225b89 [prep/config] remove -maxorphantx
8dd24c29aec [prep/test] modify test to not access TxOrphanage internals
c3cd7fcb2cd [doc] remove references to now-nonexistent Finalize() function
d8140f5f050 don't make a copy of m_non_base_coins
98ba2b1db2e [doc] MemPoolAccept coins views
ba02c30b8a6 [doc] always CleanupTemporaryCoins after a mempool trim
b53fab1467f Merge bitcoin/bitcoin#32948: refactor: cleanup index logging
62ed1f92eff txgraph: check that DoWork finds optimal if given high budget (tests)
f3c2fc867fc txgraph: add work limit to DoWork(), try optimal (feature)
fa1fd074685 ci: Enable more shellcheck
e96b00d99eb txgraph: make number of acceptable iterations configurable (feature)
cfe9958852b txgraph: track amount of work done in linearization (preparation)
6ba316eaa03 txgraph: 1-or-2-tx split-off clusters are optimal (optimization)
fad0eb091e5 txgraph: reset quality when merging clusters (bugfix)
61e800e75cf test: headers sync timeout
28416f367a5 test: fix intermittent failure in rpc_invalidateblock.py
e72cb20c3fb Merge bitcoin/bitcoin#32943: depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
97fb46d0a08 Merge bitcoin/bitcoin#32880: ci: Avoid cd into build dir
69b9ad02da8 Merge bitcoin/bitcoin#32954: cmake: Drop no longer necessary "cmakeMinimumRequired" object
faa3171ff22 ci: Use optimized Debug build type in test-each-commit
fa21c3401e1 ci: [doc] reword debug log message
12a6959892c cmake: Drop no longer necessary "cmakeMinimumRequired" object
44f53278244 [fuzz] add SeedRandomStateForTest(SeedRand::ZEROS) to txorphan
15a4ec90697 [prep/rpc] remove entry and expiry time from getorphantxs
08e58fa9119 [prep/refactor] move txorphanage to node namespace and directory
bb91d23fa95 [txorphanage] change type of usage to int64_t
c18bf0bd9be refactor: cleanup index logging
f5647c6c5ae depends: fix libevent _WIN32_WINNT usage
44f3bae300d depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
fad191ff48b ci: Avoid cd into build dir
4bb4c865999 test: document HOST for get_previous_releases.py
609203d5075 test: stop signing previous releases >= v28.2
c6dc2c29f82 test: replace v28.0 with notarized v28.2
5bd73d96a3a test: fix macOS detection
aac0b6dd79b test: test sendall and send do anti-fee-sniping
20802c7b65f wallet, rpc: add anti-fee-sniping to `send` and `sendall`
c40dbbbf770 test: Move `script_assets_tests` into its own suite
6135e0553e6 wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
5d82d92aff7 rpc: reserve space for `UniValue` variables  in `blockToJSON`
6a506d5c37d UniValue: add reserve member function
bd461195f4b bench: support benching all verbosity of `BlockToJson`
REVERT: 3d6b3fd8f65 kernel: Fix bitcoin-chainstate for windows
REVERT: ec099435dda kernel: Add Purpose section to header documentation
REVERT: 832689c68b5 kernel: Allowing reducing exports
REVERT: 969a8110a56 kernel: Add pure kernel bitcoin-chainstate
REVERT: 88e2f3001b6 kernel: Add functions to get the block hash from a block
REVERT: de4a96b341f kernel: Add block index utility functions to C header
REVERT: c3582e16a77 kernel: Add function to read block undo data from disk to C header
REVERT: 183b53c981e kernel: Add functions to read block from disk to C header
REVERT: d3557068694 kernel: Add function for copying block data to C header
REVERT: 3ac26a9911a kernel: Add functions for the block validation state to C header
REVERT: eb9a90ff5cc kernel: Add validation interface to C header
REVERT: 451558a160a kernel: Add interrupt function to C header
REVERT: 55e36cf39fd kernel: Add import blocks function to C header
REVERT: 3671c91fd59 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 128415b1b75 kernel: Add options for reindexing in C header
REVERT: add8205e8e9 kernel: Add block validation to C header
REVERT: 1404b97942c kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: 76d73226d99 kernel: Add chainstate manager option for setting worker threads
REVERT: 6de50dca962 kernel: Add chainstate manager object to C header
REVERT: 477df9b640e kernel: Add notifications context option to C header
REVERT: c3868780f52 kernel: Add chain params context option to C header
REVERT: 649bd3fd565 kernel: Add kernel library context object
REVERT: b7e24e1547a kernel: Add logging to kernel library C header
REVERT: c1536041e43 kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 82c498e14858006a18833bf30d6571bd0bf7859c
alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Aug 8, 2025
…8687aaafa

0f8687aaafa Add BlockReader fucntionality to kernel library
2c792833836 Add directory lcoking and read-only mode to BlockTreeStore
357cdb12cdd Flush disk writes when not in initial block download
11ffa7948c5 Remove block_tree_db_in_memory parameter after flat-file migration
7b3c7268728 blockstorage: Remove BlockTreeDB dead code
4d66896d1a2 kernel: Add assumed header store to chainparams
08d1848c81b kernel: Remove block tree db params
c2e72c134d2 blockstorage: Replace BlockTreeDB with BlockTreeStore
1559ec22ac2 fuzz: Use BlockTreeStore in block index fuzz test
32bb39bad1d kernel: Add blocktreestorage module
6a9fdf7ae58 kernel: Fix bitcoin-chainstate for windows
f6524514e33 kernel: Add Purpose section to header documentation
4ae2cfb4e27 kernel: Allowing reducing exports
a1c072eb393 kernel: Add pure kernel bitcoin-chainstate
136fc5b3f0d kernel: Add functions to get the block hash from a block
3791a272053 kernel: Add block index utility functions to C header
1236c88392a kernel: Add function to read block undo data from disk to C header
bf340b140ff kernel: Add functions to read block from disk to C header
173e621fa10 kernel: Add function for copying block data to C header
8f717b62a56 kernel: Add functions for the block validation state to C header
4353ddcd6d2 kernel: Add validation interface to C header
037bc7c5109 kernel: Add interrupt function to C header
4cc133ba101 kernel: Add import blocks function to C header
88ea62fc269 kernel: Add chainstate load options for in-memory dbs in C header
8c5fcdc65d1 kernel: Add options for reindexing in C header
d2181ddcb78 kernel: Add block validation to C header
0f50066b6fc kernel: Add chainstate loading when instantiating a ChainstateManager
e1486618c04 kernel: Add chainstate manager option for setting worker threads
0bf8f0e583a kernel: Add chainstate manager object to C header
89b4b0100ed kernel: Add notifications context option to C header
c229caf460e kernel: Add chain params context option to C header
052bedb4075 kernel: Add kernel library context object
a25e2f76092 kernel: Add logging to kernel library C header
0a9b1793134 kernel: Introduce initial kernel C header API
00604296e17 Merge bitcoin/bitcoin#32866: doc: add note for watch-only wallet migration
91058877ff7 Merge bitcoin/bitcoin#32273: wallet: Fix relative path backup during migration.
6b99670e3c0 Merge bitcoin/bitcoin#33075: doc: Add legacy wallet removal release notes
2cef200340f Merge bitcoin/bitcoin#28944: wallet, rpc: add anti-fee-sniping to `send` and `sendall`
932e993b37c Merge bitcoin/bitcoin#33073: guix: warn SOURCE_DATE_EPOCH set in guix-codesign
0bed946e5d1 Merge bitcoin/bitcoin#33079: ci: limit max stack size to 512 KiB
28ec91c30e2 Merge bitcoin/bitcoin#33088: doc: move `cmake -B build -LH` up in Unix build docs
2f410ad78c7 Merge bitcoin/bitcoin#32263: cluster mempool: add TxGraph work controls
6757052fc43 doc: move `cmake -B build -LH` up in Unix build docs
953c90d7649 Merge bitcoin/bitcoin#33086: contrib: [tracing] fix pointer argument handling in mempool_monitor.py
5888b4a2a55 doc: add note for watch-only wallet migration
3b23f95e346 ci: limit max stack size to 512 KiB
2931a874776 ci: limit stack size to 512kb in native macOS jobs
3724e9b40a6 Merge bitcoin/bitcoin#32973: validation: docs and cleanups for MemPoolAccept coins views
0ce041ea88d tracing: fix pointer argument handling in mempool_monitor.py
321984705db Merge bitcoin/bitcoin#32279: [IBD] prevector: store `P2WSH`/`P2TR`/`P2PK` scripts inline
fa45ccc15df doc: Add legacy wallet removal release notes
2a97ff466d3 Merge bitcoin/bitcoin#29954: RPC: Return `permitbaremultisig` and `maxdatacarriersize` in `getmempoolinfo`
fd068257e07 Merge bitcoin/bitcoin#33065: rpc, wallet: replace remaining hardcoded output types with `FormatAllOutputTypes`
9cafdf8941a Merge bitcoin/bitcoin#33064: test: fix RPC coverage check
c8309198f81 Merge bitcoin/bitcoin#33070: doc/zmq: fix unix socket path example
1bed0f734b3 guix: warn SOURCE_DATE_EPOCH set in guix-codesign
1c10b7351e1 RPC: Return permitbaremultisig and maxdatacarriersize in getmempoolinfo
e83699a626b doc/zmq: fix unix socket path example
8aed477c332 test: fix RPC coverage check
2630b64f810 test: add abortrescan RPC test
75a5c8258ec Merge bitcoin/bitcoin#33063: util: Revert "common: Close non-std fds before exec in RunCommandJSON"
d5104cfbaeb prevector: store `P2WSH`/`P2TR`/`P2PK` scripts inline
52121506b2a test: assert `CScript` allocation characteristics
65ac7f6d4d1 refactor: modernize `CScriptBase` definition
756da2a994c refactor: extract `STATIC_SIZE` constant to prevector
251d0208468 init, wallet: replace hardcoded output types with `FormatAllOutputTypes`
3b188b8b3da Merge bitcoin/bitcoin#31576: test: Move `script_assets_tests` into its own suite
2e97541396b Merge bitcoin/bitcoin#32944: wallet: Remove `upgradewallet` RPC
b08041cac86 Merge bitcoin/bitcoin#32845: rpc, test: Fix JSON parsing errors in unloadwallet and getdescriptoractivity RPCs
e3ba0757a94 rpc, wallet: replace remaining hardcoded output types with `FormatAllOutputTypes`
fc162299f0c Merge bitcoin/bitcoin#32994: p2p: rename GetAddresses -> GetAddressesUnsafe
633d8ea17b9 Merge bitcoin/bitcoin#32970: ci: Enable more shellcheck
faa1c3e80d9 Revert "Merge bitcoin/bitcoin#32343: common: Close non-std fds before exec in RunCommandJSON"
6cdc5a90cff Merge bitcoin/bitcoin#32967: log: [refactor] Use info level for init logs
443c32a3e68 Merge bitcoin/bitcoin#32822: fuzz: Make process_message(s) more deterministic
face8123fdc log: [refactor] Use info level for init logs
fa183761cb0 log: Remove function name from init logs
5ad79b20350 Merge bitcoin/bitcoin#32593: wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
e17fb86382e Merge bitcoin/bitcoin#32888: ci: Use optimized Debug build type in test-each-commit
fd3d80c209e Merge bitcoin/bitcoin#33047: test: check proper OP_2ROT behavior
1119ac51f0c Merge bitcoin/bitcoin#33040: doc: update headers and remove manual TOCs
e2f2df0ead8 Merge bitcoin/bitcoin#32984: wallet: Set migrated wallet name only on success
16f7b43b680 Merge bitcoin/bitcoin#33049: doc: Fix typos in asmap README
b59dc21847d doc: Fix typos in asmap README
ca38cf701dc doc: fix a few obvious typos in the affected files
ddab466e0d9 doc: remove manual TOCs
26a3730711c doc: unify `developer-notes` and `productivity` header styles
eb137184482 Merge bitcoin/bitcoin#31179: RPC: Add reserve member function to `UniValue` and use it in `blockToJSON` function
b94c6356a29 test: check proper OP_2ROT behavior
73e754bd01b Merge bitcoin/bitcoin#33001: test: Do not pass tests on unhandled exceptions
cfb859e82ed Merge bitcoin/bitcoin#33037: doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
afd3b34dc5e Merge bitcoin/bitcoin#33004: Enable `-natpmp` by default
49bbf9ff28f Merge bitcoin/bitcoin#33036: Update secp256k1 subtree to latest master
c5c1960f935 doc: Add release notes for changes in RPCs
90fd5acbe57 rpc, test: Fix error message in getdescriptoractivity
39fef1d2036 test: Add missing logging info for each test
53ac704efd6 rpc, test: Fix error message in unloadwallet
1fc3a8e8e7a rpc, test: Add EnsureUniqueWalletName tests
900bb53905a Merge bitcoin/bitcoin#32990: wallet: remove outdated `pszSkip` arg of database `Rewrite` func
c8ec423719a Merge bitcoin/bitcoin#33020: test: delete commented-out tests and add a test case in wallet_signer
09f004bd9fe Merge bitcoin/bitcoin#32945: tests: speed up coins_tests by parallelizing
5d98fc75596 Merge bitcoin/bitcoin#33030: test: check tx is final when there is no locktime
b635bc08962 rpc, util: Add EnsureUniqueWalletName
da318fe53fa test: delete commented out tests
6d80e999a06 test: external signer returns invalid JSON response
065e42976a7 test: IsFinalTx returns true when there is no locktime
1cb23997033 doc: clarify the GetAddresses/GetAddressesUnsafe documentation
e5a7dfd79f6 p2p: rename GetAddresses -> GetAddressesUnsafe
faa2f3b1afe doc: Add release notes for 32521 (MAX_TX_LEGACY_SIGOPS)
336b8be37b2 Update secp256k1 subtree to latest master
5600e6fc4bb Squashed 'src/secp256k1/' changes from 4187a46649..b9313c6e1a
06ab3a394ad tests: speed up coins_tests by parallelizing
7129c9ea8e9 Merge bitcoin/bitcoin#32827: mempool: Avoid needless vtx iteration during IBD
11c6a864c9e Merge bitcoin/bitcoin#33007: test: fix `ReadTopologicalSet` unsigned integer overflow
9bc33432e21 Merge bitcoin/bitcoin#32999: ci: Use APT_LLVM_V in msan task
5878f35446a Merge bitcoin/bitcoin#31144: [IBD] multi-byte block obfuscation
249889bee6b orphanage: avoid vtx iteration when no orphans
41ad2be4340 mempool: Avoid expensive loop in `removeForBlock` during IBD
e9edd43a959 Merge bitcoin/bitcoin#32521: policy: make pathological transactions packed with legacy sigops non-standard
80067ac111c Merge bitcoin/bitcoin#31829: p2p: improve TxOrphanage denial of service bounds
31c4e77a256 test: fix ReadTopologicalSet unsigned integer overflow
672c85cb1ea Merge bitcoin/bitcoin#32868: test: refactor: overhaul block hash determination for `CBlock{,Header}` objects
fa1a14a13a1 fuzz: Reset chainman state in process_message(s) targets
fa9a3de09b4 fuzz: DisableNextWrite
aeeeeec9f74 fuzz: Reset dirty connman state in process_message(s) targets
fa11eea4059 fuzz: Avoid non-determinism in process_message(s) target (PeerMan)
faa3e684118 test: Log KeyboardInterrupt as exception
b2d07f872c5 Add release notes for -natpmp enabled by default
3fc660d2671 mapport: turn -natpmp to on by default
fa30b34026f test: Do not pass tests on unhandled exceptions
96da68a38fa qa: functional test a transaction running into the legacy sigop limit
367147954d1 qa: unit test standardness of inputs packed with legacy sigops
5863315e33b policy: make pathological transactions packed with legacy sigops non-standard.
5fa34951ead test: avoid unneeded block header hash -> integer conversions
2118301d77c test: rename CBlockHeader `.hash` -> `.hash_hex` for consistency
23be0ec2f07 test: rename CBlockHeader `.rehash()`/`.sha256` -> `.hash_int` for consistency
8b09cc350af test: remove bare CBlockHeader `.rehash()`/`.calc_sha256()` calls
0716382c20a test: remove header hash caching in CBlockHeader class
0f044e82bd5 test: avoid direct block header modification in feature_block.py
f3c791d2e39 test: refactor: dedup `CBlockHeader` serialization
fad040a5787 ci: Use APT_LLVM_V in msan task
76fe0e59ec4 test: Migration of a wallet ending in `../`
f0bb3d50fef test: Migration of a wallet ending in `/`
41faef5f80d test: Migration fail recovery w/ `../` in path
63c6d364376 test: Migration of a wallet with `../` in path.
70f1c99c901 wallet: Fix migration of wallets with pathnames.
f6ee59b6e29 wallet: migration: Make backup in walletdir
e22c3599c67 test: wallet: Check direct file backup name.
060695c22ae test: Failed load after migrate should restore backup
248b6a27c35 optimization: peel align-head and unroll body to 64 bytes
e7114fc6dc3 optimization: migrate fixed-size obfuscation from `std::vector<std::byte>` to `uint64_t`
478d40afc6f refactor: encapsulate `vector`/`array` keys into `Obfuscation`
377aab8e5a8 refactor: move `util::Xor` to `Obfuscation().Xor`
fa5d296e3be refactor: prepare mempool_persist for obfuscation key change
6bbf2d9311b refactor: prepare `DBWrapper` for obfuscation key change
0b8bec8aa62 scripted-diff: unify xor-vs-obfuscation nomenclature
972697976c0 bench: make ObfuscationBench more representative
618a30e326e test: compare util::Xor with randomized inputs against simple impl
a5141cd39ec test: make sure dbwrapper obfuscation key is never obfuscated
54ab0bd64c3 refactor: commit to 8 byte obfuscation keys
7aa557a37b7 random: add fixed-size `std::array` generation
b6d4688f77d [doc] reword comments in test_mid_package_replacement
f3a613aa5bb [cleanup] delete brittle test_mid_package_eviction
9f713b83dcf Merge bitcoin/bitcoin#32837: depends: fix libevent `_WIN32_WINNT` usage
2dfeb6668cb wallet: remove outdated `pszSkip` arg of database `Rewrite` func
8a4cfddf23a wallet: Set migrated wallet name only on success
d89c6fa4a71 wallet: Remove `upgradewallet` RPC
184159e4f30 Merge bitcoin/bitcoin#32922: test: use notarized v28.2 binaries and fix macOS detection
5d17e64a029 Merge bitcoin/bitcoin#32677: test: headers sync timeout
0087ba409b3 Merge bitcoin/bitcoin#32968: test: fix intermittent failure in rpc_invalidateblock.py
50024620b90 [bench] worst case LimitOrphans and EraseForBlock
45c7a4b56d2 [functional test] orphan resolution works in the presence of DoSy peers
835f5c77cde [prep/test] restart instead of bumpmocktime between p2p_orphan_handling subtests
b113877545a [fuzz] Add simulation fuzz test for TxOrphanage
03aaaedc6da [prep] Return the made-reconsiderable announcements in AddChildrenToWorkSet
ea29c4371e8 [p2p] bump DEFAULT_MAX_ORPHANAGE_LATENCY_SCORE to 3,000
24afee8d8f9 [fuzz] TxOrphanage protects peers that don't go over limit
a2878cfb4ae [unit test] strengthen GetChildrenFromSamePeer tests: results are in recency order
7ce3b7ee579 [unit test] basic TxOrphanage eviction and protection
4d23d1d7e7f [cleanup] remove unused rng param from LimitOrphans
067365d2a8a [p2p] overhaul TxOrphanage with smarter limits
1a41e7962db [refactor] create aliases for TxOrphanage Count and Usage
b50bd72c42b [prep] change return type of EraseTx to bool
3da6d7f8f6f [prep/refactor] make TxOrphanage a virtual class implemented by TxOrphanageImpl
77ebe8f2801 [prep/test] have TxOrphanage remember its own limits in LimitOrphans
d0af4239b7f [prep/refactor] move DEFAULT_MAX_ORPHAN_TRANSACTIONS to txorphanage.h
51365225b89 [prep/config] remove -maxorphantx
8dd24c29aec [prep/test] modify test to not access TxOrphanage internals
c3cd7fcb2cd [doc] remove references to now-nonexistent Finalize() function
d8140f5f050 don't make a copy of m_non_base_coins
98ba2b1db2e [doc] MemPoolAccept coins views
ba02c30b8a6 [doc] always CleanupTemporaryCoins after a mempool trim
b53fab1467f Merge bitcoin/bitcoin#32948: refactor: cleanup index logging
62ed1f92eff txgraph: check that DoWork finds optimal if given high budget (tests)
f3c2fc867fc txgraph: add work limit to DoWork(), try optimal (feature)
fa1fd074685 ci: Enable more shellcheck
e96b00d99eb txgraph: make number of acceptable iterations configurable (feature)
cfe9958852b txgraph: track amount of work done in linearization (preparation)
6ba316eaa03 txgraph: 1-or-2-tx split-off clusters are optimal (optimization)
fad0eb091e5 txgraph: reset quality when merging clusters (bugfix)
61e800e75cf test: headers sync timeout
28416f367a5 test: fix intermittent failure in rpc_invalidateblock.py
e72cb20c3fb Merge bitcoin/bitcoin#32943: depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
97fb46d0a08 Merge bitcoin/bitcoin#32880: ci: Avoid cd into build dir
69b9ad02da8 Merge bitcoin/bitcoin#32954: cmake: Drop no longer necessary "cmakeMinimumRequired" object
faa3171ff22 ci: Use optimized Debug build type in test-each-commit
fa21c3401e1 ci: [doc] reword debug log message
12a6959892c cmake: Drop no longer necessary "cmakeMinimumRequired" object
44f53278244 [fuzz] add SeedRandomStateForTest(SeedRand::ZEROS) to txorphan
15a4ec90697 [prep/rpc] remove entry and expiry time from getorphantxs
08e58fa9119 [prep/refactor] move txorphanage to node namespace and directory
bb91d23fa95 [txorphanage] change type of usage to int64_t
c18bf0bd9be refactor: cleanup index logging
f5647c6c5ae depends: fix libevent _WIN32_WINNT usage
44f3bae300d depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
fad191ff48b ci: Avoid cd into build dir
4bb4c865999 test: document HOST for get_previous_releases.py
609203d5075 test: stop signing previous releases >= v28.2
c6dc2c29f82 test: replace v28.0 with notarized v28.2
5bd73d96a3a test: fix macOS detection
aac0b6dd79b test: test sendall and send do anti-fee-sniping
20802c7b65f wallet, rpc: add anti-fee-sniping to `send` and `sendall`
c40dbbbf770 test: Move `script_assets_tests` into its own suite
6135e0553e6 wallet, rpc: Move (Un)LockCoin WalletBatch creation out of RPC
5d82d92aff7 rpc: reserve space for `UniValue` variables  in `blockToJSON`
6a506d5c37d UniValue: add reserve member function
bd461195f4b bench: support benching all verbosity of `BlockToJson`
REVERT: 3d6b3fd8f65 kernel: Fix bitcoin-chainstate for windows
REVERT: ec099435dda kernel: Add Purpose section to header documentation
REVERT: 832689c68b5 kernel: Allowing reducing exports
REVERT: 969a8110a56 kernel: Add pure kernel bitcoin-chainstate
REVERT: 88e2f3001b6 kernel: Add functions to get the block hash from a block
REVERT: de4a96b341f kernel: Add block index utility functions to C header
REVERT: c3582e16a77 kernel: Add function to read block undo data from disk to C header
REVERT: 183b53c981e kernel: Add functions to read block from disk to C header
REVERT: d3557068694 kernel: Add function for copying block data to C header
REVERT: 3ac26a9911a kernel: Add functions for the block validation state to C header
REVERT: eb9a90ff5cc kernel: Add validation interface to C header
REVERT: 451558a160a kernel: Add interrupt function to C header
REVERT: 55e36cf39fd kernel: Add import blocks function to C header
REVERT: 3671c91fd59 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 128415b1b75 kernel: Add options for reindexing in C header
REVERT: add8205e8e9 kernel: Add block validation to C header
REVERT: 1404b97942c kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: 76d73226d99 kernel: Add chainstate manager option for setting worker threads
REVERT: 6de50dca962 kernel: Add chainstate manager object to C header
REVERT: 477df9b640e kernel: Add notifications context option to C header
REVERT: c3868780f52 kernel: Add chain params context option to C header
REVERT: 649bd3fd565 kernel: Add kernel library context object
REVERT: b7e24e1547a kernel: Add logging to kernel library C header
REVERT: c1536041e43 kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 0f8687aaafa5429c06d4848eadf3ce779761f9b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.