mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-11 21:32:06 +01:00
lnwire: remove obsolete String() method from new wire messages
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user