htlcswitch/test_utils: use new ErrorEncrypter and HopIterator ifaces
This commit is contained in:
parent
5cbdb29bcc
commit
c2ec3a6ef5
@ -11,14 +11,13 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"io"
|
|
||||||
|
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/btcsuite/fastsha256"
|
"github.com/btcsuite/fastsha256"
|
||||||
"github.com/go-errors/errors"
|
"github.com/go-errors/errors"
|
||||||
|
"github.com/lightningnetwork/lightning-onion"
|
||||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||||
"github.com/lightningnetwork/lnd/channeldb"
|
"github.com/lightningnetwork/lnd/channeldb"
|
||||||
"github.com/lightningnetwork/lnd/contractcourt"
|
"github.com/lightningnetwork/lnd/contractcourt"
|
||||||
@ -800,7 +799,7 @@ func newThreeHopNetwork(t testing.TB, aliceChannel, firstBobChannel,
|
|||||||
Peer: bobServer,
|
Peer: bobServer,
|
||||||
Switch: aliceServer.htlcSwitch,
|
Switch: aliceServer.htlcSwitch,
|
||||||
DecodeHopIterator: decoder.DecodeHopIterator,
|
DecodeHopIterator: decoder.DecodeHopIterator,
|
||||||
DecodeOnionObfuscator: func(io.Reader) (ErrorEncrypter,
|
DecodeOnionObfuscator: func(*sphinx.OnionPacket) (ErrorEncrypter,
|
||||||
lnwire.FailCode) {
|
lnwire.FailCode) {
|
||||||
return obfuscator, lnwire.CodeNone
|
return obfuscator, lnwire.CodeNone
|
||||||
},
|
},
|
||||||
@ -846,7 +845,7 @@ func newThreeHopNetwork(t testing.TB, aliceChannel, firstBobChannel,
|
|||||||
Peer: aliceServer,
|
Peer: aliceServer,
|
||||||
Switch: bobServer.htlcSwitch,
|
Switch: bobServer.htlcSwitch,
|
||||||
DecodeHopIterator: decoder.DecodeHopIterator,
|
DecodeHopIterator: decoder.DecodeHopIterator,
|
||||||
DecodeOnionObfuscator: func(io.Reader) (ErrorEncrypter,
|
DecodeOnionObfuscator: func(*sphinx.OnionPacket) (ErrorEncrypter,
|
||||||
lnwire.FailCode) {
|
lnwire.FailCode) {
|
||||||
return obfuscator, lnwire.CodeNone
|
return obfuscator, lnwire.CodeNone
|
||||||
},
|
},
|
||||||
@ -892,7 +891,7 @@ func newThreeHopNetwork(t testing.TB, aliceChannel, firstBobChannel,
|
|||||||
Peer: carolServer,
|
Peer: carolServer,
|
||||||
Switch: bobServer.htlcSwitch,
|
Switch: bobServer.htlcSwitch,
|
||||||
DecodeHopIterator: decoder.DecodeHopIterator,
|
DecodeHopIterator: decoder.DecodeHopIterator,
|
||||||
DecodeOnionObfuscator: func(io.Reader) (ErrorEncrypter,
|
DecodeOnionObfuscator: func(*sphinx.OnionPacket) (ErrorEncrypter,
|
||||||
lnwire.FailCode) {
|
lnwire.FailCode) {
|
||||||
return obfuscator, lnwire.CodeNone
|
return obfuscator, lnwire.CodeNone
|
||||||
},
|
},
|
||||||
@ -938,7 +937,7 @@ func newThreeHopNetwork(t testing.TB, aliceChannel, firstBobChannel,
|
|||||||
Peer: bobServer,
|
Peer: bobServer,
|
||||||
Switch: carolServer.htlcSwitch,
|
Switch: carolServer.htlcSwitch,
|
||||||
DecodeHopIterator: decoder.DecodeHopIterator,
|
DecodeHopIterator: decoder.DecodeHopIterator,
|
||||||
DecodeOnionObfuscator: func(io.Reader) (ErrorEncrypter,
|
DecodeOnionObfuscator: func(*sphinx.OnionPacket) (ErrorEncrypter,
|
||||||
lnwire.FailCode) {
|
lnwire.FailCode) {
|
||||||
return obfuscator, lnwire.CodeNone
|
return obfuscator, lnwire.CodeNone
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user