aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/rawtransaction_util.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-02-10 19:19:59 -0500
committerAndrew Chow <achow101-github@achow101.com>2020-03-08 12:26:27 -0400
commit2c52b59d0a44a86d94fee4e437978d822862c542 (patch)
treea878b9ed1aec863695990b863868417b27c4e955 /src/rpc/rawtransaction_util.h
parent5e12a61044b15e4e29ac786135a9ebb72d1bfc61 (diff)
downloadbitcoin-2c52b59d0a44a86d94fee4e437978d822862c542.tar.xz
Refactor rawtransaction's SignTransaction into generic SignTransaction function
Diffstat (limited to 'src/rpc/rawtransaction_util.h')
-rw-r--r--src/rpc/rawtransaction_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/rawtransaction_util.h b/src/rpc/rawtransaction_util.h
index 4750fd64ed..436db5dc60 100644
--- a/src/rpc/rawtransaction_util.h
+++ b/src/rpc/rawtransaction_util.h
@@ -6,6 +6,7 @@
#define BITCOIN_RPC_RAWTRANSACTION_UTIL_H
#include <map>
+#include <string>
class FillableSigningProvider;
class UniValue;
@@ -24,6 +25,7 @@ class SigningProvider;
* @param result JSON object where signed transaction results accumulate
*/
void SignTransaction(CMutableTransaction& mtx, const SigningProvider* keystore, const std::map<COutPoint, Coin>& coins, const UniValue& hashType, UniValue& result);
+void SignTransactionResultToJSON(CMutableTransaction& mtx, bool complete, const std::map<COutPoint, Coin>& coins, std::map<int, std::string>& input_errors, UniValue& result);
/**
* Parse a prevtxs UniValue array and get the map of coins from it