diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index 6a8cf07fe..f20782a42 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -159,8 +159,9 @@ Main::Main(QWidget *parent) : statusBar()->addPermanentWidget(ui->blockCount); connect(ui->ourAccounts->model(), SIGNAL(rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int)), SLOT(ourAccountsRowsMoved())); - - m_webThree.reset(new WebThreeDirect(string("AlethZero/v") + dev::Version + "/" DEV_QUOTED(ETH_BUILD_TYPE) "/" DEV_QUOTED(ETH_BUILD_PLATFORM), getDataDir() + "/AlethZero", false, {"eth", "shh"})); + + bytesConstRef network((byte*)m_networkConfig.data(), m_networkConfig.size()); + m_webThree.reset(new WebThreeDirect(string("AlethZero/v") + dev::Version + "/" DEV_QUOTED(ETH_BUILD_TYPE) "/" DEV_QUOTED(ETH_BUILD_PLATFORM), getDataDir() + "/AlethZero", false, {"eth", "shh"}, p2p::NetworkPreferences(), network)); m_qwebConnector.reset(new QWebThreeConnector()); m_server.reset(new OurWebThreeStubServer(*m_qwebConnector, *web3(), keysAsVector(m_myKeys), this)); @@ -1860,8 +1861,8 @@ void Main::on_net_triggered() web3()->setNetworkPreferences(netPrefs()); ethereum()->setNetworkId(m_privateChain.size() ? sha3(m_privateChain.toStdString()) : 0); // TODO: p2p - if (m_networkConfig.size()/* && ui->usePast->isChecked()*/) - web3()->restoreNetwork(bytesConstRef((byte*)m_networkConfig.data(), m_networkConfig.size())); +// if (m_networkConfig.size()/* && ui->usePast->isChecked()*/) +// web3()->restoreNetwork(bytesConstRef((byte*)m_networkConfig.data(), m_networkConfig.size())); web3()->startNetwork(); ui->downloadView->setDownloadMan(ethereum()->downloadMan()); } diff --git a/third/MainWin.cpp b/third/MainWin.cpp index b50722eff..e52cecc7e 100644 --- a/third/MainWin.cpp +++ b/third/MainWin.cpp @@ -114,7 +114,7 @@ Main::Main(QWidget *parent) : connect(ui->ourAccounts->model(), SIGNAL(rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int)), SLOT(ourAccountsRowsMoved())); - bytesConstRef networkConfig((byte*)m_networkConfig.data(), m_networkConfig.size()) + bytesConstRef networkConfig((byte*)m_networkConfig.data(), m_networkConfig.size()); m_web3.reset(new WebThreeDirect("Third", getDataDir() + "/Third", false, {"eth", "shh"}, NetworkPreferences(), networkConfig)); m_web3->connect(Host::pocHost());