Clean-up SyncWithWallets/SyncTransaction
This commit is contained in:
@@ -738,9 +738,7 @@ Value sendrawtransaction(const Array& params, bool fHelp)
|
||||
if (!fHaveMempool && !fHaveChain) {
|
||||
// push to local node and sync with wallets
|
||||
CValidationState state;
|
||||
if (AcceptToMemoryPool(mempool, state, tx, false, NULL, !fOverrideFees))
|
||||
SyncWithWallets(tx, NULL);
|
||||
else {
|
||||
if (!AcceptToMemoryPool(mempool, state, tx, false, NULL, !fOverrideFees)) {
|
||||
if(state.IsInvalid())
|
||||
throw JSONRPCError(RPC_TRANSACTION_REJECTED, strprintf("%i: %s", state.GetRejectCode(), state.GetRejectReason()));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user