mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 03:02:37 +02:00
Merge #15383: [rpc] mining: Omit uninitialized currentblockweight, currentblocktx
fa178a6385 [rpc] mining: Omit uninitialized currentblockweight, currentblocktx (MarcoFalke)
Pull request description:
Previously we'd report "0", which could be mistaken for a valid number. E.g. the number of transactions is 0 or the block weight is 0, whatever that means.
Tree-SHA512: ee94ab203a329e272211b726f4c23edec4b09c650ec363b77fd59ad9264165d73064f78ebb9e11b5c2c543b73c157752410a307655560531c7d5444d203aa0ea
This commit is contained in:
@@ -263,6 +263,9 @@ in the Low-level Changes section below.
|
||||
|
||||
- See the [Mining](#mining) section for changes to `getblocktemplate`.
|
||||
|
||||
- The `getmininginfo` RPC now omits `currentblockweight` and `currentblocktx`
|
||||
when a block was never assembled via RPC on this node.
|
||||
|
||||
- The `getrawtransaction` RPC & REST endpoints no longer check the
|
||||
unspent UTXO set for a transaction. The remaining behaviors are as
|
||||
follows: 1. If a blockhash is provided, check the corresponding block.
|
||||
|
||||
Reference in New Issue
Block a user