mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
PeerFinder work and refactoring:
* Implement PeerFinder business logic. * Support fixed peers (including DNS support). * Add journal support to Peer and Peers. * Refactor PeerDoor support. * Tidy up Peers and eliminate connection functionality and timers. * Refactor Peer interface and add journal support. * Allow construction of incoming Peer using an existing socket. * Remove TESTNET support. * Allow connections from/to cluster peers without consuming slots * Misc. cleanups.
This commit is contained in:
committed by
Vinnie Falco
parent
a253b2ef4b
commit
e60b28980a
@@ -60,8 +60,8 @@ public:
|
||||
{
|
||||
Gossip::Item item;
|
||||
item.balance = 100 + random().nextInt (500);
|
||||
item.address = IPAddress (IPAddress::V4 (
|
||||
207, 127, 82, v + i));
|
||||
item.address = IPAddress (
|
||||
IP::AddressV4 (207, 127, 82, v + i));
|
||||
gossip.items.push_back (item);
|
||||
}
|
||||
}
|
||||
@@ -170,7 +170,8 @@ public:
|
||||
Gossip g;
|
||||
Gossip::Item item;
|
||||
item.balance = 100;
|
||||
item.address = IPAddress (IPAddress::V4 (207, 127, 82, 1));
|
||||
item.address = IPAddress (
|
||||
IP::AddressV4 (207, 127, 82, 1));
|
||||
g.items.push_back (item);
|
||||
|
||||
logic.importConsumers ("g", g);
|
||||
|
||||
Reference in New Issue
Block a user