mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
lnwire: remove obsolete String() method from new wire messages
This commit is contained in:
parent
bcde70e74a
commit
4aa7de7f58
@ -1,7 +1,6 @@
|
||||
package lnwire
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/roasbeef/btcd/btcec"
|
||||
@ -98,18 +97,3 @@ func (c *CommitSig) Validate() error {
|
||||
// We're good!
|
||||
return nil
|
||||
}
|
||||
|
||||
// String returns the string representation of the target CommitSig.
|
||||
//
|
||||
// This is part of the lnwire.Message interface.
|
||||
func (c *CommitSig) String() string {
|
||||
var serializedSig []byte
|
||||
if c.CommitSig != nil {
|
||||
serializedSig = c.CommitSig.Serialize()
|
||||
}
|
||||
|
||||
return fmt.Sprintf("\n--- Begin CommitSig ---\n") +
|
||||
fmt.Sprintf("ChannelPoint:\t%v\n", c.ChannelPoint) +
|
||||
fmt.Sprintf("CommitSig:\t\t%x\n", serializedSig) +
|
||||
fmt.Sprintf("--- End CommitSig ---\n")
|
||||
}
|
||||
|
@ -141,17 +141,3 @@ func (c *UpdateAddHTLC) Validate() error {
|
||||
// We're good!
|
||||
return nil
|
||||
}
|
||||
|
||||
// String returns the string representation of the target UpdateAddHTLC.
|
||||
//
|
||||
// This is part of the lnwire.Message interface.
|
||||
func (c *UpdateAddHTLC) String() string {
|
||||
return fmt.Sprintf("\n--- Begin UpdateAddHTLC ---\n") +
|
||||
fmt.Sprintf("ChannelPoint:\t%v\n", c.ChannelPoint) +
|
||||
fmt.Sprintf("ID:\t%v\n", c.ID) +
|
||||
fmt.Sprintf("Expiry:\t\t%d\n", c.Expiry) +
|
||||
fmt.Sprintf("Amount\t\t%d\n", c.Amount) +
|
||||
fmt.Sprintf("PaymentHash:\t\t%x\n", c.PaymentHash) +
|
||||
fmt.Sprintf("OnionBlob:\t\t\t\t%x\n", c.OnionBlob) +
|
||||
fmt.Sprintf("--- End UpdateAddHTLC ---\n")
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
package lnwire
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/roasbeef/btcd/wire"
|
||||
@ -158,13 +157,3 @@ func (c *UpdateFailHTLC) Validate() error {
|
||||
// We're good!
|
||||
return nil
|
||||
}
|
||||
|
||||
// String returns the string representation of the target UpdateFailHTLC. This is
|
||||
// part of the lnwire.Message interface.
|
||||
func (c *UpdateFailHTLC) String() string {
|
||||
return fmt.Sprintf("\n--- Begin UpdateFailHTLC ---\n") +
|
||||
fmt.Sprintf("ChannelPoint:\t%d\n", c.ChannelPoint) +
|
||||
fmt.Sprintf("ID:\t%d\n", c.ID) +
|
||||
fmt.Sprintf("Reason:\t\t%x\n", c.Reason) +
|
||||
fmt.Sprintf("--- End UpdateFailHTLC ---\n")
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
package lnwire
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/roasbeef/btcd/wire"
|
||||
@ -103,14 +102,3 @@ func (c *UpdateFufillHTLC) Validate() error {
|
||||
// We're good!
|
||||
return nil
|
||||
}
|
||||
|
||||
// String returns the string representation of the target UpdateFufillHTLC.
|
||||
//
|
||||
// This is part of the lnwire.Message interface.
|
||||
func (c *UpdateFufillHTLC) String() string {
|
||||
return fmt.Sprintf("\n--- Begin UpdateFufillHTLC ---\n") +
|
||||
fmt.Sprintf("ChannelPoint:\t%v\n", c.ChannelPoint) +
|
||||
fmt.Sprintf("ID:\t%d\n", c.ID) +
|
||||
fmt.Sprintf("RedemptionHashes:\t\t%x\n", c.PaymentPreimage) +
|
||||
fmt.Sprintf("--- End UpdateFufillHTLC ---\n")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user