lnwire+lnd: Make Logging Messages Great Again

This commit modifies the login of sent/recv’d wire messages in trace
mode in order utilize the more detailed, and automatically generated
logging statements using pure spew.Sdump.

In order to avoid the spammy messages due to spew printing the
btcec.S256() curve paramter within wire messages with public keys, we
introduce a new logging function to unset the curve paramter to it
isn’t printed in its entirety. To insure we don’t run into any panics
as a result of a nil pointer defense, we now copy the public keys
during the funding process so we don’t run into a panic due to
modifying a pointer to the same object.
This commit is contained in:
Olaoluwa Osuntokun
2017-01-14 17:52:05 -08:00
parent 0bfdcde969
commit d884efea29
24 changed files with 60 additions and 400 deletions

View File

@@ -14,8 +14,7 @@ type ChannelID struct {
// NOTE: This field is limited to 3 bytes.
TxIndex uint32
// TxPosition indicating transaction output which pays to the
// channel.
// TxPosition indicating transaction output which pays to the channel.
TxPosition uint16
}