[Eth] Option to auto connect to seed and misc fixes

PeerNetwork.h/.cpp in libethereum.

--
Never put down to incompetence that which can be adequately explained by
self-interest.


On 21 July 2014 23:19, Joe Zhou <notifications@github.com> wrote:

> In eth/main.cpp:
>
> >
> >  	cout << "Address: " << endl << toHex(us.address().asArray()) << endl;
> >  	c.startNetwork(listenPort, remoteHost, remotePort, mode, peers, publicIP, upnp);
> >
> > +	if (autoSync)
> > +	{
> > +		string vs = toString(eth::EthVersion);
> > +		vs = vs.substr(vs.find_first_of('.') + 1)[0];
> > +		int pocnumber = stoi(vs);
> > +		string m_servers;
> > +		if (pocnumber == 4)
> > +			m_servers = eth::PrevSeedAddress;
> > +		else
> > +			m_servers = eth::SeedAddress;
>
> In which file do you suggest we put this and the seed address(es)?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ethereum/cpp-ethereum/pull/240/files#r15197168>.
>