aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-02-22 14:42:58 -0500
committerMarcoFalke <falke.marco@gmail.com>2019-02-22 14:43:02 -0500
commitf3f9c1de19e6d254e0c3a26ce7a3d8cd57fb7641 (patch)
tree409713c7af13fb66dbaead4a001f39f32d572c9a /src
parent169dced9a42bd741b3265adee23e6a8d1f852227 (diff)
parent39e20fc54ff1b57d6e046fc1215e2c2f7f89a97e (diff)
Merge #15435: rpc: Add missing #include
39e20fc54f Add missing #include. (Daniel Kraft) Pull request description: 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`. Tree-SHA512: 75c03cfadb28a309d6deb36feeb0ee6ce0b38e8a1176919bc611ea720feff8c42ec9ed0ac8ab74ba9c531a3b7ec9ccbed0c8692ebdf5f9fc17867b9750a1d9f6
Diffstat (limited to 'src')
-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 023b4b6746..1eec916abf 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 1c9ddcdf44..a83ae98b7e 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>