Merge pull request #4410 from yyforyongyu/remove-fastsha256

htlcswitch: remove fastsha256 in test
This commit is contained in:
Conner Fromknecht 2020-06-24 21:09:37 -07:00 committed by GitHub
commit c1ef5bb908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,6 @@ import (
"time" "time"
"github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil"
"github.com/btcsuite/fastsha256"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/htlcswitch/hop" "github.com/lightningnetwork/lnd/htlcswitch/hop"
@ -3224,7 +3223,7 @@ func TestSwitchHoldForward(t *testing.T) {
// Create request which should be forwarded from Alice channel link to // Create request which should be forwarded from Alice channel link to
// bob channel link. // bob channel link.
preimage := [sha256.Size]byte{1} preimage := [sha256.Size]byte{1}
rhash := fastsha256.Sum256(preimage[:]) rhash := sha256.Sum256(preimage[:])
ogPacket := &htlcPacket{ ogPacket := &htlcPacket{
incomingChanID: aliceChannelLink.ShortChanID(), incomingChanID: aliceChannelLink.ShortChanID(),
incomingHTLCID: 0, incomingHTLCID: 0,