mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
[REST] JSON output: remove block infos from tx details if it is nested in block
This commit is contained in:
@ -70,7 +70,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool txDe
|
|||||||
if(txDetails)
|
if(txDetails)
|
||||||
{
|
{
|
||||||
Object objTx;
|
Object objTx;
|
||||||
TxToJSON(tx, block.GetHash(), objTx);
|
TxToJSON(tx, uint256(0), objTx);
|
||||||
txs.push_back(objTx);
|
txs.push_back(objTx);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user