mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Pass 2 integrating node table. Pruning and merging old node lifecycle logic with new.
Begin moving node identification and authentication into Host so session can be directly-constructed with NodeInfo and is not created until after authentication. Require session to be passed a valid node.
This commit is contained in:
parent
9a034e8998
commit
7f4ca13035
2
peer.cpp
2
peer.cpp
@ -49,7 +49,7 @@ int peerTest(int argc, char** argv)
|
|||||||
Host ph("Test", NetworkPreferences(listenPort));
|
Host ph("Test", NetworkPreferences(listenPort));
|
||||||
|
|
||||||
if (!remoteHost.empty())
|
if (!remoteHost.empty())
|
||||||
ph.connect(remoteHost, remotePort);
|
ph.connect(NodeId(), remoteHost, remotePort);
|
||||||
|
|
||||||
for (int i = 0; ; ++i)
|
for (int i = 0; ; ++i)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(topic)
|
|||||||
this_thread::sleep_for(chrono::milliseconds(500));
|
this_thread::sleep_for(chrono::milliseconds(500));
|
||||||
ph.start();
|
ph.start();
|
||||||
this_thread::sleep_for(chrono::milliseconds(500));
|
this_thread::sleep_for(chrono::milliseconds(500));
|
||||||
ph.connect("127.0.0.1", 50303);
|
ph.connect(NodeId(), "127.0.0.1", 50303);
|
||||||
|
|
||||||
KeyPair us = KeyPair::create();
|
KeyPair us = KeyPair::create();
|
||||||
for (int i = 0; i < 10; ++i)
|
for (int i = 0; i < 10; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user