lnwire: properly display channel points in .String() methods
This commit is contained in:
4 files changed
+9
-5
No files matched your search
@@ -127,9 +127,12 @@ func (c *CommitRevocation) Validate() error {
|
||||
// This is part of the lnwire.Message interface.
|
||||
// TODO(roasbeef): remote all String() methods...spew should be used instead.
|
||||
func (c *CommitRevocation) String() string {
|
||||
keySer := c.NextRevocationKey.SerializeCompressed()
|
||||
|
||||
return fmt.Sprintf("\n--- Begin CommitRevocation ---\n") +
|
||||
fmt.Sprintf("ChannelPoint:\t%d\n", c.ChannelPoint) +
|
||||
fmt.Sprintf("NextRevocationHash:\t%x\n", c.NextRevocationHash) +
|
||||
fmt.Sprintf("ChannelPoint:\t%v\n", c.ChannelPoint) +
|
||||
fmt.Sprintf("Revocation:\t%x\n", c.Revocation) +
|
||||
fmt.Sprintf("NextRevocationKey:\t%x\n", keySer) +
|
||||
fmt.Sprintf("NextRevocationHash:\t%x\n", c.NextRevocationHash) +
|
||||
fmt.Sprintf("--- End CommitRevocation ---\n")
|
||||
}
|
||||
Reference in new issue
Block a user