From 37a79a4fccbf6cd65a933594e24e59d36e674653 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Thu, 6 Jun 2019 22:52:24 +0200 Subject: [PATCH] Move various SigningProviders to signingprovider.{cpp,h} Moves all of the various SigningProviders out of sign.{cpp,h} and keystore.{cpp,h}. As such, keystore.{cpp,h} is also removed. Includes and the Makefile are updated to reflect this. Includes were largely changed using: git grep -l "keystore.h" | xargs sed -i -e 's;keystore.h;script/signingprovider.h;g' --- src/Makefile.am | 4 +- src/bench/ccoins_caching.cpp | 2 +- src/bitcoin-tx.cpp | 2 +- src/keystore.h | 57 ---------- src/outputtype.cpp | 4 +- src/outputtype.h | 2 +- src/psbt.h | 1 + src/rpc/rawtransaction.cpp | 2 +- src/rpc/rawtransaction_util.cpp | 3 +- src/rpc/util.cpp | 2 +- src/script/descriptor.h | 1 + src/script/sign.cpp | 60 +---------- src/script/sign.h | 46 +------- .../signingprovider.cpp} | 68 +++++++++++- src/script/signingprovider.h | 101 ++++++++++++++++++ src/script/standard.cpp | 1 - src/test/denialofservice_tests.cpp | 3 +- src/test/multisig_tests.cpp | 2 +- src/test/script_p2sh_tests.cpp | 2 +- src/test/script_standard_tests.cpp | 2 +- src/test/script_tests.cpp | 2 +- src/test/transaction_tests.cpp | 2 +- src/test/txvalidationcache_tests.cpp | 2 +- src/wallet/crypter.h | 4 +- src/wallet/ismine.cpp | 1 + src/wallet/wallet.cpp | 2 +- 26 files changed, 194 insertions(+), 184 deletions(-) delete mode 100644 src/keystore.h rename src/{keystore.cpp => script/signingprovider.cpp} (72%) create mode 100644 src/script/signingprovider.h diff --git a/src/Makefile.am b/src/Makefile.am index 30058d9541a..c2174e9a0b7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -143,7 +143,6 @@ BITCOIN_CORE_H = \ interfaces/wallet.h \ key.h \ key_io.h \ - keystore.h \ dbwrapper.h \ limitedmap.h \ logging.h \ @@ -184,6 +183,7 @@ BITCOIN_CORE_H = \ script/keyorigin.h \ script/sigcache.h \ script/sign.h \ + script/signingprovider.h \ script/standard.h \ shutdown.h \ streams.h \ @@ -447,7 +447,6 @@ libbitcoin_common_a_SOURCES = \ core_write.cpp \ key.cpp \ key_io.cpp \ - keystore.cpp \ merkleblock.cpp \ netaddress.cpp \ netbase.cpp \ @@ -461,6 +460,7 @@ libbitcoin_common_a_SOURCES = \ scheduler.cpp \ script/descriptor.cpp \ script/sign.cpp \ + script/signingprovider.cpp \ script/standard.cpp \ versionbitsinfo.cpp \ warnings.cpp \ diff --git a/src/bench/ccoins_caching.cpp b/src/bench/ccoins_caching.cpp index 57a8e164cb4..39cab092cf6 100644 --- a/src/bench/ccoins_caching.cpp +++ b/src/bench/ccoins_caching.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include