mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
Merge pull request #9161 from ellemouton/fixInvalidBlindingEncodeSig
channeldb/mig/lnwire21: fix FailInvalidBlinding Encode sig
This commit is contained in:
commit
d90871bee7
1 changed files with 5 additions and 1 deletions
|
@ -583,6 +583,10 @@ type FailInvalidBlinding struct {
|
|||
OnionSHA256 [sha256.Size]byte
|
||||
}
|
||||
|
||||
// A compile-time check to ensure that FailInvalidBlinding implements the
|
||||
// Serializable interface.
|
||||
var _ Serializable = (*FailInvalidBlinding)(nil)
|
||||
|
||||
// Code returns the failure unique code.
|
||||
//
|
||||
// NOTE: Part of the FailureMessage interface.
|
||||
|
@ -607,7 +611,7 @@ func (f *FailInvalidBlinding) Decode(r io.Reader, _ uint32) error {
|
|||
// Encode writes the failure in bytes stream.
|
||||
//
|
||||
// NOTE: Part of the Serializable interface.
|
||||
func (f *FailInvalidBlinding) Encode(w *bytes.Buffer, _ uint32) error {
|
||||
func (f *FailInvalidBlinding) Encode(w io.Writer, _ uint32) error {
|
||||
return WriteElement(w, f.OnionSHA256[:])
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue