Refactor: CTxMempool class to its own txmempool.{cpp,h}
This commit is contained in:
@@ -550,7 +550,7 @@ Value sendrawtransaction(const Array& params, bool fHelp)
|
||||
if (!fHave) {
|
||||
// push to local node
|
||||
CValidationState state;
|
||||
if (!mempool.accept(state, tx, false, NULL, !fOverrideFees))
|
||||
if (!AcceptToMemoryPool(mempool, state, tx, false, NULL, !fOverrideFees))
|
||||
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX rejected"); // TODO: report validation state
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user