@ -430,8 +430,9 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
return state . DoS ( 0 , false , REJECT_NONSTANDARD , " non-final " ) ;
// is it already in the memory pool?
if ( pool . exists ( hash ) )
return state . Invalid ( false , REJECT_ALREADY_KNOWN , " txn-already-in-mempool " ) ;
if ( pool . exists ( hash ) ) {
return state . Invalid ( false , REJECT_DUPLICATE , " txn-already-in-mempool " ) ;
}
// Check for conflicts with in-memory transactions
std : : set < uint256 > setConflicts ;
@ -469,8 +470,9 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
}
}
}
if ( fReplacementOptOut )
return state . Invalid ( false , REJECT_CONFLICT , " txn-mempool-conflict " ) ;
if ( fReplacementOptOut ) {
return state . Invalid ( false , REJECT_DUPLICATE , " txn-mempool-conflict " ) ;
}
setConflicts . insert ( ptxConflicting - > GetHash ( ) ) ;
}
@ -497,7 +499,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
if ( ! had_coin_in_cache ) {
coins_to_uncache . push_back ( outpoint ) ;
}
return state . Invalid ( false , REJECT_ ALREADY_KNOWN , " txn-already-known " ) ;
return state . Invalid ( false , REJECT_ DUPLICATE , " txn-already-known " ) ;
}
}