aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kraft <[email protected]>2019-02-18 12:11:41 +0100
committerDaniel Kraft <[email protected]>2019-02-18 12:11:41 +0100
commit39e20fc54ff1b57d6e046fc1215e2c2f7f89a97e (patch)
tree9f7ce8b52f7acf14b6bdb739100cad7010d46445
parentMerge #15250: Use RdSeed when available, and reduce RdRand load (diff)
downloaddiscoin-39e20fc54ff1b57d6e046fc1215e2c2f7f89a97e.tar.xz
discoin-39e20fc54ff1b57d6e046fc1215e2c2f7f89a97e.zip
Add missing #include.
bd0dbe8763fc3029cf96531c9ccaba280b939445 introduced a dependency of rpc/util.h on RPCErrorCode, defined in rpc/protocol.h. The latter file is only included from rpc/util.cpp, though. This commit fixes the missing include, by moving the #include of rpc/protocol.h to rpc/util.h.
-rw-r--r--src/rpc/util.cpp1
-rw-r--r--src/rpc/util.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp
index 023b4b674..1eec916ab 100644
--- a/src/rpc/util.cpp
+++ b/src/rpc/util.cpp
@@ -5,7 +5,6 @@
#include <key_io.h>
#include <keystore.h>
#include <policy/fees.h>
-#include <rpc/protocol.h>
#include <rpc/util.h>
#include <tinyformat.h>
#include <util/strencodings.h>
diff --git a/src/rpc/util.h b/src/rpc/util.h
index 1c9ddcdf4..a83ae98b7 100644
--- a/src/rpc/util.h
+++ b/src/rpc/util.h
@@ -7,6 +7,7 @@
#include <node/transaction.h>
#include <pubkey.h>
+#include <rpc/protocol.h>
#include <script/standard.h>
#include <univalue.h>