Skip to content

Commit 40dc923

Browse files
committed
try all tests data check [dev]
1 parent 3411252 commit 40dc923

File tree

2 files changed

+163
-176
lines changed

2 files changed

+163
-176
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,11 @@ impl Writeable for ChannelMonitorUpdate {
159159
for update_step in self.updates.iter() {
160160
update_step.write(w)?;
161161
}
162-
#[cfg(feature = "safe_channels")]
163162
write_tlv_fields!(w, {
164163
// 1 was previously used to store `counterparty_node_id`
165164
(3, self.channel_id, option),
166165
(5, self.encoded_channel, option)
167166
});
168-
#[cfg(not(feature = "safe_channels"))]
169-
write_tlv_fields!(w, {
170-
// 1 was previously used to store `counterparty_node_id`
171-
(3, self.channel_id, option),
172-
});
173167
Ok(())
174168
}
175169
}
@@ -1750,7 +1744,6 @@ pub(crate) fn write_chanmon_internal<Signer: EcdsaChannelSigner, W: Writer>(
17501744
_ => channel_monitor.pending_monitor_events.clone(),
17511745
};
17521746

1753-
#[cfg(feature = "safe_channels")]
17541747
write_tlv_fields!(writer, {
17551748
(1, channel_monitor.funding_spend_confirmed, option),
17561749
(3, channel_monitor.htlcs_resolved_on_chain, required_vec),
@@ -1775,30 +1768,6 @@ pub(crate) fn write_chanmon_internal<Signer: EcdsaChannelSigner, W: Writer>(
17751768
(37, channel_monitor.funding_seen_onchain, required),
17761769
(39, channel_monitor.encoded_channel, option),
17771770
});
1778-
#[cfg(not(feature = "safe_channels"))]
1779-
write_tlv_fields!(writer, {
1780-
(1, channel_monitor.funding_spend_confirmed, option),
1781-
(3, channel_monitor.htlcs_resolved_on_chain, required_vec),
1782-
(5, pending_monitor_events, required_vec),
1783-
(7, channel_monitor.funding_spend_seen, required),
1784-
(9, channel_monitor.counterparty_node_id, required),
1785-
(11, channel_monitor.confirmed_commitment_tx_counterparty_output, option),
1786-
(13, channel_monitor.spendable_txids_confirmed, required_vec),
1787-
(15, channel_monitor.counterparty_fulfilled_htlcs, required),
1788-
(17, channel_monitor.initial_counterparty_commitment_info, option),
1789-
(19, channel_monitor.channel_id, required),
1790-
(21, channel_monitor.balances_empty_height, option),
1791-
(23, channel_monitor.holder_pays_commitment_tx_fee, option),
1792-
(25, channel_monitor.payment_preimages, required),
1793-
(27, channel_monitor.first_negotiated_funding_txo, required),
1794-
(29, channel_monitor.initial_counterparty_commitment_tx, option),
1795-
(31, channel_monitor.funding.channel_parameters, required),
1796-
(32, channel_monitor.pending_funding, optional_vec),
1797-
(33, channel_monitor.htlcs_resolved_to_user, required),
1798-
(34, channel_monitor.alternative_funding_confirmed, option),
1799-
(35, channel_monitor.is_manual_broadcast, required),
1800-
(37, channel_monitor.funding_seen_onchain, required),
1801-
});
18021771

18031772
Ok(())
18041773
}

0 commit comments

Comments
 (0)