aboutsummaryrefslogtreecommitdiff
path: root/src/rpcrawtransaction.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2013-01-27 00:14:11 +0100
committerPieter Wuille <[email protected]>2013-01-30 03:56:44 +0100
commitef3988ca369900206b0cfc32cc1958aee0e43710 (patch)
tree9cd1ecf802bd159238ece0954200b98a45d01bf3 /src/rpcrawtransaction.cpp
parentMerge pull request #2231 from sipa/cleanups (diff)
downloaddiscoin-ef3988ca369900206b0cfc32cc1958aee0e43710.tar.xz
discoin-ef3988ca369900206b0cfc32cc1958aee0e43710.zip
CValidationState framework
Diffstat (limited to 'src/rpcrawtransaction.cpp')
-rw-r--r--src/rpcrawtransaction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp
index 8d89c2f30..5224051ac 100644
--- a/src/rpcrawtransaction.cpp
+++ b/src/rpcrawtransaction.cpp
@@ -546,8 +546,9 @@ Value sendrawtransaction(const Array& params, bool fHelp)
fHave = view.GetCoins(hashTx, existingCoins);
if (!fHave) {
// push to local node
- if (!tx.AcceptToMemoryPool(true, false))
- throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX rejected");
+ CValidationState state;
+ if (!tx.AcceptToMemoryPool(state, true, false))
+ throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX rejected"); // TODO: report validation state
}
}
if (fHave) {