Skip to content

Commit e2b954e

Browse files
committed
rpc: use GetBlockTime() for getblockchaininfo#time
1 parent 86ce844 commit e2b954e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ RPCHelpMan getblockchaininfo()
12081208
obj.pushKV("headers", chainman.m_best_header ? chainman.m_best_header->nHeight : -1);
12091209
obj.pushKV("bestblockhash", tip.GetBlockHash().GetHex());
12101210
obj.pushKV("difficulty", GetDifficulty(&tip));
1211-
obj.pushKV("time", int64_t{tip.nTime});
1211+
obj.pushKV("time", tip.GetBlockTime());
12121212
obj.pushKV("mediantime", tip.GetMedianTimePast());
12131213
obj.pushKV("verificationprogress", GuessVerificationProgress(Params().TxData(), &tip));
12141214
obj.pushKV("initialblockdownload", active_chainstate.IsInitialBlockDownload());

0 commit comments

Comments
 (0)