Skip to content

Commit 88be9ce

Browse files
jkczyzclaude
andcommitted
f - Rename persist_pending to persist_pending_payment
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b8ca9c4 commit 88be9ce

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/wallet/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ impl Wallet {
300300
if payment_status == PaymentStatus::Pending {
301301
let pending_payment =
302302
self.create_pending_payment_from_tx(payment, Vec::new());
303-
self.persist_pending(pending_payment)?;
303+
self.persist_pending_payment(pending_payment)?;
304304
} else {
305305
self.runtime.block_on(self.payment_store.insert_or_update(payment))?;
306306
}
@@ -398,7 +398,7 @@ impl Wallet {
398398
ConfirmationStatus::Unconfirmed,
399399
);
400400
let pending_payment = self.create_pending_payment_from_tx(payment, Vec::new());
401-
self.persist_pending(pending_payment)?;
401+
self.persist_pending_payment(pending_payment)?;
402402
},
403403
WalletEvent::TxReplaced { txid, conflicts, .. } => {
404404
let Some(payment_id) = self.find_payment_by_txid(txid) else {
@@ -466,7 +466,7 @@ impl Wallet {
466466
ConfirmationStatus::Unconfirmed,
467467
);
468468
let pending_payment = self.create_pending_payment_from_tx(payment, Vec::new());
469-
self.persist_pending(pending_payment)?;
469+
self.persist_pending_payment(pending_payment)?;
470470
},
471471
_ => {
472472
continue;
@@ -1294,7 +1294,7 @@ impl Wallet {
12941294
/// Writes a [`PendingPaymentDetails`] and its inner [`PaymentDetails`] to their
12951295
/// respective stores in a fixed order. Callers that need to keep the two stores in
12961296
/// sync should always go through this.
1297-
fn persist_pending(&self, pending: PendingPaymentDetails) -> Result<(), Error> {
1297+
fn persist_pending_payment(&self, pending: PendingPaymentDetails) -> Result<(), Error> {
12981298
self.runtime.block_on(self.payment_store.insert_or_update(pending.details.clone()))?;
12991299
self.runtime.block_on(self.pending_payment_store.insert_or_update(pending))?;
13001300
Ok(())
@@ -1503,7 +1503,7 @@ impl Wallet {
15031503
pending.details.kind =
15041504
PaymentKind::Onchain { txid: event_txid, status: confirmation_status };
15051505

1506-
self.persist_pending(pending)?;
1506+
self.persist_pending_payment(pending)?;
15071507

15081508
Ok(true)
15091509
}
@@ -1757,7 +1757,7 @@ impl Wallet {
17571757
);
17581758

17591759
let pending_payment = self.create_pending_payment_from_tx(new_payment, Vec::new());
1760-
self.persist_pending(pending_payment)?;
1760+
self.persist_pending_payment(pending_payment)?;
17611761

17621762
log_info!(self.logger, "RBF successful: replaced {} with {}", txid, new_txid);
17631763

@@ -1821,7 +1821,7 @@ impl Wallet {
18211821
let pending =
18221822
PendingPaymentDetails::with_funding_details(details, Vec::new(), funding_details);
18231823

1824-
self.persist_pending(pending)?;
1824+
self.persist_pending_payment(pending)?;
18251825
log_debug!(
18261826
self.logger,
18271827
"Recorded channel-funding broadcast {} for channel {}",
@@ -1904,7 +1904,7 @@ impl Wallet {
19041904
let pending =
19051905
PendingPaymentDetails::with_funding_details(details, Vec::new(), funding_details);
19061906

1907-
self.persist_pending(pending)?;
1907+
self.persist_pending_payment(pending)?;
19081908
log_debug!(
19091909
self.logger,
19101910
"Recorded interactive-funding broadcast {} ({} candidates, {} channels)",

0 commit comments

Comments
 (0)