From 37a79a4fccbf6cd65a933594e24e59d36e674653 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Thu, 6 Jun 2019 22:52:24 +0200 Subject: 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.cpp | 198 -------------------------- 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 +------ src/script/signingprovider.cpp | 260 +++++++++++++++++++++++++++++++++++ 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 +- 27 files changed, 389 insertions(+), 379 deletions(-) delete mode 100644 src/keystore.cpp delete mode 100644 src/keystore.h create mode 100644 src/script/signingprovider.cpp create mode 100644 src/script/signingprovider.h (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 30058d9541..c2174e9a0b 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 57a8e164cb..39cab092cf 100644 --- a/src/bench/ccoins_caching.cpp +++ b/src/bench/ccoins_caching.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include