Drop TODO suggesting we avoid a test-only function to get chan keys 2019-07-useless-todo-removal
authorMatt Corallo <git@bluematt.me>
Sun, 28 Jul 2019 00:49:44 +0000 (20:49 -0400)
committerMatt Corallo <git@bluematt.me>
Sun, 28 Jul 2019 00:50:51 +0000 (20:50 -0400)
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.

src/ln/channel.rs

index 9283e9a9f4dfd8479f0f800a96297da073d717af..7bda307077ccc839cfa8e9fb6287a84cdfde4846 100644 (file)
@@ -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