aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/util.cpp
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-02-11 23:03:19 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-02-13 12:57:37 +0100
commit7f1475c7119e8c72bce39a63386a6ca859066b80 (patch)
tree0dfe1308be504d573733e6e185416150edcb44c0 /src/rpc/util.cpp
parent98264e2ccb177a6603fe957f7e263fb413b50d04 (diff)
downloadbitcoin-7f1475c7119e8c72bce39a63386a6ca859066b80.tar.xz
rpc: update validateaddress RPCExamples to bech32
also contains the following changes: - rpc: factor out example bech32 address for RPCExamples - doc: update developer notes wrt RPCExamples addresses (mention the EXAMPLE_ADDRESS constant as an example for an invalid bech32 address suitable for RPCExamples help documentation)
Diffstat (limited to 'src/rpc/util.cpp')
-rw-r--r--src/rpc/util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp
index 78586c22f9..7cefb2db96 100644
--- a/src/rpc/util.cpp
+++ b/src/rpc/util.cpp
@@ -14,6 +14,7 @@
#include <tuple>
const std::string UNIX_EPOCH_TIME = "UNIX epoch time";
+const std::string EXAMPLE_ADDRESS = "\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\"";
void RPCTypeCheck(const UniValue& params,
const std::list<UniValueType>& typesExpected,