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

This commit is contained in:
Olaoluwa Osuntokun 2017-03-16 19:40:18 -07:00
parent a1bb36730a
commit ec52c49b6c
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
3 changed files with 3 additions and 5 deletions

2
glide.lock generated

@ -1,5 +1,5 @@
hash: 3ccd04331ddc23edf5fb2d02398e053d456e44fa705df32c2864fa575099cb51
updated: 2017-03-15T14:49:39.306160636-07:00
updated: 2017-03-16T15:29:29.168674517-07:00
imports:
- name: github.com/awalterschulze/gographviz
version: 761fd5fbb34e4c2c138c280395b65b48e4ff5a53

@ -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)

@ -10,7 +10,6 @@ import (
"sync/atomic"
"time"
"github.com/btcsuite/fastsha256"
"github.com/lightningnetwork/lightning-onion"
"github.com/lightningnetwork/lnd/brontide"
"github.com/lightningnetwork/lnd/chainntnfs"
@ -183,7 +182,7 @@ func newServer(listenAddrs []string, notifier chainntnfs.ChainNotifier,
htlcAdd *lnwire.UpdateAddHTLC) ([32]byte, error) {
firstHopPub := firstHop.SerializeCompressed()
destInterface := chainhash.Hash(fastsha256.Sum256(firstHopPub))
destInterface := chainhash.Hash(sha256.Sum256(firstHopPub))
return s.htlcSwitch.SendHTLC(&htlcPacket{
dest: destInterface,