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
ea107ac Merge bitcoin/bitcoin#23320: rpc: Add RPC help for getblock verbosity level 3 (W. J. van der Laan)
6df2fae Merge bitcoin/bitcoin#23341: RPC: Better safety with newkeypool command and wallet backups (Andrew Chow)
910f4c0 Merge bitcoin/bitcoin#23093: Add ability to flush keypool and always flush when upgrading non-HD to HD (W. J. van der Laan)
cf6e969 Merge bitcoin/bitcoin#22539: Re-include RBF replacement txs in fee estimation (W. J. van der Laan)
5c226da Merge bitcoin/bitcoin#23323: doc: Add note on deleting past-EOL release branches (MarcoFalke)
bf28e85 Merge bitcoin/bitcoin#23287: test: get and decode tx with a single `gettransaction` RPC call (MarcoFalke)
6f46f58 Merge bitcoin/bitcoin#22918: rpc: Add level 3 verbosity to getblock RPC call (#21245 modified) (W. J. van der Laan)
4e8f6af Merge bitcoin/bitcoin#23268: p2p: Use absolute FQDN for DNS seed domains (fanquake)
135d650 Merge bitcoin/bitcoin#23314: build: explicitly disable libsecp256k1 openssl based tests (W. J. van der Laan)
Pull request description:
## What was done?
Just regular backports from Bitcoin Core v23.
## How Has This Been Tested?
Run unit / functional tests
## Breaking Changes
N/A
## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone
ACKs for top commit:
UdjinM6:
utACK ea107ac
Tree-SHA512: df36fc867d533366c7f46903e018048fc9f64ef01960e1d2338195f00203fe6a9c5ac9bd13120b949015846d10cf4969853990b6c6023fbf6f4c19e716747889
"\nIf verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\n"
874
880
"If verbosity is 1, returns an Object with information about block <hash>.\n"
875
-
"If verbosity is 2, returns an Object with information about block <hash> and information about each transaction. \n",
881
+
"If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\n"
882
+
"If verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).\n",
876
883
{
877
884
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash"},
878
-
{"verbosity|verbose", RPCArg::Type::NUM, RPCArg::Default{1}, "0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data"},
885
+
{"verbosity|verbose", RPCArg::Type::NUM, RPCArg::Default{1}, "0 for hex-encoded data, 1 for a JSON object, 2 for JSON object with transaction data, and 3 for JSON object with transaction data including prevout information for inputs"},
879
886
},
880
887
{
881
888
RPCResult{"for verbosity = 0",
@@ -923,6 +930,37 @@ static RPCHelpMan getblock()
923
930
}},
924
931
}},
925
932
}},
933
+
RPCResult{"for verbosity = 3",
934
+
RPCResult::Type::OBJ, "", "",
935
+
{
936
+
{RPCResult::Type::ELISION, "", "Same output as verbosity = 2"},
937
+
{RPCResult::Type::ARR, "tx", "",
938
+
{
939
+
{RPCResult::Type::OBJ, "", "",
940
+
{
941
+
{RPCResult::Type::ARR, "vin", "",
942
+
{
943
+
{RPCResult::Type::OBJ, "", "",
944
+
{
945
+
{RPCResult::Type::ELISION, "", "The same output as verbosity = 2"},
946
+
{RPCResult::Type::OBJ, "prevout", "(Only if undo information is available)",
947
+
{
948
+
{RPCResult::Type::BOOL, "generated", "Coinbase or not"},
949
+
{RPCResult::Type::NUM, "height", "The height of the prevout"},
950
+
{RPCResult::Type::NUM, "value", "The value in " + CURRENCY_UNIT},
951
+
{RPCResult::Type::OBJ, "scriptPubKey", "",
952
+
{
953
+
{RPCResult::Type::STR, "asm", "The asm"},
954
+
{RPCResult::Type::STR, "hex", "The hex"},
955
+
{RPCResult::Type::STR, "address", /*optional=*/true, "The Dash address (only if a well-defined address exists)"},
956
+
{RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
0 commit comments