From 9a44db2e46af2b73e0dbaa929244161b18c15162 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Mon, 9 Jul 2018 18:15:50 +1000 Subject: [PATCH 1/4] Add outputtype module Moves OutputType into its own module --- src/Makefile.am | 2 ++ src/outputtype.cpp | 76 ++++++++++++++++++++++++++++++++++++++++ src/outputtype.h | 41 ++++++++++++++++++++++ src/wallet/init.cpp | 1 + src/wallet/rpcwallet.cpp | 1 + src/wallet/wallet.cpp | 60 ------------------------------- src/wallet/wallet.h | 27 +------------- 7 files changed, 122 insertions(+), 86 deletions(-) create mode 100644 src/outputtype.cpp create mode 100644 src/outputtype.h diff --git a/src/Makefile.am b/src/Makefile.am index 2866591e5..f058a9f44 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -135,6 +135,7 @@ BITCOIN_CORE_H = \ netbase.h \ netmessagemaker.h \ noui.h \ + outputtype.h \ policy/feerate.h \ policy/fees.h \ policy/policy.h \ @@ -265,6 +266,7 @@ libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) libbitcoin_wallet_a_SOURCES = \ interfaces/wallet.cpp \ + outputtype.cpp \ wallet/crypter.cpp \ wallet/db.cpp \ wallet/feebumper.cpp \ diff --git a/src/outputtype.cpp b/src/outputtype.cpp new file mode 100644 index 000000000..025d8a96f --- /dev/null +++ b/src/outputtype.cpp @@ -0,0 +1,76 @@ +// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2017 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include + +#include +#include +#include