slightly refactor internal_announcement_signatures
authorjoe.miyamoto <joe.miyamoto@bitcoinbank.co.jp>
Mon, 13 Jul 2020 04:24:40 +0000 (13:24 +0900)
committerjoe.miyamoto <joe.miyamoto@bitcoinbank.co.jp>
Wed, 22 Jul 2020 01:34:47 +0000 (10:34 +0900)
commit407e306a9966eddee0f0917181f3c87f2775bf0a
treeb1706b6245870653c1b013b918047039bfe9b14a
parent1fc6d6b5ee2451862768979399e381611ef00565
slightly refactor internal_announcement_signatures

For making debugging easy.
If the user gives a different node_secret for transport
layer (`PeerManager`) and for routing msg, internal_announcement_signatures
is the first place it causes an error.
By giving a detailed error message, user will be able to
fix the bug quickly.
lightning/src/ln/channelmanager.rs