record: add mpp String()
This commit is contained in:
parent
fa010de548
commit
823b52802c
@ -1,6 +1,7 @@
|
|||||||
package record
|
package record
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/lightningnetwork/lnd/lnwire"
|
"github.com/lightningnetwork/lnd/lnwire"
|
||||||
@ -96,3 +97,8 @@ func (r *MPP) Record() tlv.Record {
|
|||||||
MPPOnionType, r, size, MPPEncoder, MPPDecoder,
|
MPPOnionType, r, size, MPPEncoder, MPPDecoder,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// String returns a human-readable representation of the mpp payload field.
|
||||||
|
func (r *MPP) String() string {
|
||||||
|
return fmt.Sprintf("total=%v, addr=%x", r.totalMsat, r.paymentAddr)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user