aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKiminuo <kiminuo@protonmail.com>2022-02-14 14:33:55 +0100
committerKiminuo <kiminuo@protonmail.com>2022-02-21 12:56:43 +0100
commitc821ab8be8dffb749853c05e05cb515c11e6328a (patch)
treed27e8eb25d2c2fff29720556a8f7eda15fd854c1 /src
parentd970a85d335202cc85f6604f794c43af6645673f (diff)
Use `GetAllOutputTypes` in `getblock` RPC function
Diffstat (limited to 'src')
-rw-r--r--src/rpc/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 69204e346a..f18b800e23 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -1037,7 +1037,7 @@ static RPCHelpMan getblock()
{RPCResult::Type::STR, "asm", "The asm"},
{RPCResult::Type::STR, "hex", "The hex"},
{RPCResult::Type::STR, "address", /* optional */ true, "The Bitcoin address (only if a well-defined address exists)"},
- {RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
+ {RPCResult::Type::STR, "type", "The type (one of: " + GetAllOutputTypes() + ")"},
}},
}},
}},