You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0ea84bc test: explicitly check boolean verbosity is disallowed (tdb3)
7a2e6b6 doc: add rpc guidance for boolean verbosity avoidance (tdb3)
698f302 rpc: disallow boolean verbosity in getorphantxs (tdb3)
63f5e6e test: add entry and expiration time checks (tdb3)
808a708 rpc: add entry time to getorphantxs (tdb3)
56bf302 refactor: rename rpc_getorphantxs to rpc_orphans (tdb3)
7824f6b test: check that getorphantxs is hidden (tdb3)
ac68fcc rpc: disallow undefined verbosity in getorphantxs (tdb3)
Pull request description:
Implements follow-up suggestions from #30793.
- Now disallows undefined verbosity levels (below and above valid values) (bitcoin/bitcoin#30793 (comment))
- Disallows boolean verbosity (bitcoin/bitcoin#30793 (comment)) and adds guidance to developer-notes
- Checks that `getorphantxs` is a hidden rpc (bitcoin/bitcoin#30793 (comment))
- Adds a test for `expiration` time
- Adds `entry` time to the returned orphan objects (verbosity >=1) to relieve the user from having to calculate it from `expiration`. Also adds associated test. (bitcoin/bitcoin#30793 (comment))
- Minor cleanup (blank line removal and log message move) (bitcoin/bitcoin#30793 (comment))
Included a commit to rename the test to a more generic `get_orphans` to better accommodate future orphanage-related RPCs (e.g. `getorphanangeinfo`). Can drop the refactor commit from this PR if people feel strongly about it.
ACKs for top commit:
achow101:
ACK 0ea84bc
glozow:
utACK 0ea84bc
rkrux:
tACK 0ea84bc
itornaza:
tACK 0ea84bc
Tree-SHA512: e48a088f333ebde132923072da58e970461e74362d0acebbc799c3043d5727cdf5f28e82b43cb38bbed27c603df6710695dba91ff0695e623ad168e985dce08e
RPCResult{RPCResult::Type::NUM, "bytes", "The serialized transaction size in bytes"},
824
824
RPCResult{RPCResult::Type::NUM, "vsize", "The virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted."},
825
825
RPCResult{RPCResult::Type::NUM, "weight", "The transaction weight as defined in BIP 141."},
826
+
RPCResult{RPCResult::Type::NUM_TIME, "entry", "The entry time into the orphanage expressed in " + UNIX_EPOCH_TIME},
826
827
RPCResult{RPCResult::Type::NUM_TIME, "expiration", "The orphan expiration time expressed in " + UNIX_EPOCH_TIME},
"\nEXPERIMENTAL warning: this call may be changed in future releases.\n",
854
856
{
855
-
{"verbosity|verbose", RPCArg::Type::NUM, RPCArg::Default{0}, "0 for an array of txids (may contain duplicates), 1 for an array of objects with tx details, and 2 for details from (1) and tx hex",
857
+
{"verbosity", RPCArg::Type::NUM, RPCArg::Default{0}, "0 for an array of txids (may contain duplicates), 1 for an array of objects with tx details, and 2 for details from (1) and tx hex",
0 commit comments