mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
Duplicate transactions are not permitted within a changeset
This commit is contained in:
parent
b447416fdd
commit
b53041021a
1 changed files with 1 additions and 0 deletions
|
@ -1411,6 +1411,7 @@ util::Result<std::pair<std::vector<FeeFrac>, std::vector<FeeFrac>>> CTxMemPool::
|
|||
|
||||
CTxMemPool::ChangeSet::TxHandle CTxMemPool::ChangeSet::StageAddition(const CTransactionRef& tx, const CAmount fee, int64_t time, unsigned int entry_height, uint64_t entry_sequence, bool spends_coinbase, int64_t sigops_cost, LockPoints lp)
|
||||
{
|
||||
Assume(m_to_add.find(tx->GetHash()) == m_to_add.end());
|
||||
auto newit = m_to_add.emplace(tx, fee, time, entry_height, entry_sequence, spends_coinbase, sigops_cost, lp).first;
|
||||
m_entry_vec.push_back(newit);
|
||||
return newit;
|
||||
|
|
Loading…
Reference in a new issue