Skip to content

Commit

Permalink
f - Add handle unkown peer test 2
Browse files Browse the repository at this point in the history
Add update_channel_config API coverage
  • Loading branch information
ViktorTigerstrom committed Jul 13, 2022
1 parent 67d70a1 commit 1e60496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7562,6 +7562,7 @@ mod tests {
use util::errors::APIError;
use util::events::{Event, MessageSendEvent, MessageSendEventsProvider, ClosureReason};
use util::test_utils;
use util::config::ChannelConfig;
use chain::keysinterface::KeysInterface;

#[cfg(feature = "std")]
Expand Down Expand Up @@ -8337,6 +8338,8 @@ mod tests {

check_unkown_peer_error(nodes[0].node.force_close_without_broadcasting_txn(&channel_id, &unkown_public_key), unkown_public_key);

check_unkown_peer_error(nodes[0].node.update_channel_config(&unkown_public_key, &[channel_id], &ChannelConfig::default()), unkown_public_key);

nodes[0].node.handle_shutdown(&unkown_public_key, &InitFeatures::known(), &shutdown_msg);
check_unkown_peer_msg_event(&nodes[0], unkown_public_key, channel_id);

Expand Down

0 comments on commit 1e60496

Please sign in to comment.