lnd+lnwallet+glide: replace last lingering instances of fastsha256

This commit is contained in:
Olaoluwa Osuntokun committed 2017-03-16 19:40:29 -07:00
1 parent a1bb36730a
commit ec52c49b6c
3 files changed
+3 -5

No files matched your search

+1 -2
View File
@@ -7,7 +7,6 @@ import (
"os"
"testing"
"github.com/btcsuite/fastsha256"
"github.com/davecgh/go-spew/spew"
"github.com/go-errors/errors"
"github.com/lightningnetwork/lnd/chainntnfs"
@@ -851,7 +850,7 @@ func TestForceClose(t *testing.T) {
createHTLC := func(data, amount btcutil.Amount) (*lnwire.UpdateAddHTLC,
[32]byte) {
preimage := bytes.Repeat([]byte{byte(data)}, 32)
paymentHash := fastsha256.Sum256(preimage)
paymentHash := sha256.Sum256(preimage)
var returnPreimage [32]byte
copy(returnPreimage[:], preimage)