Skip to content

Commit 675935f

Browse files
committed
Fixed node tests
1 parent 79b0af1 commit 675935f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Phantasma.Tests/NodeTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private void InitMainNode(int _port = 7077)
143143
mempool.StartInThread();
144144

145145
// node setup
146-
node = new Node("test node", nexus, mempool, node_keys, "localhost", port, PeerCaps.Mempool, Enumerable.Empty<String>(), new DebugLogger());
146+
node = new Node("test node", nexus, mempool, node_keys, "localhost", new[] { new PeerPort("sync", port) }, PeerCaps.Mempool, Enumerable.Empty<String>(), new DebugLogger());
147147
node.StartInThread();
148148
}
149149

Phantasma.Tests/RelayTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private ApiTests.TestData CreateAPI(bool useMempool = true)
3232

3333
var mempool = useMempool ? new Mempool(sim.Nexus, 2, 1, System.Text.Encoding.UTF8.GetBytes("TEST")) : null;
3434
mempool.SetKeys(owner);
35-
var node = useMempool ? new Node("relay node", sim.Nexus, mempool, owner, "localhost", 7073, PeerCaps.Relay | PeerCaps.Mempool, new List<string>() { "tcp:localhost:7073" }, null) : null;
35+
var node = useMempool ? new Node("relay node", sim.Nexus, mempool, owner, "localhost", new[] { new PeerPort("sync", 7073) }, PeerCaps.Relay | PeerCaps.Mempool, new List<string>() { "tcp:localhost:7073" }, null) : null;
3636
var api = useMempool ? new NexusAPI(sim.Nexus) : null;
3737

3838
if (api != null)

0 commit comments

Comments
 (0)