mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-28 16:36:04 +01:00
Merge #9499: Use recent-rejects, orphans, and recently-replaced txn for compact-block-reconstruction
c594580Add braces around AddToCompactExtraTransactions (Matt Corallo)1ccfe9bClarify comment about mempool/extra conflicts (Matt Corallo)fac4c78Make PartiallyDownloadedBlock::InitData's second param const (Matt Corallo)b55b416Add extra_count lower bound to compact reconstruction debug print (Matt Corallo)863edb4Consider all (<100k memusage) txn for compact-block-extra-txn cache (Matt Corallo)7f8c8caConsider all orphan txn for compact-block-extra-txn cache (Matt Corallo)93380c5Use replaced transactions in compact block reconstruction (Matt Corallo)1531652Keep shared_ptrs to recently-replaced txn for compact blocks (Matt Corallo)edded80Make ATMP optionally return the CTransactionRefs it replaced (Matt Corallo)c735540Move ORPHAN constants from validation.h to net_processing.h (Matt Corallo)
This commit is contained in:
@@ -903,7 +903,7 @@ UniValue sendrawtransaction(const JSONRPCRequest& request)
|
||||
// push to local node and sync with wallets
|
||||
CValidationState state;
|
||||
bool fMissingInputs;
|
||||
if (!AcceptToMemoryPool(mempool, state, std::move(tx), fLimitFree, &fMissingInputs, false, nMaxRawTxFee)) {
|
||||
if (!AcceptToMemoryPool(mempool, state, std::move(tx), fLimitFree, &fMissingInputs, NULL, false, nMaxRawTxFee)) {
|
||||
if (state.IsInvalid()) {
|
||||
throw JSONRPCError(RPC_TRANSACTION_REJECTED, strprintf("%i: %s", state.GetRejectCode(), state.GetRejectReason()));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user