Skip to content

Commit 55696a0

Browse files
committed
wallet: remove mempool_sequence from transactionRemovedFromMempool
1 parent bf19069 commit 55696a0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/interfaces/chain.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class Chain
269269
public:
270270
virtual ~Notifications() {}
271271
virtual void transactionAddedToMempool(const CTransactionRef& tx) {}
272-
virtual void transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) {}
272+
virtual void transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason) {}
273273
virtual void blockConnected(const BlockInfo& block) {}
274274
virtual void blockDisconnected(const BlockInfo& block) {}
275275
virtual void updatedBlockTip() {}

src/node/interfaces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class NotificationsProxy : public CValidationInterface
424424
}
425425
void TransactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) override
426426
{
427-
m_notifications->transactionRemovedFromMempool(tx, reason, mempool_sequence);
427+
m_notifications->transactionRemovedFromMempool(tx, reason);
428428
}
429429
void BlockConnected(const std::shared_ptr<const CBlock>& block, const CBlockIndex* index) override
430430
{

src/wallet/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ void CWallet::transactionAddedToMempool(const CTransactionRef& tx) {
13651365
}
13661366
}
13671367

1368-
void CWallet::transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) {
1368+
void CWallet::transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason) {
13691369
LOCK(cs_wallet);
13701370
auto it = mapWallet.find(tx->GetHash());
13711371
if (it != mapWallet.end()) {
@@ -1411,7 +1411,7 @@ void CWallet::blockConnected(const interfaces::BlockInfo& block)
14111411
m_last_block_processed = block.hash;
14121412
for (size_t index = 0; index < block.data->vtx.size(); index++) {
14131413
SyncTransaction(block.data->vtx[index], TxStateConfirmed{block.hash, block.height, static_cast<int>(index)});
1414-
transactionRemovedFromMempool(block.data->vtx[index], MemPoolRemovalReason::BLOCK, /*mempool_sequence=*/0);
1414+
transactionRemovedFromMempool(block.data->vtx[index], MemPoolRemovalReason::BLOCK);
14151415
}
14161416
}
14171417

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
538538
uint256 last_failed_block;
539539
};
540540
ScanResult ScanForWalletTransactions(const uint256& start_block, int start_height, std::optional<int> max_height, const WalletRescanReserver& reserver, bool fUpdate, const bool save_progress);
541-
void transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) override;
541+
void transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason) override;
542542
/** Set the next time this wallet should resend transactions to 12-36 hours from now, ~1 day on average. */
543543
void SetNextResend() { m_next_resend = GetDefaultNextResend(); }
544544
/** Return true if all conditions for periodically resending transactions are met. */

0 commit comments

Comments
 (0)