rpc: Use OBJ_NAMED_PARAMS in estimatesmartfee #36976

Open
maflcko wants to merge 7 commits from 2611-rpc-estimatesmartfee-OBJ_NAMED_PARAMS into master AGit
maflcko commented 2026-11-25 12:05:43 +00:00 (Migrated from github.com)

estimatesmartfee is the only RPC that rejects named arguments for options, which seems confusing and not user friendly.

Fix it by using OBJ_NAMED_PARAMS.

`estimatesmartfee` is the only RPC that rejects named arguments for options, which seems confusing and not user friendly. Fix it by using `OBJ_NAMED_PARAMS`.
DrahtBot commented 2026-11-25 12:05:53 +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 l0rinc

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:

  • #36990 (test: replace hard-coded RPC error codes by l0rinc)
  • #36979 (rpc: fix getorphantxs verbosity help and type checking by l0rinc)
  • #36257 (qa: assert_equal -> assert_true/assert_false by hodlinator)
  • #36033 ([wip,nomerge,rfc] build: Require C++23 compiler by maflcko)
  • #35302 (Silent Payments: Sending (take 2) by Eunovo)
  • #33741 (rpc: Optionally print feerates in sat/vb by polespinasa)
  • #32857 (wallet: allow skipping script paths by Sjors)

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/36976 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36976.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36976#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 | [l0rinc](https://github.com/bitcoin/bitcoin/pull/36976#issuecomment-7217351009) | 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: * [#36990](https://github.com/bitcoin/bitcoin/pull/36990) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36990.svg"></sub> (test: replace hard-coded RPC error codes by l0rinc) * [#36979](https://github.com/bitcoin/bitcoin/pull/36979) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36979.svg"></sub> (rpc: fix `getorphantxs` verbosity help and type checking by l0rinc) * [#36257](https://github.com/bitcoin/bitcoin/pull/36257) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36257.svg"></sub> (qa: assert_equal -> assert_true/assert_false by hodlinator) * [#36033](https://github.com/bitcoin/bitcoin/pull/36033) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36033.svg"></sub> ([wip,nomerge,rfc] build: Require C++23 compiler by maflcko) * [#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) * [#33741](https://github.com/bitcoin/bitcoin/pull/33741) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/33741.svg"></sub> (rpc: Optionally print feerates in sat/vb by polespinasa) * [#32857](https://github.com/bitcoin/bitcoin/pull/32857) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/32857.svg"></sub> (wallet: allow skipping script paths by Sjors) 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-->
First-time contributor

🔵 Suggestion · Named estimatesmartfee options are missing from release notes

The new top-level fee_rate_estimator and verbosity arguments are user-facing additions, but the release notes describe only the existing options object form.

Location: src/rpc/fees.cpp:54 (head).

Review coverage was incomplete.


Reviewed: fad909a4f2fc · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:806938d40e279b6d701b2e78128bb1a09b55193a0b697245a1dce6241d3081c1:3607c760b63c01fb7f1f349adfc3fd0614b148a7df02e42f2f0edc2d448925a1 --> <!-- ralph-base:095860411807e29282e61122b3b0247c08f3c7a5 --> <!-- ralph-head:fad909a4f2fc97e556fd7a0415b1bcd764ce1ebf --> <!-- ralph-case:b77a7f0978caf50f1b6a84d3eee9781aaa58e06ab0813552c93e1fd596585698 --> **🔵 Suggestion · Named `estimatesmartfee` options are missing from release notes** The new top-level `fee_rate_estimator` and `verbosity` arguments are user-facing additions, but the release notes describe only the existing `options` object form. Location: [`src/rpc/fees.cpp:54`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/fad909a4f2fc97e556fd7a0415b1bcd764ce1ebf/src/rpc/fees.cpp#L54>) (head). Review coverage was incomplete. <!-- Review tier: standard --> --- Reviewed: [`fad909a4f2fc`](<https://git.fish.foo/bitcoin/bitcoin/commit/fad909a4f2fc97e556fd7a0415b1bcd764ce1ebf>) · [Review report](<https://review.fish.foo/report/36976-fad909a4f2fc97e556fd7a0415b1bcd764ce1ebf-3246-6.html>) · [Previous reports](<https://review.fish.foo/traces/36976/>) [permalink](<https://review.fish.foo/report/36976-fad909a4f2fc97e556fd7a0415b1bcd764ce1ebf-3246-6.html>)
maflcko commented 2026-11-26 12:01:52 +00:00 (Migrated from github.com)
rendered diff
diff --git a/createwalletdescriptor b/createwalletdescriptor
index e980eb0..1eb21b7 100644
--- a/createwalletdescriptor
+++ b/createwalletdescriptor
@@ -1,4 +1,4 @@
-createwalletdescriptor "type" ( {"internal":bool,"hdkey":"str",...} )
+createwalletdescriptor "type" ( {"internal":bool,"hdkey":"str"} )
 
 Creates the wallet's descriptor for the given address type. The address type must be one that the wallet does not already have a descriptor for.
 Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
diff --git a/derivehdkey b/derivehdkey
index c188cac..edcac65 100644
--- a/derivehdkey
+++ b/derivehdkey
@@ -1,4 +1,4 @@
-derivehdkey "path" ( {"private":bool,"hdkey":"str",...} )
+derivehdkey "path" ( {"private":bool,"hdkey":"str"} )
 
 Derive extended public or private key from HD key in the wallet at a given path.
 Derivation uses wallet private key material.
diff --git a/dumptxoutset b/dumptxoutset
index 44c8948..24b6491 100644
--- a/dumptxoutset
+++ b/dumptxoutset
@@ -1,4 +1,4 @@
-dumptxoutset "path" ( "type" {"rollback":n,"in_memory":bool,...} )
+dumptxoutset "path" ( "type" {"rollback":n,"in_memory":bool} )
 
 Write the serialized UTXO set to a file. This can be used in loadtxoutset afterwards if this snapshot height is supported in the chainparams as well.
 This creates a temporary UTXO database when rolling back, keeping the main chain intact. Should the node experience an unclean shutdown the temporary database may need to be removed from the datadir manually.
diff --git a/estimatesmartfee b/estimatesmartfee
index 9d43f19..c39b2d1 100644
--- a/estimatesmartfee
+++ b/estimatesmartfee
@@ -13,17 +13,17 @@ Arguments:
                     economical mode potentially returns a lower fee rate estimate.
                     conservative potentially returns a higher fee rate estimate.
                     
-3. options                             (json object, optional)
-     {
-       "fee_rate_estimator": "str",    (string, optional, default="auto") Selects which fee rate estimator to use.
+3. options          (json object, optional) Options object that can be used to pass named arguments, listed below.
+
+Named Arguments:
+fee_rate_estimator    (string, optional, default="auto") Selects which fee rate estimator to use.
                       "auto" (the default) combines both estimators, returning the lower of the block policy and
                       mempool fee rate estimates. If the mempool fee rate estimator cannot produce an estimate, the
                       block policy fee rate estimate is returned instead. An error is returned only if the block
                       policy fee rate estimate is unavailable.
                       "block_policy" uses only the block policy fee rate estimator.
                       "mempool_policy" uses only the mempool fee rate estimator.
-       "verbosity": n,                 (numeric, optional, default=1) 1 returns feerate or errors. 2 also returns "mempool_health_statistics".
-     }
+verbosity             (numeric, optional, default=1) 1 returns feerate or errors. 2 also returns "mempool_health_statistics".
 
 Result:
 {                                    (json object)
diff --git a/gethdkeys b/gethdkeys
index 46a1a8a..2a35a44 100644
--- a/gethdkeys
+++ b/gethdkeys
@@ -1,4 +1,4 @@
-gethdkeys ( {"active_only":bool,"private":bool,...} )
+gethdkeys ( {"active_only":bool,"private":bool} )
 
 List all BIP 32 HD keys in the wallet and which descriptors use them.
 
diff --git a/gettxspendingprevout b/gettxspendingprevout
index 7f42ee7..721404b 100644
--- a/gettxspendingprevout
+++ b/gettxspendingprevout
@@ -1,4 +1,4 @@
-gettxspendingprevout [{"txid":"hex","vout":n},...] ( {"mempool_only":bool,"return_spending_tx":bool,...} )
+gettxspendingprevout [{"txid":"hex","vout":n},...] ( {"mempool_only":bool,"return_spending_tx":bool} )
 
 Scans the mempool (and the txospenderindex, if available) to find transactions spending any of the given outputs
 
diff --git a/simulaterawtransaction b/simulaterawtransaction
index 5a19296..8bdb56c 100644
--- a/simulaterawtransaction
+++ b/simulaterawtransaction
@@ -1,4 +1,4 @@
-simulaterawtransaction ["rawtx",...] ( {"include_watchonly":bool,...} )
+simulaterawtransaction ["rawtx",...] ( {"include_watchonly":bool} )
 
 Calculate the balance change resulting in the signing and broadcasting of the given transaction(s).
 

<details><summary>rendered diff</summary> ```diff diff --git a/createwalletdescriptor b/createwalletdescriptor index e980eb0..1eb21b7 100644 --- a/createwalletdescriptor +++ b/createwalletdescriptor @@ -1,4 +1,4 @@ -createwalletdescriptor "type" ( {"internal":bool,"hdkey":"str",...} ) +createwalletdescriptor "type" ( {"internal":bool,"hdkey":"str"} ) Creates the wallet's descriptor for the given address type. The address type must be one that the wallet does not already have a descriptor for. Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted. diff --git a/derivehdkey b/derivehdkey index c188cac..edcac65 100644 --- a/derivehdkey +++ b/derivehdkey @@ -1,4 +1,4 @@ -derivehdkey "path" ( {"private":bool,"hdkey":"str",...} ) +derivehdkey "path" ( {"private":bool,"hdkey":"str"} ) Derive extended public or private key from HD key in the wallet at a given path. Derivation uses wallet private key material. diff --git a/dumptxoutset b/dumptxoutset index 44c8948..24b6491 100644 --- a/dumptxoutset +++ b/dumptxoutset @@ -1,4 +1,4 @@ -dumptxoutset "path" ( "type" {"rollback":n,"in_memory":bool,...} ) +dumptxoutset "path" ( "type" {"rollback":n,"in_memory":bool} ) Write the serialized UTXO set to a file. This can be used in loadtxoutset afterwards if this snapshot height is supported in the chainparams as well. This creates a temporary UTXO database when rolling back, keeping the main chain intact. Should the node experience an unclean shutdown the temporary database may need to be removed from the datadir manually. diff --git a/estimatesmartfee b/estimatesmartfee index 9d43f19..c39b2d1 100644 --- a/estimatesmartfee +++ b/estimatesmartfee @@ -13,17 +13,17 @@ Arguments: economical mode potentially returns a lower fee rate estimate. conservative potentially returns a higher fee rate estimate. -3. options (json object, optional) - { - "fee_rate_estimator": "str", (string, optional, default="auto") Selects which fee rate estimator to use. +3. options (json object, optional) Options object that can be used to pass named arguments, listed below. + +Named Arguments: +fee_rate_estimator (string, optional, default="auto") Selects which fee rate estimator to use. "auto" (the default) combines both estimators, returning the lower of the block policy and mempool fee rate estimates. If the mempool fee rate estimator cannot produce an estimate, the block policy fee rate estimate is returned instead. An error is returned only if the block policy fee rate estimate is unavailable. "block_policy" uses only the block policy fee rate estimator. "mempool_policy" uses only the mempool fee rate estimator. - "verbosity": n, (numeric, optional, default=1) 1 returns feerate or errors. 2 also returns "mempool_health_statistics". - } +verbosity (numeric, optional, default=1) 1 returns feerate or errors. 2 also returns "mempool_health_statistics". Result: { (json object) diff --git a/gethdkeys b/gethdkeys index 46a1a8a..2a35a44 100644 --- a/gethdkeys +++ b/gethdkeys @@ -1,4 +1,4 @@ -gethdkeys ( {"active_only":bool,"private":bool,...} ) +gethdkeys ( {"active_only":bool,"private":bool} ) List all BIP 32 HD keys in the wallet and which descriptors use them. diff --git a/gettxspendingprevout b/gettxspendingprevout index 7f42ee7..721404b 100644 --- a/gettxspendingprevout +++ b/gettxspendingprevout @@ -1,4 +1,4 @@ -gettxspendingprevout [{"txid":"hex","vout":n},...] ( {"mempool_only":bool,"return_spending_tx":bool,...} ) +gettxspendingprevout [{"txid":"hex","vout":n},...] ( {"mempool_only":bool,"return_spending_tx":bool} ) Scans the mempool (and the txospenderindex, if available) to find transactions spending any of the given outputs diff --git a/simulaterawtransaction b/simulaterawtransaction index 5a19296..8bdb56c 100644 --- a/simulaterawtransaction +++ b/simulaterawtransaction @@ -1,4 +1,4 @@ -simulaterawtransaction ["rawtx",...] ( {"include_watchonly":bool,...} ) +simulaterawtransaction ["rawtx",...] ( {"include_watchonly":bool} ) Calculate the balance change resulting in the signing and broadcasting of the given transaction(s). ``` </details>
l0rinc (Migrated from github.com) approved these changes 2026-11-27 10:47:29 +00:00
l0rinc (Migrated from github.com) left a comment

Concept ACK

I only took a quick look, but more consistent named options for estimatesmartfee make sense to me.

Since my PR depends on the TestNodeCLI parser fix, I’d prefer splitting the fix into its own PR - unless others are more comfortable reviewing it here.

Concept ACK I only took a quick look, but more consistent named options for `estimatesmartfee` make sense to me. Since [my PR](https://github.com/bitcoin/bitcoin/pull/36979#issuecomment-7189763235) depends on the `TestNodeCLI` parser fix, I’d prefer splitting the fix into its own PR - unless others are more comfortable reviewing it here.
l0rinc (Migrated from github.com) commented 2026-11-27 10:43:41 +00:00

fa73731 rpc: Use OBJ_NAMED_PARAMS in estimatesmartfee:

Both values here are defaults. Using non-default values and checking the result would show that the named arguments actually select the estimator and enable the extra statistics.

Example patch
diff --git a/test/functional/rpc_estimatefee.py b/test/functional/rpc_estimatefee.py
index 238fbffc6c..1d49d7a25d 100755
--- a/test/functional/rpc_estimatefee.py
+++ b/test/functional/rpc_estimatefee.py
@@ -11,6 +11,7 @@ Test the following RPCs:
 
 from test_framework.test_framework import BitcoinTestFramework
 from test_framework.util import (
+    assert_equal,
     assert_raises_rpc_error,
     assert_rpc_options_validation,
 )
@@ -63,8 +64,12 @@ class EstimateFeeTest(BitcoinTestFramework):
         self.nodes[0].estimatesmartfee(1, 'unset')
         self.nodes[0].estimatesmartfee(1, 'conservative')
         self.nodes[0].estimatesmartfee(1, 'ECONOMICAL', {"fee_rate_estimator": "block_policy"})
-        self.nodes[0].estimatesmartfee(1, 'ECONOMICAL', {"fee_rate_estimator": "mempool_policy"})
-        self.nodes[0].estimatesmartfee(1, 'ECONOMICAL', verbosity=1, fee_rate_estimator="auto")
+
+        options = {"fee_rate_estimator": "mempool_policy", "verbosity": 2}
+        named = self.nodes[0].estimatesmartfee(conf_target=6, **options)
+        assert_equal(named, self.nodes[0].estimatesmartfee(6, 'ECONOMICAL', options))
+        assert_equal(named["blocks"], 2)
+        assert "mempool_health_statistics" in named
 
         self.nodes[0].estimaterawfee(1)
         self.nodes[0].estimaterawfee(1, None)
> [fa73731](https://github.com/bitcoin/bitcoin/pull/36976/changes/fa73731ceb9378b8c7111f72b3299c612ba888b5) _rpc: Use OBJ\_NAMED\_PARAMS in estimatesmartfee_: Both values here are defaults. Using non-default values and checking the result would show that the named arguments actually select the estimator and enable the extra statistics. <details> <summary>Example patch</summary> ```diff diff --git a/test/functional/rpc_estimatefee.py b/test/functional/rpc_estimatefee.py index 238fbffc6c..1d49d7a25d 100755 --- a/test/functional/rpc_estimatefee.py +++ b/test/functional/rpc_estimatefee.py @@ -11,6 +11,7 @@ Test the following RPCs: from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( + assert_equal, assert_raises_rpc_error, assert_rpc_options_validation, ) @@ -63,8 +64,12 @@ class EstimateFeeTest(BitcoinTestFramework): self.nodes[0].estimatesmartfee(1, 'unset') self.nodes[0].estimatesmartfee(1, 'conservative') self.nodes[0].estimatesmartfee(1, 'ECONOMICAL', {"fee_rate_estimator": "block_policy"}) - self.nodes[0].estimatesmartfee(1, 'ECONOMICAL', {"fee_rate_estimator": "mempool_policy"}) - self.nodes[0].estimatesmartfee(1, 'ECONOMICAL', verbosity=1, fee_rate_estimator="auto") + + options = {"fee_rate_estimator": "mempool_policy", "verbosity": 2} + named = self.nodes[0].estimatesmartfee(conf_target=6, **options) + assert_equal(named, self.nodes[0].estimatesmartfee(6, 'ECONOMICAL', options)) + assert_equal(named["blocks"], 2) + assert "mempool_health_statistics" in named self.nodes[0].estimaterawfee(1) self.nodes[0].estimaterawfee(1, None) ``` </details>
l0rinc (Migrated from github.com) commented 2026-11-27 10:32:54 +00:00

fad1c43 test: Fix TestNodeCLI error msg parsing:

bitcoin-cli always ends this output with a newline as far as I can tell, matching a required trailing \n outside the capture with re.fullmatch lets us drop removesuffix and -?\d+ would also be simpler (and more correct since the old [-0-9]+ also matches values like -3-).

Example patch
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py
index 7abd78f560..f88a317061 100755
--- a/test/functional/test_framework/test_node.py
+++ b/test/functional/test_framework/test_node.py
@@ -1011,10 +1011,9 @@ class TestNodeCLI():
         cli_stdout, cli_stderr = process.communicate(input=stdin_data)
         returncode = process.poll()
         if returncode:
-            match = re.match(r'error code: ([-0-9]+)\nerror message:\n(.*)', cli_stderr, re.DOTALL)
+            match = re.fullmatch(r'error code: (-?\d+)\nerror message:\n(.*)\n', cli_stderr, re.DOTALL)
             if match:
                 code, message = match.groups()
-                message = message.removesuffix("\n")
                 raise JSONRPCException(dict(code=int(code), message=message))
             match = re.match(r'error: Server response: (.*)\n?$', cli_stderr)
             if match:
> [fad1c43](https://github.com/bitcoin/bitcoin/pull/36976/changes/fad1c43ea15b8bf99c58bbde57958f4588ec6806) _test: Fix TestNodeCLI error msg parsing_: `bitcoin-cli` always ends this output with a newline as far as I can tell, matching a required trailing `\n` outside the capture with `re.fullmatch` lets us drop `removesuffix` and `-?\d+` would also be simpler (and more correct since the old `[-0-9]+` also matches values like `-3-`). <details> <summary>Example patch</summary> ```diff diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index 7abd78f560..f88a317061 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -1011,10 +1011,9 @@ class TestNodeCLI(): cli_stdout, cli_stderr = process.communicate(input=stdin_data) returncode = process.poll() if returncode: - match = re.match(r'error code: ([-0-9]+)\nerror message:\n(.*)', cli_stderr, re.DOTALL) + match = re.fullmatch(r'error code: (-?\d+)\nerror message:\n(.*)\n', cli_stderr, re.DOTALL) if match: code, message = match.groups() - message = message.removesuffix("\n") raise JSONRPCException(dict(code=int(code), message=message)) match = re.match(r'error: Server response: (.*)\n?$', cli_stderr) if match: ``` </details>
l0rinc (Migrated from github.com) commented 2026-11-27 10:33:05 +00:00

fa1781e test: Check wrong option type in assert_rpc_options_validation:

Nit1: The options checks would read more clearly with RPC_TYPE_ERROR and RPC_INVALID_PARAMETER once the shared Python error codes land.
Nit2: formatting

> [fa1781e](https://github.com/bitcoin/bitcoin/pull/36976/changes/fa1781e1195b7906129a03ae6949d91b30f538b9) _test: Check wrong option type in assert\_rpc\_options\_validation_: Nit1: The options checks would read more clearly with `RPC_TYPE_ERROR` and `RPC_INVALID_PARAMETER` once the [shared Python error codes](https://github.com/bitcoin/bitcoin/pull/36990) land. Nit2: formatting
maflcko (Migrated from github.com) reviewed 2026-11-27 11:10:11 +00:00
maflcko (Migrated from github.com) commented 2026-11-27 11:10:11 +00:00

Thx, picked a different existing test case where the passed value matters.

Thx, picked a different existing test case where the passed value matters.
maflcko (Migrated from github.com) reviewed 2026-11-27 11:10:15 +00:00
maflcko (Migrated from github.com) commented 2026-11-27 11:10:15 +00:00

thx, ran formatter on this commit.

thx, ran formatter on this commit.
maflcko (Migrated from github.com) reviewed 2026-11-27 11:10:53 +00:00
maflcko (Migrated from github.com) commented 2026-11-27 11:10:53 +00:00

Nice. fullmatch is more self-documenting here when reading the code.

Feel free to rebase your pull on that commit, if you need/want it.

Nice. `fullmatch` is more self-documenting here when reading the code. Feel free to rebase your pull on that commit, if you need/want it.
l0rinc commented 2026-11-27 11:40:46 +00:00 (Migrated from github.com)

shallow ACK fad909a4f2, reviewed and played with it a bit, someone with more experience in this area should also review it

shallow ACK fad909a4f2fc97e556fd7a0415b1bcd764ce1ebf, reviewed and played with it a bit, someone with more experience in this area should also review it
maflcko commented 2026-11-27 11:48:04 +00:00 (Migrated from github.com)

someone with more experience in this area

cc @willcl-ark

> someone with more experience in this area cc @willcl-ark
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!36976
No description provided.