Skip to content

Commit 511d194

Browse files
jkczyzclaude
andcommitted
f - Rename persist_pending to persist_pending_payment
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7b7647b commit 511d194

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
@@ -295,7 +295,7 @@ impl Wallet {
295295
if payment_status == PaymentStatus::Pending {
296296
let pending_payment =
297297
self.create_pending_payment_from_tx(payment, Vec::new());
298-
self.persist_pending(pending_payment)?;
298+
self.persist_pending_payment(pending_payment)?;
299299
} else {
300300
self.payment_store.insert_or_update(payment)?;
301301
}
@@ -390,7 +390,7 @@ impl Wallet {
390390
ConfirmationStatus::Unconfirmed,
391391
);
392392
let pending_payment = self.create_pending_payment_from_tx(payment, Vec::new());
393-
self.persist_pending(pending_payment)?;
393+
self.persist_pending_payment(pending_payment)?;
394394
},
395395
WalletEvent::TxReplaced { txid, conflicts, .. } => {
396396
let Some(payment_id) = self.find_payment_by_txid(txid) else {
@@ -456,7 +456,7 @@ impl Wallet {
456456
ConfirmationStatus::Unconfirmed,
457457
);
458458
let pending_payment = self.create_pending_payment_from_tx(payment, Vec::new());
459-
self.persist_pending(pending_payment)?;
459+
self.persist_pending_payment(pending_payment)?;
460460
},
461461
_ => {
462462
continue;
@@ -1280,7 +1280,7 @@ impl Wallet {
12801280
/// Writes a [`PendingPaymentDetails`] and its inner [`PaymentDetails`] to their
12811281
/// respective stores in a fixed order. Callers that need to keep the two stores in
12821282
/// sync should always go through this.
1283-
fn persist_pending(&self, pending: PendingPaymentDetails) -> Result<(), Error> {
1283+
fn persist_pending_payment(&self, pending: PendingPaymentDetails) -> Result<(), Error> {
12841284
self.payment_store.insert_or_update(pending.details.clone())?;
12851285
self.pending_payment_store.insert_or_update(pending)?;
12861286
Ok(())
@@ -1489,7 +1489,7 @@ impl Wallet {
14891489
pending.details.kind =
14901490
PaymentKind::Onchain { txid: event_txid, status: confirmation_status };
14911491

1492-
self.persist_pending(pending)?;
1492+
self.persist_pending_payment(pending)?;
14931493

14941494
Ok(true)
14951495
}
@@ -1743,7 +1743,7 @@ impl Wallet {
17431743
);
17441744

17451745
let pending_payment = self.create_pending_payment_from_tx(new_payment, Vec::new());
1746-
self.persist_pending(pending_payment)?;
1746+
self.persist_pending_payment(pending_payment)?;
17471747

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

@@ -1807,7 +1807,7 @@ impl Wallet {
18071807
let pending =
18081808
PendingPaymentDetails::with_funding_details(details, Vec::new(), funding_details);
18091809

1810-
self.persist_pending(pending)?;
1810+
self.persist_pending_payment(pending)?;
18111811
log_debug!(
18121812
self.logger,
18131813
"Recorded channel-funding broadcast {} for channel {}",
@@ -1890,7 +1890,7 @@ impl Wallet {
18901890
let pending =
18911891
PendingPaymentDetails::with_funding_details(details, Vec::new(), funding_details);
18921892

1893-
self.persist_pending(pending)?;
1893+
self.persist_pending_payment(pending)?;
18941894
log_debug!(
18951895
self.logger,
18961896
"Recorded interactive-funding broadcast {} ({} candidates, {} channels)",

0 commit comments

Comments
 (0)