Fixed bugs in peermgr, network, inventory relaying on connect.