From 7f1475c7119e8c72bce39a63386a6ca859066b80 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Tue, 11 Feb 2020 23:03:19 +0100 Subject: 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) --- src/rpc/util.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rpc/util.cpp') 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 const std::string UNIX_EPOCH_TIME = "UNIX epoch time"; +const std::string EXAMPLE_ADDRESS = "\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\""; void RPCTypeCheck(const UniValue& params, const std::list& typesExpected, -- cgit v1.2.3