@@ -3308,6 +3308,8 @@ static RPCHelpMan loadtxoutset()
3308
3308
const std::vector<RPCResult> RPCHelpForChainstate{
3309
3309
{RPCResult::Type::NUM, " blocks" , " number of blocks in this chainstate" },
3310
3310
{RPCResult::Type::STR_HEX, " bestblockhash" , " blockhash of the tip" },
3311
+ {RPCResult::Type::STR_HEX, " bits" , " nBits: compact representation of the block difficulty target" },
3312
+ {RPCResult::Type::STR_HEX, " target" , " The difficulty target" },
3311
3313
{RPCResult::Type::NUM, " difficulty" , " difficulty of the tip" },
3312
3314
{RPCResult::Type::NUM, " verificationprogress" , " progress towards the network tip" },
3313
3315
{RPCResult::Type::STR_HEX, " snapshot_blockhash" , /* optional=*/ true , " the base block of the snapshot this chainstate is based on, if any" },
@@ -3350,6 +3352,8 @@ return RPCHelpMan{
3350
3352
3351
3353
data.pushKV (" blocks" , (int )chain.Height ());
3352
3354
data.pushKV (" bestblockhash" , tip->GetBlockHash ().GetHex ());
3355
+ data.pushKV (" bits" , strprintf (" %08x" , tip->nBits ));
3356
+ data.pushKV (" target" , GetTarget (*tip, chainman.GetConsensus ().powLimit ).GetHex ());
3353
3357
data.pushKV (" difficulty" , GetDifficulty (*tip));
3354
3358
data.pushKV (" verificationprogress" , chainman.GuessVerificationProgress (tip));
3355
3359
data.pushKV (" coins_db_cache_bytes" , cs.m_coinsdb_cache_size_bytes );
0 commit comments