aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/util.h
diff options
context:
space:
mode:
authorSebastian Falbesoner <[email protected]>2020-02-11 23:03:19 +0100
committerSebastian Falbesoner <[email protected]>2020-02-13 12:57:37 +0100
commit7f1475c7119e8c72bce39a63386a6ca859066b80 (patch)
tree0dfe1308be504d573733e6e185416150edcb44c0 /src/rpc/util.h
parentMerge #18104: build: Skip i686 build by default in guix and gitian (diff)
downloaddiscoin-7f1475c7119e8c72bce39a63386a6ca859066b80.tar.xz
discoin-7f1475c7119e8c72bce39a63386a6ca859066b80.zip
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.h')
-rw-r--r--src/rpc/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h
index 065a992a8..f5edf6971 100644
--- a/src/rpc/util.h
+++ b/src/rpc/util.h
@@ -28,6 +28,12 @@
*/
extern const std::string UNIX_EPOCH_TIME;
+/**
+ * Example bech32 address used in multiple RPCExamples. The address is intentionally
+ * invalid to prevent accidental transactions by users.
+ */
+extern const std::string EXAMPLE_ADDRESS;
+
class FillableSigningProvider;
class CPubKey;
class CScript;