Skip to content

Commit 755ce03

Browse files
committed
f fix handle_tx_* comments
1 parent 40efeac commit 755ce03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11645,7 +11645,7 @@ where
1164511645

1164611646
fn handle_tx_add_output(&self, counterparty_node_id: PublicKey, msg: &msgs::TxAddOutput) {
1164711647
// Note that we never need to persist the updated ChannelManager for an inbound
11648-
// tx_add_input message - interactive transaction construction does not need to
11648+
// tx_add_output message - interactive transaction construction does not need to
1164911649
// be persisted before any signatures are exchanged.
1165011650
let _persistence_guard = PersistenceNotifierGuard::optionally_notify(self, || {
1165111651
let _ = handle_error!(self, self.internal_tx_add_output(counterparty_node_id, msg), counterparty_node_id);
@@ -11655,7 +11655,7 @@ where
1165511655

1165611656
fn handle_tx_remove_input(&self, counterparty_node_id: PublicKey, msg: &msgs::TxRemoveInput) {
1165711657
// Note that we never need to persist the updated ChannelManager for an inbound
11658-
// tx_add_input message - interactive transaction construction does not need to
11658+
// tx_remove_input message - interactive transaction construction does not need to
1165911659
// be persisted before any signatures are exchanged.
1166011660
let _persistence_guard = PersistenceNotifierGuard::optionally_notify(self, || {
1166111661
let _ = handle_error!(self, self.internal_tx_remove_input(counterparty_node_id, msg), counterparty_node_id);
@@ -11665,7 +11665,7 @@ where
1166511665

1166611666
fn handle_tx_remove_output(&self, counterparty_node_id: PublicKey, msg: &msgs::TxRemoveOutput) {
1166711667
// Note that we never need to persist the updated ChannelManager for an inbound
11668-
// tx_add_input message - interactive transaction construction does not need to
11668+
// tx_remove_output message - interactive transaction construction does not need to
1166911669
// be persisted before any signatures are exchanged.
1167011670
let _persistence_guard = PersistenceNotifierGuard::optionally_notify(self, || {
1167111671
let _ = handle_error!(self, self.internal_tx_remove_output(counterparty_node_id, msg), counterparty_node_id);
@@ -11675,7 +11675,7 @@ where
1167511675

1167611676
fn handle_tx_complete(&self, counterparty_node_id: PublicKey, msg: &msgs::TxComplete) {
1167711677
// Note that we never need to persist the updated ChannelManager for an inbound
11678-
// tx_add_input message - interactive transaction construction does not need to
11678+
// tx_complete message - interactive transaction construction does not need to
1167911679
// be persisted before any signatures are exchanged.
1168011680
let _persistence_guard = PersistenceNotifierGuard::optionally_notify(self, || {
1168111681
let _ = handle_error!(self, self.internal_tx_complete(counterparty_node_id, msg), counterparty_node_id);

0 commit comments

Comments
 (0)