Skip to content

Commit

Permalink
Merge bitcoin#15435: rpc: Add missing #include
Browse files Browse the repository at this point in the history
39e20fc Add missing #include. (Daniel Kraft)

Pull request description:

  bd0dbe8 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
  • Loading branch information
MarcoFalke authored and PastaPastaPasta committed Aug 16, 2021
1 parent 2436474 commit 4c01430
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/rpc/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <key_io.h>
#include <keystore.h>
#include <pubkey.h>
#include <rpc/protocol.h>
#include <rpc/util.h>
#include <tinyformat.h>
#include <utilstrencodings.h>
Expand Down
1 change: 1 addition & 0 deletions src/rpc/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define BITCOIN_RPC_UTIL_H

#include <pubkey.h>
#include <rpc/protocol.h>
#include <script/standard.h>
#include <univalue.h>
#include <utilstrencodings.h>
Expand Down

0 comments on commit 4c01430

Please sign in to comment.