File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1369,7 +1369,7 @@ RPCHelpMan getblockchaininfo()
1369
1369
const int height = tip->nHeight ;
1370
1370
UniValue obj (UniValue::VOBJ);
1371
1371
obj.pushKV (" chain" , Params ().NetworkIDString ());
1372
- obj.pushKV (" blocks" , ( int ) height);
1372
+ obj.pushKV (" blocks" , height);
1373
1373
obj.pushKV (" headers" , pindexBestHeader ? pindexBestHeader->nHeight : -1 );
1374
1374
obj.pushKV (" bestblockhash" , tip->GetBlockHash ().GetHex ());
1375
1375
obj.pushKV (" difficulty" , (double )GetDifficulty (tip));
Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ static RPCHelpMan getmininginfo()
434
434
const CChain& active_chain = chainman.ActiveChain ();
435
435
436
436
UniValue obj (UniValue::VOBJ);
437
- obj.pushKV (" blocks" , ( int ) active_chain.Height ());
437
+ obj.pushKV (" blocks" , active_chain.Height ());
438
438
if (BlockAssembler::m_last_block_weight) obj.pushKV (" currentblockweight" , *BlockAssembler::m_last_block_weight);
439
439
if (BlockAssembler::m_last_block_num_txs) obj.pushKV (" currentblocktx" , *BlockAssembler::m_last_block_num_txs);
440
440
obj.pushKV (" difficulty" , (double )GetDifficulty (active_chain.Tip ()));
You can’t perform that action at this time.
0 commit comments