mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
multi: bump btcd version.
The new SignCompact return values had to be adopted across the code base.
This commit is contained in:
@@ -105,12 +105,8 @@ var (
|
||||
testMessageSigner = MessageSigner{
|
||||
SignCompact: func(msg []byte) ([]byte, error) {
|
||||
hash := chainhash.HashB(msg)
|
||||
sig, err := ecdsa.SignCompact(testPrivKey, hash, true)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't sign the "+
|
||||
"message: %v", err)
|
||||
}
|
||||
return sig, nil
|
||||
|
||||
return ecdsa.SignCompact(testPrivKey, hash, true), nil
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1043,7 +1039,7 @@ func TestInvoiceChecksumMalleability(t *testing.T) {
|
||||
msgSigner := MessageSigner{
|
||||
SignCompact: func(msg []byte) ([]byte, error) {
|
||||
hash := chainhash.HashB(msg)
|
||||
return ecdsa.SignCompact(privKey, hash, true)
|
||||
return ecdsa.SignCompact(privKey, hash, true), nil
|
||||
},
|
||||
}
|
||||
opts := []func(*Invoice){Description("test")}
|
||||
|
Reference in New Issue
Block a user