The time and blocktime entries have the same value so they should have the same help text as well
rpc: Clarifying RPC getrawtransaction's time help text #14981
pull benthecarman wants to merge 1 commits into bitcoin:master from benthecarman:getrawtransaction_help_text_fix changing 1 files +1 −1-
benthecarman commented at 12:38 PM on December 17, 2018: contributor
- fanquake added the label Docs on Dec 17, 2018
- fanquake added the label RPC/REST/ZMQ on Dec 17, 2018
-
in src/rpc/rawtransaction.cpp:133 in 4504b58552 outdated
129 | @@ -130,7 +130,7 @@ static UniValue getrawtransaction(const JSONRPCRequest& request) 130 | " ],\n" 131 | " \"blockhash\" : \"hash\", (string) the block hash\n" 132 | " \"confirmations\" : n, (numeric) The confirmations\n" 133 | - " \"time\" : ttt, (numeric) The transaction time in seconds since epoch (Jan 1 1970 GMT)\n" 134 | + " \"time\" : ttt, (numeric) The block time in seconds since epoch (Jan 1 1970 GMT)\n" 135 | " \"blocktime\" : ttt (numeric) The block time in seconds since epoch (Jan 1 1970 GMT)\n"
laanwj commented at 12:58 PM on December 17, 2018:concept ACK, the code is in
TxToJSON:entry.pushKV("time", pindex->GetBlockTime()); entry.pushKV("blocktime", pindex->GetBlockTime());though instead of repeating the text I'd prefer
Same as \"blocktime\"\nvinhmako99777 approvedbenthecarman force-pushed on Dec 17, 2018promag commented at 2:35 PM on December 17, 2018: memberConcept ACK.
You have to rebase with master.
MarcoFalke commented at 3:58 PM on December 17, 2018: memberutACK 845d14cff70c5da741952c2395adbead263516a5
promag commented at 4:13 PM on December 17, 2018: memberutACK 845d14c.
MarcoFalke added this to the milestone 0.18.0 on Dec 17, 2018promag commented at 4:59 PM on December 17, 2018: memberInvalid push? Reset to 845d14c?
benthecarman commented at 4:59 PM on December 17, 2018: contributorInvalid push? Reset to 845d14c?
Yeah my bad
benthecarman force-pushed on Dec 17, 2018clarifying getrawtransaction[time] get help text 84104c781abenthecarman force-pushed on Dec 17, 2018MarcoFalke commented at 6:05 PM on December 17, 2018: memberNo need to rebase. Could just force push the already reviewed commit?
benthecarman commented at 6:39 PM on December 17, 2018: contributorNo need to rebase. Could just force push the already reviewed commit?
I thought the same thing but @promag asked for a rebase
MarcoFalke commented at 7:50 PM on December 17, 2018: memberWe had issues with travis earlier today, but it is possible to just reset a travis run without a rebase or otherwise touching the commit.
benthecarman commented at 8:07 PM on December 17, 2018: contributorI did not know that, but good to know
benthecarman renamed this:Clarifying RPC getrawtransaction's time help text
rpc: Clarifying RPC getrawtransaction's time help text
on Dec 18, 2018fanquake commented at 11:16 AM on December 28, 2018: memberutACK 84104c7
MarcoFalke merged this on Dec 28, 2018MarcoFalke closed this on Dec 28, 2018MarcoFalke referenced this in commit ea0b1990d1 on Dec 28, 2018benthecarman deleted the branch on Dec 29, 2018jasonbcox referenced this in commit 807ed300fa on Oct 2, 2020christiancfifi referenced this in commit db718907c4 on Aug 24, 2021christiancfifi referenced this in commit 8583a99307 on Aug 24, 2021christiancfifi referenced this in commit cf22be7a4c on Aug 25, 2021christiancfifi referenced this in commit af89aa9af0 on Aug 25, 2021christiancfifi referenced this in commit a0eceef952 on Aug 26, 2021christiancfifi referenced this in commit 4488338dce on Aug 28, 2021christiancfifi referenced this in commit 07601b8ec2 on Aug 29, 2021christiancfifi referenced this in commit 0d06956b17 on Aug 29, 2021christiancfifi referenced this in commit cf64b534ab on Aug 29, 2021MarcoFalke locked this on Sep 8, 2021LabelsMilestone
0.18.0
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me