CValidationState framework
This commit is contained in:
committed by
Pieter Wuille
parent
2835080e16
commit
ef3988ca36
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user