File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -949,9 +949,7 @@ static CDataStream AddrmanToStream(const AddrMan& addrman)
949949 CDataStream ssPeersIn (SER_DISK, CLIENT_VERSION);
950950 ssPeersIn << Params ().MessageStart ();
951951 ssPeersIn << addrman;
952- std::string str = ssPeersIn.str ();
953- std::vector<unsigned char > vchData (str.begin (), str.end ());
954- return CDataStream (vchData, SER_DISK, CLIENT_VERSION);
952+ return ssPeersIn;
955953}
956954
957955BOOST_AUTO_TEST_CASE (load_addrman)
@@ -1023,9 +1021,7 @@ static CDataStream MakeCorruptPeersDat()
10231021 AddrInfo info = AddrInfo (addr, resolved);
10241022 s << info;
10251023
1026- std::string str = s.str ();
1027- std::vector<unsigned char > vchData (str.begin (), str.end ());
1028- return CDataStream (vchData, SER_DISK, CLIENT_VERSION);
1024+ return s;
10291025}
10301026
10311027BOOST_AUTO_TEST_CASE (load_addrman_corrupted)
You can’t perform that action at this time.
0 commit comments