From: Matt Corallo Date: Sun, 28 Jul 2019 00:49:44 +0000 (-0400) Subject: Drop TODO suggesting we avoid a test-only function to get chan keys X-Git-Tag: v0.0.12~195^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=ce6f561485f3266c28ce5150a225fbe1f8137d0c;p=rust-lightning Drop TODO suggesting we avoid a test-only function to get chan keys It suggested figuring something else out after #81, but the API we settled on after #81 (which I think is just fine) doesn't allow for anything cleaner, so this is fine as-is. --- diff --git a/src/ln/channel.rs b/src/ln/channel.rs index 9283e9a9f..7bda30707 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -2831,7 +2831,6 @@ impl Channel { self.cur_remote_commitment_transaction_number + 2 } - //TODO: Testing purpose only, should be changed in another way after #81 #[cfg(test)] pub fn get_local_keys(&self) -> &ChannelKeys { &self.local_keys