mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
rpc: use GetBlockTime() for getblockchaininfo#time
This commit is contained in:
parent
86ce844d3b
commit
e2b954e87f
1 changed files with 1 additions and 1 deletions
|
@ -1208,7 +1208,7 @@ RPCHelpMan getblockchaininfo()
|
|||
obj.pushKV("headers", chainman.m_best_header ? chainman.m_best_header->nHeight : -1);
|
||||
obj.pushKV("bestblockhash", tip.GetBlockHash().GetHex());
|
||||
obj.pushKV("difficulty", GetDifficulty(&tip));
|
||||
obj.pushKV("time", int64_t{tip.nTime});
|
||||
obj.pushKV("time", tip.GetBlockTime());
|
||||
obj.pushKV("mediantime", tip.GetMedianTimePast());
|
||||
obj.pushKV("verificationprogress", GuessVerificationProgress(Params().TxData(), &tip));
|
||||
obj.pushKV("initialblockdownload", active_chainstate.IsInitialBlockDownload());
|
||||
|
|
Loading…
Add table
Reference in a new issue