Skip to content

Commit

Permalink
Merge #11738: Fix sendrawtransaction hang when sending a tx already i…
Browse files Browse the repository at this point in the history
…n mempool

d9340ce Fix sendrawtransaction hang when sending a tx already in mempool (Matt Corallo)

Pull request description:

  I assume this is what #11721 actually hit.

Tree-SHA512: 1da4088bbda64c5527233de9ec4d03f9e0c1eacddb2ed3deab3cb99eac0293ee6fb846830f97b5e10e230307b6d7fd18013043173aa4f27ef171d9da626e2c88
  • Loading branch information
laanwj committed Nov 21, 2017
2 parents 901ba3e + d9340ce commit d4267a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rpc/rawtransaction.cpp
Expand Up @@ -970,6 +970,10 @@ UniValue sendrawtransaction(const JSONRPCRequest& request)
}
} else if (fHaveChain) {
throw JSONRPCError(RPC_TRANSACTION_ALREADY_IN_CHAIN, "transaction already in block chain");
} else {
// Make sure we don't block forever if re-sending
// a transaction already in mempool.
promise.set_value();
}

} // cs_main
Expand Down

0 comments on commit d4267a3

Please sign in to comment.