From fafb68add5e16e8bd5b9428bcffcaee2639747cf Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Sat, 17 Apr 2021 20:59:17 +0200 Subject: [PATCH] refactor: Add and use EnsureConnman in rpc code --- src/Makefile.am | 1 + src/rpc/mining.cpp | 7 ++-- src/rpc/net.cpp | 98 ++++++++++++++++++++++++---------------------- src/rpc/net.h | 15 +++++++ 4 files changed, 70 insertions(+), 51 deletions(-) create mode 100644 src/rpc/net.h diff --git a/src/Makefile.am b/src/Makefile.am index ddeccd85ea..e25e210e1e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -199,6 +199,7 @@ BITCOIN_CORE_H = \ rpc/blockchain.h \ rpc/client.h \ rpc/mining.h \ + rpc/net.h \ rpc/protocol.h \ rpc/rawtransaction_util.h \ rpc/register.h \ diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 0cef310c50..abb5a0b3a1 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include