diff --git a/lnwire/commit_revocation.go b/lnwire/commit_revocation.go index 694cdc55..55f1ab61 100644 --- a/lnwire/commit_revocation.go +++ b/lnwire/commit_revocation.go @@ -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") } diff --git a/lnwire/commit_signature.go b/lnwire/commit_signature.go index a491b95b..fc6d4912 100644 --- a/lnwire/commit_signature.go +++ b/lnwire/commit_signature.go @@ -130,7 +130,8 @@ func (c *CommitSignature) String() string { } return fmt.Sprintf("\n--- Begin CommitSignature ---\n") + - fmt.Sprintf("ChannelPoint:\t%d\n", c.ChannelPoint) + + fmt.Sprintf("ChannelPoint:\t%v\n", c.ChannelPoint) + + fmt.Sprintf("LogIndex:\t\t%v\n", c.LogIndex) + fmt.Sprintf("Fee:\t\t\t%s\n", c.Fee.String()) + fmt.Sprintf("CommitSig:\t\t%x\n", serializedSig) + fmt.Sprintf("--- End CommitSignature ---\n") diff --git a/lnwire/htlc_addrequest.go b/lnwire/htlc_addrequest.go index 5b9dfa93..31f4bd37 100644 --- a/lnwire/htlc_addrequest.go +++ b/lnwire/htlc_addrequest.go @@ -158,7 +158,7 @@ func (c *HTLCAddRequest) String() string { } return fmt.Sprintf("\n--- Begin HTLCAddRequest ---\n") + - fmt.Sprintf("ChannelPoint:\t%d\n", c.ChannelPoint) + + fmt.Sprintf("ChannelPoint:\t%v\n", c.ChannelPoint) + fmt.Sprintf("Expiry:\t\t%d\n", c.Expiry) + fmt.Sprintf("Amount\t\t%d\n", c.Amount) + fmt.Sprintf("ContractType:\t%d (%b)\n", c.ContractType, c.ContractType) + diff --git a/lnwire/htlc_settlerequest.go b/lnwire/htlc_settlerequest.go index 1b7c2bbf..26534301 100644 --- a/lnwire/htlc_settlerequest.go +++ b/lnwire/htlc_settlerequest.go @@ -119,7 +119,7 @@ func (c *HTLCSettleRequest) String() string { } return fmt.Sprintf("\n--- Begin HTLCSettleRequest ---\n") + - fmt.Sprintf("ChannelPoint:\t%d\n", c.ChannelPoint) + + fmt.Sprintf("ChannelPoint:\t%v\n", c.ChannelPoint) + fmt.Sprintf("HTLCKey:\t%d\n", c.HTLCKey) + fmt.Sprintf("RedemptionHashes:") + redemptionProofs +