wallet: Delete removeprunedfunds RPC #36333

Manually merged
davidgumberg merged 2 commits from 2026-09-24-removetxremoval into master 2026-11-06 00:11:34 +00:00 AGit
davidgumberg commented 2026-09-25 00:54:03 +00:00 (Migrated from github.com)

Deprecated in v32 (https://github.com/bitcoin/bitcoin/pull/35605), this deletes the useless and harmful removeprunedfunds RPC.

It also removes deleting of watchonly transactions from the not-watchonly migrated wallet, which in theory we should clean up, but in practice this does nothing for the user, the only observable change is that if the user knows the txid they can do gettransaction and the migrated wallet will return the transaction information even though it does not have keys for the transaction, AFAICT for both GUI and RPC having irrelevant transactions inside of wallet is harmless and does not affect the output of anything, since most stuff is gated behind IsMine() anyways.

Removing both the RPC and the deletion of watchonly tx'es allows deleting the logic for transaction removal and the associated tests.

Edit: This will be done in a follow-up, all this PR does is delete the removeprunedfunds RPC.

LLM Disclosure: Not used to write this PR or PR description, but I recently replaced clang on my machine with gemma-4-26B directly generating machine code.

Deprecated in v32 (https://github.com/bitcoin/bitcoin/pull/35605), this deletes the useless and harmful `removeprunedfunds` RPC. ~~It also removes deleting of watchonly transactions from the not-watchonly migrated wallet, which in theory we should clean up, but in practice this does nothing for the user, the only observable change is that if the user knows the txid they can do `gettransaction` and the migrated wallet will return the transaction information even though it does not have keys for the transaction, AFAICT for both GUI and RPC having irrelevant transactions inside of wallet is harmless and does not affect the output of anything, since most stuff is gated behind `IsMine()` anyways.~~ ~~Removing both the RPC and the deletion of watchonly tx'es allows deleting the logic for transaction removal and the associated tests.~~ Edit: This will be done in a follow-up, all this PR does is delete the `removeprunedfunds` RPC. _LLM Disclosure: Not used to write this PR or PR description, but I recently replaced clang on my machine with gemma-4-26B directly generating machine code._
DrahtBot commented 2026-09-25 00:54:13 +00:00 (Migrated from github.com)

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

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK pablomartin4btc, achow101, w0xlt, polespinasa
Concept ACK rkrux

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36481 (wallet, rpc, gui: Allow users to manually rebroadcast a wallet transaction by achow101)
  • #36440 (test: speed up functional tests by removing avoidable waits by ViniciusCestarii)
  • #36257 (qa: assert_equals -> assert_true/assert_false by hodlinator)
  • #36167 ([RFC] Enable -Wunused by fanquake)
  • #36068 (fuzz: reuse one fuzzed wallet across inputs by brunoerg)
  • #35786 (wallet: drop spent parents redundant cache invalidation and notification by furszy)
  • #35569 (Encapsulation for CTransaction by purpleKarrot)
  • #35302 (Silent Payments: Sending (take 2) by Eunovo)
  • #34909 (wallet, refactor: modularise wallet by extracting out legacy wallet migration by rkrux)

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.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36333 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36333.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36333#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [pablomartin4btc](https://github.com/bitcoin/bitcoin/pull/36333#pullrequestreview-5791229236), [achow101](https://github.com/bitcoin/bitcoin/pull/36333#issuecomment-6671818772), [w0xlt](https://github.com/bitcoin/bitcoin/pull/36333#pullrequestreview-5793549441), [polespinasa](https://github.com/bitcoin/bitcoin/pull/36333#pullrequestreview-5793740407) | | Concept ACK | [rkrux](https://github.com/bitcoin/bitcoin/pull/36333#issuecomment-6630768312) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36481](https://github.com/bitcoin/bitcoin/pull/36481) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36481.svg"></sub> (wallet, rpc, gui: Allow users to manually rebroadcast a wallet transaction by achow101) * [#36440](https://github.com/bitcoin/bitcoin/pull/36440) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36440.svg"></sub> (test: speed up functional tests by removing avoidable waits by ViniciusCestarii) * [#36257](https://github.com/bitcoin/bitcoin/pull/36257) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36257.svg"></sub> (qa: assert_equals -> assert_true/assert_false by hodlinator) * [#36167](https://github.com/bitcoin/bitcoin/pull/36167) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36167.svg"></sub> ([RFC] Enable `-Wunused` by fanquake) * [#36068](https://github.com/bitcoin/bitcoin/pull/36068) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36068.svg"></sub> (fuzz: reuse one fuzzed wallet across inputs by brunoerg) * [#35786](https://github.com/bitcoin/bitcoin/pull/35786) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35786.svg"></sub> (wallet: drop spent parents redundant cache invalidation and notification by furszy) * [#35569](https://github.com/bitcoin/bitcoin/pull/35569) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35569.svg"></sub> (Encapsulation for CTransaction by purpleKarrot) * [#35302](https://github.com/bitcoin/bitcoin/pull/35302) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35302.svg"></sub> (Silent Payments: Sending (take 2) by Eunovo) * [#34909](https://github.com/bitcoin/bitcoin/pull/34909) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/34909.svg"></sub> (wallet, refactor: modularise wallet by extracting out legacy wallet migration by rkrux) 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. <!--5faf32d7da4f0f540f40219e4f7537a3-->
DrahtBot commented 2026-09-25 00:59:47 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/36079638513/job/107898503317
LLM reason (✨ experimental): CI failed due to ruff Python lint errors (F401 unused imports) in test/functional/rpc_deprecated.py and test/functional/wallet_importprunedfunds.py.

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.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/36079638513/job/107898503317</sub> <sub>LLM reason (✨ experimental): CI failed due to `ruff` Python lint errors (F401 unused imports) in `test/functional/rpc_deprecated.py` and `test/functional/wallet_importprunedfunds.py`.</sub> <details><summary>Hints</summary> 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. </details>
crooksmadison69-cmd (Migrated from github.com) reviewed 2026-09-25 01:17:35 +00:00
crooksmadison69-cmd (Migrated from github.com) commented 2026-09-25 01:17:25 +00:00

Gettransaction

Gettransaction
DrahtBot commented 2026-09-26 00:49:40 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
w0xlt commented 2026-09-30 01:30:48 +00:00 (Migrated from github.com)

Concept ACK

Concept ACK
First-time contributor

🔵 Suggestion · The replacement #21647 test no longer proves spend insertion

The descriptor import rescans the recent funding and spending blocks, so the final presence assertion can pass even if the subsequent spend import returns success without storing the transaction.

Location: test/functional/wallet_importprunedfunds.py:130 (head).

🔵 Suggestion · The test retains an unused removeprunedfunds opt-in

Both test nodes still receive -deprecatedrpc=removeprunedfunds even though this PR removes the RPC and every test call that needed it.

Location: test/functional/wallet_importprunedfunds.py:134 (base).

Review coverage was incomplete.


Reviewed: ec7f64d02e37 · Full review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:4d44b6ffa09c54db24f8f0ab27ae388beae06a733efcae741ca64db76bb1c938:7efd3c3ba41667382004cfa7a7db56605da7d8f9b7ab69bc483f27117390ba48 --> <!-- ralph-base:0e38ad26af922abdc0fc36c9379e17efd2a72b80 --> <!-- ralph-head:ec7f64d02e370e04354e64fa745fca240bcb3cbe --> <!-- ralph-case:58dd518701be39d341de79b5c487b580e4f2e4c812d572078d88f7e4746d1bf9 --> **🔵 Suggestion · The replacement #21647 test no longer proves spend insertion** The descriptor import rescans the recent funding and spending blocks, so the final presence assertion can pass even if the subsequent spend import returns success without storing the transaction. Location: [`test/functional/wallet_importprunedfunds.py:130`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/ec7f64d02e370e04354e64fa745fca240bcb3cbe/test/functional/wallet_importprunedfunds.py#L130>) (head). **🔵 Suggestion · The test retains an unused removeprunedfunds opt-in** Both test nodes still receive -deprecatedrpc=removeprunedfunds even though this PR removes the RPC and every test call that needed it. Location: [`test/functional/wallet_importprunedfunds.py:134`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/94181c18e25436d5e4a2de2ff71714413b4552a2/test/functional/wallet_importprunedfunds.py#L134>) (base). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`ec7f64d02e37`](<https://git.fish.foo/bitcoin/bitcoin/commit/ec7f64d02e370e04354e64fa745fca240bcb3cbe>) · [Full review report](<https://review.fish.foo/traces/36333-ec7f64d02e370e04354e64fa745fca240bcb3cbe-2195-7.html>) · [Previous reports](<https://review.fish.foo/traces/36333/>) [permalink](<https://review.fish.foo/traces/36333-ec7f64d02e370e04354e64fa745fca240bcb3cbe-2195-7.html>)
davidgumberg commented 2026-10-09 01:05:38 +00:00 (Migrated from github.com)

Rebased to fix merge conflicts.

Rebased to fix merge conflicts.
DrahtBot commented 2026-10-09 01:18:11 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/37868051410/job/113619418552
LLM reason (✨ experimental): CI failed because Ruff’s Python lint check found an unused find_vout_for_address import in test/functional/wallet_importprunedfunds.py.

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.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/37868051410/job/113619418552</sub> <sub>LLM reason (✨ experimental): CI failed because Ruff’s Python lint check found an unused `find_vout_for_address` import in `test/functional/wallet_importprunedfunds.py`.</sub> <details><summary>Hints</summary> 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. </details>
DrahtBot commented 2026-10-13 02:13:18 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
pablomartin4btc (Migrated from github.com) reviewed 2026-10-21 20:12:39 +00:00
pablomartin4btc (Migrated from github.com) left a comment

cr ACK 360625ff4e

Checked that nothing in the tree still refers to removeprunedfunds, RemoveTxs or EraseTx.

Left some inline nits, no blockers. Needs rebase.

cr ACK 360625ff4e67205d4d1714e00aedbf8be45bb18d Checked that nothing in the tree still refers to `removeprunedfunds`, `RemoveTxs` or `EraseTx`. Left some inline nits, no blockers. Needs rebase.
pablomartin4btc (Migrated from github.com) commented 2026-10-21 20:00:18 +00:00

nit: according to the release notes guidance this filename should be release-notes-36333.md. Also since we have "New RPCs" section, perhaps a "Removed RPCs" section would make this more noticeable than listing it as an update (feel free to ignore, as previous removals have gone under "Updated RPCs" or "Wallet"). Last thing, not sure if it's worth mentioning, but this also changes migration: watch-only txs are now kept in the migrated wallet (e.g. they're counted in getwalletinfo's txcount).

nit: according to the release notes [guidance](https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#release-notes) this filename should be `release-notes-36333.md`. Also since we have "New RPCs" section, perhaps a "Removed RPCs" section would make this more noticeable than listing it as an update (feel free to ignore, as previous removals have gone under "Updated RPCs" or "Wallet"). Last thing, not sure if it's worth mentioning, but this also changes migration: watch-only txs are now kept in the migrated wallet (e.g. they're counted in `getwalletinfo`'s `txcount`).
pablomartin4btc (Migrated from github.com) commented 2026-10-21 19:43:30 +00:00

Since these txs are no longer deleted, they stay in the migrated wallet. Besides gettransaction, they now count in getwalletinfo's txcount and get rebroadcast by the spendable wallet if unconfirmed. Not a blocker, but maybe worth mentioning in the PR description/release note, and testing the new behavior in wallet_migration.py instead of only dropping the old assertions.

nit: this is not outdated... perhaps it can be something like:

                // Nothing more to do if it does not belong to the migrated wallet
Since these txs are no longer deleted, they stay in the migrated wallet. Besides `gettransaction`, they now count in `getwalletinfo`'s `txcount` and get rebroadcast by the spendable wallet if unconfirmed. Not a blocker, but maybe worth mentioning in the PR description/release note, and testing the new behavior in `wallet_migration.py` instead of only dropping the old assertions. nit: this is not outdated... perhaps it can be something like: ```suggestion // Nothing more to do if it does not belong to the migrated wallet ```
pablomartin4btc (Migrated from github.com) commented 2026-10-21 20:04:17 +00:00

nit: before the deprecation commit there were log lines here; restoring them would be cleaner.

        self.log.info("Tests for deprecated RPC methods (if any)")
        self.log.info("Currently no tests for deprecated RPC methods")
nit: before the deprecation commit there were log lines here; restoring them would be cleaner. ```suggestion self.log.info("Tests for deprecated RPC methods (if any)") self.log.info("Currently no tests for deprecated RPC methods") ```
pablomartin4btc (Migrated from github.com) commented 2026-10-21 20:11:42 +00:00

nit: this block tests importprunedfunds for a spending tx with no wallet outputs (#21647, added in c2da52d366); it only used removeprunedfunds to take the tx out of the wallet first. Could it be kept by importing into a fresh wallet that has the key, instead of dropping the coverage?

nit: this block tests `importprunedfunds` for a spending tx with no wallet outputs (#21647, added in c2da52d366); it only used `removeprunedfunds` to take the tx out of the wallet first. Could it be kept by importing into a fresh wallet that has the key, instead of dropping the coverage?
rkrux commented 2026-11-04 12:36:51 +00:00 (Migrated from github.com)

Concept ACK

Concept ACK
davidgumberg (Migrated from github.com) reviewed 2026-11-04 18:04:36 +00:00
davidgumberg (Migrated from github.com) commented 2026-11-04 18:04:36 +00:00

I think this is fine as-is, the point of the release-notes guidance is to avoid conflicts between branches, and using the PR number is one way to accomplish that, I dislike using the PR number because it means having to open a PR before adding the release note.

I think this is fine as-is, the point of the release-notes guidance is to avoid conflicts between branches, and using the PR number is one way to accomplish that, I dislike using the PR number because it means having to open a PR before adding the release note.
achow101 (Migrated from github.com) reviewed 2026-11-04 19:20:41 +00:00
Lines 3990-3996
achow101 (Migrated from github.com) commented 2026-11-04 19:20:30 +00:00

In b43647960e "wallet: migration: don't prune unnecessary tx'es from DB"

I don't think that we should drop this. Having extra transactions in the wallet could have unexpected side effects, as noted in https://github.com/bitcoin/bitcoin/pull/36333/changes/b43647960e7e98c40f3c671209d9041ffddda811#r4341195658

We could still drop RemoveTxs and EraseTx if instead of deleting from the database, we never add unnecessary txs in the first place. This could be achieved by using the generic all record prefix delete within LegacyDataSPKM::DeleteRecordsWithDB. We already do a full tx record rewrite in migration, so there would not need to be any changes for ensuring the records are written.

In b43647960e7e98c40f3c671209d9041ffddda811 "wallet: migration: don't prune unnecessary tx'es from DB" I don't think that we should drop this. Having extra transactions in the wallet could have unexpected side effects, as noted in https://github.com/bitcoin/bitcoin/pull/36333/changes/b43647960e7e98c40f3c671209d9041ffddda811#r4341195658 We could still drop `RemoveTxs` and `EraseTx` if instead of deleting from the database, we never add unnecessary txs in the first place. This could be achieved by using the generic all record prefix delete within `LegacyDataSPKM::DeleteRecordsWithDB`. We already do a full tx record rewrite in migration, so there would not need to be any changes for ensuring the records are written.
pablomartin4btc (Migrated from github.com) reviewed 2026-11-04 20:17:18 +00:00
pablomartin4btc (Migrated from github.com) commented 2026-11-04 20:17:18 +00:00

Yeah, np, I think it's easier to find a release note for a particular PR or to check if a release note was missed and we need to add one. Not a big deal anyways, just a small nit.

I dislike using the PR number because it means having to open a PR before adding the release note.

I do that :)

Yeah, np, I think it's easier to find a release note for a particular PR or to check if a release note was missed and we need to add one. Not a big deal anyways, just a small nit. > I dislike using the PR number because it means having to open a PR before adding the release note. I do that :)
davidgumberg (Migrated from github.com) reviewed 2026-11-05 01:46:21 +00:00
Lines 3990-3996
davidgumberg (Migrated from github.com) commented 2026-11-05 01:46:21 +00:00

I've removed the deletion of deletion stuff from this branch so I'll mark this as resolved, let's discuss in a follow-up PR.

I've removed the deletion of deletion stuff from this branch so I'll mark this as resolved, let's discuss in a follow-up PR.
davidgumberg (Migrated from github.com) reviewed 2026-11-05 01:47:56 +00:00
davidgumberg (Migrated from github.com) commented 2026-11-05 01:47:56 +00:00

Good catch, I've kept this test and changed it to avoid removeprunedfunds.

Good catch, I've kept this test and changed it to avoid removeprunedfunds.
davidgumberg (Migrated from github.com) reviewed 2026-11-05 01:50:15 +00:00
davidgumberg (Migrated from github.com) commented 2026-11-05 01:50:15 +00:00

Thank you, taken.

Thank you, taken.
davidgumberg (Migrated from github.com) reviewed 2026-11-05 01:51:05 +00:00
davidgumberg (Migrated from github.com) commented 2026-11-05 01:51:05 +00:00

I've avoided the deletion of deletion stuff for now, that can be handled in another PR since I think it will require some invasive changes to migration code, so I'll mark this as resolved.

I've avoided the deletion of deletion stuff for now, that can be handled in another PR since I think it will require some invasive changes to migration code, so I'll mark this as resolved.
davidgumberg (Migrated from github.com) reviewed 2026-11-05 01:51:40 +00:00
davidgumberg (Migrated from github.com) commented 2026-11-05 01:51:40 +00:00

Good point, I've avoided modifying this for now so marking as resolved.

Good point, I've avoided modifying this for now so marking as resolved.
davidgumberg commented 2026-11-05 01:53:38 +00:00 (Migrated from github.com)

Pushed to rebase, address feedback, and reduce scope of this PR to only removing the removeprunedfunds RPC. Deleting the deletion calls cleanly without maybe having leftover stuff in the migrated wallet may require some somewhat invasive changes to migration, so I want to do that in a separate focused PR.

Pushed to rebase, address feedback, and reduce scope of this PR to only removing the `removeprunedfunds` RPC. Deleting the deletion calls cleanly without maybe having leftover stuff in the migrated wallet may require some somewhat invasive changes to migration, so I want to do that in a separate focused PR.
pablomartin4btc (Migrated from github.com) reviewed 2026-11-05 19:59:26 +00:00
pablomartin4btc (Migrated from github.com) left a comment

re-ACK ec7f64d02e

Thanks for taking the suggestions.

Removed RemoveTxs and EraseTx deletion, will be done in a separate PR/ follow-up.

re-ACK ec7f64d02e370e04354e64fa745fca240bcb3cbe Thanks for taking the suggestions. Removed `RemoveTxs` and `EraseTx` deletion, will be done in a separate PR/ follow-up.
achow101 commented 2026-11-05 23:03:27 +00:00 (Migrated from github.com)
ACK ec7f64d02e370e04354e64fa745fca240bcb3cbe
w0xlt (Migrated from github.com) reviewed 2026-11-05 23:22:21 +00:00
w0xlt (Migrated from github.com) left a comment
ACK ec7f64d02e370e04354e64fa745fca240bcb3cbe
polespinasa (Migrated from github.com) reviewed 2026-11-05 23:46:27 +00:00
polespinasa (Migrated from github.com) left a comment

untested ACK ec7f64d02e

Code lgtm.

untested ACK ec7f64d02e370e04354e64fa745fca240bcb3cbe Code lgtm.
maflcko (Migrated from github.com) reviewed 2026-11-06 09:32:27 +00:00
maflcko (Migrated from github.com) commented 2026-11-06 09:32:27 +00:00

nit: leftover, see the ralph review: #36333

nit: leftover, see the ralph review: https://git.fish.foo/bitcoin/bitcoin/pulls/36333#author-ralph
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36333
No description provided.