Skip to content

Commit

Permalink
Add missing trait impls and methods in tests
Browse files Browse the repository at this point in the history
Not super important because we are not currently relying on these
tests, but it's always easier to develop if all the code builds.
  • Loading branch information
luckysori committed Jul 19, 2023
1 parent ac495ce commit 28cfa95
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lightning/src/util/enforcing_trait_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ impl EcdsaChannelSigner for EnforcingSigner {
}
}

impl crate::chain::keysinterface::ExtraSign for EnforcingSigner {
fn sign_with_fund_key_callback<F>(&self, _: &mut F) where F: FnMut(&SecretKey) {
todo!()
}
fn set_channel_value_satoshis(&mut self, _: u64) {
todo!()
}
}

impl WriteableEcdsaChannelSigner for EnforcingSigner {}

impl Writeable for EnforcingSigner {
Expand Down
4 changes: 4 additions & 0 deletions lightning/src/util/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ impl<'a> chain::Watch<EnforcingSigner> for TestChainMonitor<'a> {
fn release_pending_monitor_events(&self) -> Vec<(OutPoint, Vec<MonitorEvent>, Option<PublicKey>)> {
return self.chain_monitor.release_pending_monitor_events();
}

fn update_channel_funding_txo(&self, _: OutPoint, new_funding_txo: OutPoint, _: u64) -> chain::ChannelMonitorUpdateStatus {
todo!()
}
}

pub struct TestPersister {
Expand Down

0 comments on commit 28cfa95

Please sign in to comment.