autopilot/multi: replace PubKey -> NodeKey on directive

This commit is contained in:
Conner Fromknecht committed 2018-09-05 20:10:37 -07:00
1 parent e702a6a266
commit d5f97f7bdc
4 files changed
+13 -13

No files matched your search

+5 -5
View File
@@ -321,7 +321,7 @@ func TestAgentChannelFailureSignal(t *testing.T) {
// request attachment directives, return a fake so the agent will
// attempt to open a channel.
var fakeDirective = AttachmentDirective{
PeerKey: self,
NodeKey: self,
NodeID: NewNodeID(self),
ChanAmt: btcutil.SatoshiPerBitcoin,
Addrs: []net.Addr{
@@ -659,7 +659,7 @@ func TestAgentImmediateAttach(t *testing.T) {
}
nodeID := NewNodeID(pub)
directives[i] = AttachmentDirective{
PeerKey: pub,
NodeKey: pub,
NodeID: nodeID,
ChanAmt: btcutil.SatoshiPerBitcoin,
Addrs: []net.Addr{
@@ -790,7 +790,7 @@ func TestAgentPrivateChannels(t *testing.T) {
t.Fatalf("unable to generate key: %v", err)
}
directives[i] = AttachmentDirective{
PeerKey: pub,
NodeKey: pub,
NodeID: NewNodeID(pub),
ChanAmt: btcutil.SatoshiPerBitcoin,
Addrs: []net.Addr{
@@ -911,7 +911,7 @@ func TestAgentPendingChannelState(t *testing.T) {
}
nodeID := NewNodeID(nodeKey)
nodeDirective := AttachmentDirective{
PeerKey: nodeKey,
NodeKey: nodeKey,
NodeID: nodeID,
ChanAmt: 0.5 * btcutil.SatoshiPerBitcoin,
Addrs: []net.Addr{
@@ -1273,7 +1273,7 @@ func TestAgentSkipPendingConns(t *testing.T) {
t.Fatalf("unable to generate key: %v", err)
}
nodeDirective := AttachmentDirective{
PeerKey: nodeKey,
NodeKey: nodeKey,
NodeID: NewNodeID(nodeKey),
ChanAmt: 0.5 * btcutil.SatoshiPerBitcoin,
Addrs: []net.Addr{