WIP: rpc: Stamp getblock OpenRPC result discriminator #36175

Draft
nervana21 wants to merge 3 commits from openrpc-discriminated-result into master AGit
nervana21 commented 2026-09-05 14:20:31 +00:00 (Migrated from github.com)

OpenRPC documents getblock as a four-way oneOf on verbosity, but the dump does not say which integer selects which arm. Therefore, clients that expose a type or method per verbosity (e.g. corepc, btcd) have to hardcode that map.

This patch adds optional RPCResultDiscriminator metadata, emits it as x-bitcoin-discriminated-result, and stamps getblock. getblock request handling and returned block data are unchanged. Now, help getblock notes that verbosity 2 and 3 cannot be told apart by validating a response alone.

Also updates getopenrpcinfo schema text to document x-bitcoin-discriminated-result and x-bitcoin-default-hint.

The change to the schema's format is:

x-bitcoin-discriminated-result on getblock
diff dump.json dump_new.json
5590c5590,5600
<           ]
---
>           ],
>           "x-bitcoin-discriminated-result": {
>             "parameter": "verbosity",
>             "parameterIndex": 1,
>             "values": [
>               0,
>               1,
>               2,
>               3
>             ]
>           }
getblock description notes verbosity 2 and 3 overlap
diff openrpc.json openrpc_new.json
4696c4696
<       "description": "If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\nIf verbosity is 1, returns an Object with information about block <hash>.\nIf verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\nIf verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).",
---
>       "description": "If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\nIf verbosity is 1, returns an Object with information about block <hash>.\nIf verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\nIf verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).\nThe verbosity = 2 and verbosity = 3 result schemas cannot be distinguished by validating a response alone because a block with no spent inputs returns byte-identical JSON at both levels (a coinbase input has no prevout to add), and the verbosity = 3 schema lists prevout as optional, so both object arms accept both responses.",
schema text for x-bitcoin-default-hint and x-bitcoin-discriminated-result
diff openrpc.json openrpc_new.json
8610c8610
<                           "description": "JSON Schema for the parameter."
---
>                           "description": "JSON Schema for the parameter. May include \"x-bitcoin-default-hint\" when the default cannot be expressed as a JSON value."
8649c8649
<                         "description": "JSON Schema for the result. Numeric schemas may include \"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC."
---
>                         "description": "JSON Schema for the result. Numeric schemas may include \"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC. Multi-result schemas may include \"x-bitcoin-discriminated-result\" naming the request parameter or parameters that select among the top-level oneOf branches."
13319c13319
<                           "description": "JSON Schema for the parameter."
---
>                           "description": "JSON Schema for the parameter. May include \"x-bitcoin-default-hint\" when the default cannot be expressed as a JSON value."
13358c13358
<                         "description": "JSON Schema for the result. Numeric schemas may include \"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC."
---
>                         "description": "JSON Schema for the result. Numeric schemas may include \"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC. Multi-result schemas may include \"x-bitcoin-discriminated-result\" naming the request parameter or parameters that select among the top-level oneOf branches."

Other results can also use the same discriminator pattern.

OpenRPC documents `getblock` as a four-way `oneOf` on `verbosity`, but the dump does not say which integer selects which arm. Therefore, clients that expose a type or method per verbosity (e.g. corepc, btcd) have to hardcode that map. This patch adds optional `RPCResultDiscriminator` metadata, emits it as `x-bitcoin-discriminated-result`, and stamps `getblock`. `getblock` request handling and returned block data are unchanged. Now, `help getblock` notes that verbosity 2 and 3 cannot be told apart by validating a response alone. Also updates `getopenrpcinfo` schema text to document `x-bitcoin-discriminated-result` and `x-bitcoin-default-hint`. The change to the schema's format is: <details> <summary><code>x-bitcoin-discriminated-result</code> on <code>getblock</code></summary> ```diff diff dump.json dump_new.json 5590c5590,5600 < ] --- > ], > "x-bitcoin-discriminated-result": { > "parameter": "verbosity", > "parameterIndex": 1, > "values": [ > 0, > 1, > 2, > 3 > ] > } ``` </details> <details> <summary><code>getblock</code> description notes verbosity 2 and 3 overlap</summary> ```diff diff openrpc.json openrpc_new.json 4696c4696 < "description": "If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\nIf verbosity is 1, returns an Object with information about block <hash>.\nIf verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\nIf verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).", --- > "description": "If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\nIf verbosity is 1, returns an Object with information about block <hash>.\nIf verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\nIf verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).\nThe verbosity = 2 and verbosity = 3 result schemas cannot be distinguished by validating a response alone because a block with no spent inputs returns byte-identical JSON at both levels (a coinbase input has no prevout to add), and the verbosity = 3 schema lists prevout as optional, so both object arms accept both responses.", ``` </details> <details> <summary>schema text for <code>x-bitcoin-default-hint</code> and <code>x-bitcoin-discriminated-result</code></summary> ```diff diff openrpc.json openrpc_new.json 8610c8610 < "description": "JSON Schema for the parameter." --- > "description": "JSON Schema for the parameter. May include \"x-bitcoin-default-hint\" when the default cannot be expressed as a JSON value." 8649c8649 < "description": "JSON Schema for the result. Numeric schemas may include \"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC." --- > "description": "JSON Schema for the result. Numeric schemas may include \"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC. Multi-result schemas may include \"x-bitcoin-discriminated-result\" naming the request parameter or parameters that select among the top-level oneOf branches." 13319c13319 < "description": "JSON Schema for the parameter." --- > "description": "JSON Schema for the parameter. May include \"x-bitcoin-default-hint\" when the default cannot be expressed as a JSON value." 13358c13358 < "description": "JSON Schema for the result. Numeric schemas may include \"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC." --- > "description": "JSON Schema for the result. Numeric schemas may include \"x-bitcoin-unit\" property: \"amount\" which denotes a Bitcoin amount in BTC. Multi-result schemas may include \"x-bitcoin-discriminated-result\" naming the request parameter or parameters that select among the top-level oneOf branches." ``` </details> Other results can also use the same discriminator pattern.
DrahtBot commented 2026-09-05 14:20:39 +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 willcl-ark
Concept ACK jeanpablojp

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

<!--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/36175 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36175.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36175#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 | [willcl-ark](https://github.com/bitcoin/bitcoin/pull/36175#pullrequestreview-5264263234) | | Concept ACK | [jeanpablojp](https://github.com/bitcoin/bitcoin/pull/36175#pullrequestreview-5126833383) | 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. <!--5faf32d7da4f0f540f40219e4f7537a3-->
jeanpablojp (Migrated from github.com) reviewed 2026-09-06 22:40:06 +00:00
jeanpablojp (Migrated from github.com) left a comment

Concept ACK

One thing I could not settle by reading. The test asserts the discriminator's literals rather than the two relations behind them. Inserting an argument before verbosity in getblock leaves parameterIndex 1 addressing the new argument, and swapping the verbosity 2 and 3 arms points value 2 at the arm with prevout. rpc_openrpc.py passes on both builds, and none of the three new CHECK_NONFATALs looks at either relation. Worth pinning them? Comparing getblock["params"][discriminator["parameterIndex"]]["name"] to discriminator["parameter"], and asserting the two object arms differ in prevout in the order values claims, fails on both and passes on this head.

Concept ACK One thing I could not settle by reading. The test asserts the discriminator's literals rather than the two relations behind them. Inserting an argument before `verbosity` in `getblock` leaves `parameterIndex` 1 addressing the new argument, and swapping the verbosity 2 and 3 arms points value 2 at the arm with `prevout`. rpc_openrpc.py passes on both builds, and none of the three new `CHECK_NONFATAL`s looks at either relation. Worth pinning them? Comparing `getblock["params"][discriminator["parameterIndex"]]["name"]` to `discriminator["parameter"]`, and asserting the two object arms differ in `prevout` in the order `values` claims, fails on both and passes on this head.
jeanpablojp (Migrated from github.com) commented 2026-09-06 22:40:07 +00:00

Worth putting in the description? Validating cannot pick the arm either, because a block with no spends comes back byte identical at verbosity 2 and 3, since a coinbase input has no prevout to add, and arm 3 lists prevout without requiring it, so both arms accept both responses and the oneOf does not resolve. That answers the reviewer who asks why a consumer cannot just validate, which the current wording leaves open. Already true on the base.

Worth putting in the description? Validating cannot pick the arm either, because a block with no spends comes back byte identical at verbosity 2 and 3, since a coinbase input has no `prevout` to add, and arm 3 lists `prevout` without requiring it, so both arms accept both responses and the `oneOf` does not resolve. That answers the reviewer who asks why a consumer cannot just validate, which the current wording leaves open. Already true on the base.
jeanpablojp (Migrated from github.com) commented 2026-09-06 22:40:07 +00:00

The schema field in OpenRPCDocResult already explains x-bitcoin-unit to whoever reads the help. Worth a line for x-bitcoin-discriminatedResult too? The parameter-side schema field next to it has the same gap for x-bitcoin-default-hint, if you would rather cover both at once.

nit: the other x-bitcoin- keys in the document are all lowercase and hyphenated, so x-bitcoin-discriminated-result would match.

The `schema` field in `OpenRPCDocResult` already explains `x-bitcoin-unit` to whoever reads the help. Worth a line for `x-bitcoin-discriminatedResult` too? The parameter-side `schema` field next to it has the same gap for `x-bitcoin-default-hint`, if you would rather cover both at once. nit: the other `x-bitcoin-` keys in the document are all lowercase and hyphenated, so `x-bitcoin-discriminated-result` would match.
jeanpablojp (Migrated from github.com) commented 2026-09-06 22:40:07 +00:00

The only constructor takes std::vector<int>, though values is already a std::vector<UniValue>. Of the fifteen methods with a oneOf result today, only getrawtransaction is another integer case and six more turn on a boolean or a string, so UniValue would cover eight instead of two. The other seven need a different shape rather than a wider type, so eight is the ceiling for this shape. Is the integer form deliberate for a first pass? I tried it, and a std::vector<UniValue> overload sits beside the int one, with getblockheader emitting "values": [true, false] and getblock unchanged.

nit: param_name, param_index and values could carry the m_ prefix and the const that RPCResults and RPCResult next door use.

The only constructor takes `std::vector<int>`, though `values` is already a `std::vector<UniValue>`. Of the fifteen methods with a `oneOf` result today, only `getrawtransaction` is another integer case and six more turn on a boolean or a string, so `UniValue` would cover eight instead of two. The other seven need a different shape rather than a wider type, so eight is the ceiling for this shape. Is the integer form deliberate for a first pass? I tried it, and a `std::vector<UniValue>` overload sits beside the `int` one, with `getblockheader` emitting `"values": [true, false]` and `getblock` unchanged. nit: `param_name`, `param_index` and `values` could carry the `m_` prefix and the const that `RPCResults` and `RPCResult` next door use.
nervana21 (Migrated from github.com) reviewed 2026-09-07 20:14:13 +00:00
nervana21 (Migrated from github.com) commented 2026-09-07 20:14:13 +00:00

Done.

Done.
nervana21 (Migrated from github.com) reviewed 2026-09-07 20:14:48 +00:00
nervana21 (Migrated from github.com) commented 2026-09-07 20:14:48 +00:00

Done.

Done.
nervana21 (Migrated from github.com) reviewed 2026-09-07 20:18:41 +00:00
nervana21 (Migrated from github.com) commented 2026-09-07 20:18:41 +00:00

Yes, the integer form was done deliberately on this first pass. Would prefer to add overloads in specific commits that use them.

Nits done.

Yes, the integer form was done deliberately on this first pass. Would prefer to add overloads in specific commits that use them. Nits done.
nervana21 commented 2026-09-07 20:37:28 +00:00 (Migrated from github.com)

Comparing getblock["params"][discriminator["parameterIndex"]]["name"] to discriminator["parameter"], and asserting the two object arms differ in prevout in the order values claims, fails on both and passes on this head.

Good catch, thanks! I've updated the tests according to your suggestion

> Comparing `getblock["params"][discriminator["parameterIndex"]]["name"]` to `discriminator["parameter"]`, and asserting the two object arms differ in `prevout` in the order `values` claims, fails on both and passes on this head. Good catch, thanks! I've updated the tests according to your suggestion
nervana21 commented 2026-09-16 23:24:02 +00:00 (Migrated from github.com)

Rebased off master

Rebased off master
maflcko (Migrated from github.com) reviewed 2026-09-17 05:08:44 +00:00
maflcko (Migrated from github.com) commented 2026-09-17 05:08:44 +00:00

What is this cast for?

What is this cast for?
nervana21 (Migrated from github.com) reviewed 2026-09-17 15:14:20 +00:00
nervana21 (Migrated from github.com) commented 2026-09-17 15:14:20 +00:00

I've removed the cast. I had initially used it to get around an error that I can no longer reproduce

I've removed the cast. I had initially used it to get around an error that I can no longer reproduce
nervana21 commented 2026-09-17 15:20:17 +00:00 (Migrated from github.com)

Updates:

  • Addressed @maflcko's comment and removed the int cast
_**Updates**_: * Addressed @maflcko's [comment](https://github.com/bitcoin/bitcoin/pull/36175#discussion_r4033320658) and removed the int cast
willcl-ark (Migrated from github.com) approved these changes 2026-09-21 08:00:11 +00:00
willcl-ark (Migrated from github.com) left a comment

ACK 85f2993079

RPCResultDiscriminator seems like a fair concept to use here.

I tried to think of other ways to implement, such as attaching each verbosity value directly to its RPCResult arm, which would remove the parallel ordering between values and oneOf, but it would be overkill for the one current use IMO.

ACK 85f29930790aee2bd4477df730b74fe11e91ebe9 `RPCResultDiscriminator` seems like a fair concept to use here. I tried to think of other ways to implement, such as attaching each verbosity value directly to its `RPCResult` arm, which would remove the parallel ordering between `values` and `oneOf`, but it would be overkill for the one current use IMO.
First-time contributor

Base: a773e1e33b349dc819b5a0edc1c7a4839dc73b48
Head: 85f29930790aee2bd4477df730b74fe11e91ebe9

Findings

Suggestions

Describe the discriminator as selecting on one parameter (src/rpc/server.cpp:564, head)

The description says the extension can name a request parameter “or parameters,” but RPCResultDiscriminator stores one parameter name and index, and the emitter writes scalar parameter and parameterIndex fields. Consumers therefore have no defined encoding for a multi-parameter selector. Narrow the description to one parameter or define and emit a multi-parameter form before advertising it.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:1e40d4c29146a38cb238a037edaa35c22b13996a5383ed7a85e089a15d569009:c9412d948811529792d161d97aa6951829440e3d548b7c576bb8d4df4183e0d0 --> Base: `a773e1e33b349dc819b5a0edc1c7a4839dc73b48` Head: `85f29930790aee2bd4477df730b74fe11e91ebe9` ##### Findings **Suggestions** **Describe the discriminator as selecting on one parameter** (src/rpc/server.cpp:564, head) The description says the extension can name a request parameter “or parameters,” but `RPCResultDiscriminator` stores one parameter name and index, and the emitter writes scalar `parameter` and `parameterIndex` fields. Consumers therefore have no defined encoding for a multi-parameter selector. Narrow the description to one parameter or define and emit a multi-parameter form before advertising it. [Full review report](<https://review.fish.foo/traces/36175-85f29930790aee2bd4477df730b74fe11e91ebe9-1341-2.html>)
maflcko commented 2026-10-20 09:53:02 +00:00 (Migrated from github.com)

I tried to think of other ways to implement, such as attaching each verbosity value directly to its RPCResult arm, which would remove the parallel ordering between values and oneOf, but it would be overkill for the one current use IMO.

Same, I find it a bit ugly that we can't discriminate all results. The reason is due to legacy code such as:

src/rpc/blockchain.cpp:            RPCResult{"If the UTXO was not found", RPCResult::Type::NONE, "", ""},
src/rpc/blockchain.cpp:            RPCResult{"Otherwise", RPCResult::Type::OBJ, "", "", {

src/rpc/mining.cpp:            RPCResult{"If the proposal was accepted with mode=='proposal'", RPCResult::Type::NONE, "", ""},
src/rpc/mining.cpp:            RPCResult{"If the proposal was not accepted with mode=='proposal'", RPCResult::Type::STR, "", "According to BIP22"},

src/rpc/mining.cpp:            RPCResult{"If the block was accepted", RPCResult::Type::NONE, "", ""},
src/rpc/mining.cpp:            RPCResult{"Otherwise", RPCResult::Type::STR, "", "According to BIP22"},

Which leads to issues such as https://github.com/bitcoin/bitcoin/issues/18476.

I don't think this will be fixed any time soon, or ever, so maybe a dedicated RPCResult{Undiscriminated{"text"}, ... could be introduced. This way, the docs and the schema could be derived from the same ground truth.

I am asking because clients would either care to have all of them discriminated, or none? What is so special about getblock?

Also, while reviewing I found a likely unrelated bug:

src/rpc/mempool.cpp:            RPCResult{"mempool chunks",

"mempool chunks" is not a discriminator, but should be the description of the array?

> I tried to think of other ways to implement, such as attaching each verbosity value directly to its `RPCResult` arm, which would remove the parallel ordering between `values` and `oneOf`, but it would be overkill for the one current use IMO. Same, I find it a bit ugly that we can't discriminate all results. The reason is due to legacy code such as: ``` src/rpc/blockchain.cpp: RPCResult{"If the UTXO was not found", RPCResult::Type::NONE, "", ""}, src/rpc/blockchain.cpp: RPCResult{"Otherwise", RPCResult::Type::OBJ, "", "", { src/rpc/mining.cpp: RPCResult{"If the proposal was accepted with mode=='proposal'", RPCResult::Type::NONE, "", ""}, src/rpc/mining.cpp: RPCResult{"If the proposal was not accepted with mode=='proposal'", RPCResult::Type::STR, "", "According to BIP22"}, src/rpc/mining.cpp: RPCResult{"If the block was accepted", RPCResult::Type::NONE, "", ""}, src/rpc/mining.cpp: RPCResult{"Otherwise", RPCResult::Type::STR, "", "According to BIP22"}, ``` Which leads to issues such as https://github.com/bitcoin/bitcoin/issues/18476. I don't think this will be fixed any time soon, or ever, so maybe a dedicated `RPCResult{Undiscriminated{"text"}, ...` could be introduced. This way, the docs and the schema could be derived from the same ground truth. I am asking because clients would either care to have all of them discriminated, or none? What is so special about `getblock`? Also, while reviewing I found a likely unrelated bug: ``` src/rpc/mempool.cpp: RPCResult{"mempool chunks", ``` "mempool chunks" is not a discriminator, but should be the description of the array?
nervana21 commented 2026-10-25 19:15:25 +00:00 (Migrated from github.com)

I don't think this will be fixed any time soon, or ever, so maybe a dedicated RPCResult{Undiscriminated{"text"}, ... could be introduced. This way, the docs and the schema could be derived from the same ground truth.

This sounds reasonable. I can work on this once I get some more time, or happy to review a PR by someone else.

I am asking because clients would either care to have all of them discriminated, or none? What is so special about getblock?

I had planned to go one by one for the RPCs that are selected by a request parameter. getblock seems to be a more commonly used and complex RPC, so I figured it was the best one to start with.

Also, while reviewing I found a likely unrelated bug:

src/rpc/mempool.cpp:            RPCResult{"mempool chunks",

"mempool chunks" is not a discriminator, but should be the description of the array?

Good catch. I will open a PR for a fix, unless someone else does before me.

> I don't think this will be fixed any time soon, or ever, so maybe a dedicated RPCResult{Undiscriminated{"text"}, ... could be introduced. This way, the docs and the schema could be derived from the same ground truth. This sounds reasonable. I can work on this once I get some more time, or happy to review a PR by someone else. > I am asking because clients would either care to have all of them discriminated, or none? What is so special about `getblock`? I had planned to go one by one for the RPCs that are selected by a request parameter. `getblock` seems to be a more commonly used and complex RPC, so I figured it was the best one to start with. > Also, while reviewing I found a likely unrelated bug: > > ``` > src/rpc/mempool.cpp: RPCResult{"mempool chunks", > ``` > > "mempool chunks" is not a discriminator, but should be the description of the array? Good catch. I will open a PR for a fix, unless someone else does before me.
fanquake commented 2026-11-30 11:39:19 +00:00 (Migrated from github.com)

Good catch. I will open a PR for a fix, unless someone else does before me.

@nervana21 do you still plan on opening this?

> Good catch. I will open a PR for a fix, unless someone else does before me. @nervana21 do you still plan on opening this?
nervana21 commented 2026-11-30 13:41:56 +00:00 (Migrated from github.com)

@nervana21 do you still plan on opening this?

Yes, PR opened. Thanks for the reminder

> [@nervana21](https://github.com/nervana21) do you still plan on opening this? Yes, PR opened. Thanks for the reminder
maflcko commented 2026-11-30 14:31:21 +00:00 (Migrated from github.com)

I don't think this will be fixed any time soon, or ever, so maybe a dedicated RPCResult{Undiscriminated{"text"}, ... could be introduced. This way, the docs and the schema could be derived from the same ground truth.

This sounds reasonable. I can work on this once I get some more time, or happy to review a PR by someone else.

Maybe turn into draft for now?

> > I don't think this will be fixed any time soon, or ever, so maybe a dedicated RPCResult{Undiscriminated{"text"}, ... could be introduced. This way, the docs and the schema could be derived from the same ground truth. > > This sounds reasonable. I can work on this once I get some more time, or happy to review a PR by someone else. Maybe turn into draft for now?
nervana21 commented 2026-11-30 14:37:20 +00:00 (Migrated from github.com)

Maybe turn into draft for now?

Done!

> Maybe turn into draft for now? Done!
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!36175
No description provided.