From 6702048f91089d7a565e5ca5f7c8dcd2ca405a85 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 7 Oct 2019 14:11:34 -0400 Subject: MOVEONLY: Move key handling code out of wallet to keyman file Start moving wallet and ismine code to scriptpubkeyman.h, scriptpubkeyman.cpp The easiest way to review this commit is to run: git log -p -n1 --color-moved=dimmed_zebra And check that everything is a move (other than includes and copyrights comments). This commit is move-only and doesn't change code or affect behavior. --- src/wallet/init.cpp | 1 + src/wallet/ismine.cpp | 192 ------ src/wallet/scriptpubkeyman.cpp | 1262 ++++++++++++++++++++++++++++++++++++++++ src/wallet/scriptpubkeyman.h | 115 ++++ src/wallet/wallet.cpp | 1087 +--------------------------------- src/wallet/wallet.h | 95 --- src/wallet/walletdb.cpp | 1 + 7 files changed, 1389 insertions(+), 1364 deletions(-) delete mode 100644 src/wallet/ismine.cpp create mode 100644 src/wallet/scriptpubkeyman.cpp create mode 100644 src/wallet/scriptpubkeyman.h (limited to 'src/wallet') diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp index 3657a157b6..c622318894 100644 --- a/src/wallet/init.cpp +++ b/src/wallet/init.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/src/wallet/ismine.cpp b/src/wallet/ismine.cpp deleted file mode 100644 index 029b922785..0000000000 --- a/src/wallet/ismine.cpp +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2018 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