mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 17:47:01 +02:00
wtclient: error on unknown witness type for backup task
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
package wtclient
|
package wtclient
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"github.com/btcsuite/btcd/blockchain"
|
"github.com/btcsuite/btcd/blockchain"
|
||||||
"github.com/btcsuite/btcd/btcec"
|
"github.com/btcsuite/btcd/btcec"
|
||||||
"github.com/btcsuite/btcd/txscript"
|
"github.com/btcsuite/btcd/txscript"
|
||||||
@@ -293,6 +295,9 @@ func (t *backupTask) craftSessionPayload(
|
|||||||
fallthrough
|
fallthrough
|
||||||
case input.CommitmentNoDelay:
|
case input.CommitmentNoDelay:
|
||||||
copy(justiceKit.CommitToRemoteSig[:], signature[:])
|
copy(justiceKit.CommitToRemoteSig[:], signature[:])
|
||||||
|
default:
|
||||||
|
return hint, nil, fmt.Errorf("invalid witness type: %v",
|
||||||
|
inp.WitnessType())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user