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)
949
949
CDataStream ssPeersIn (SER_DISK, CLIENT_VERSION);
950
950
ssPeersIn << Params ().MessageStart ();
951
951
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;
955
953
}
956
954
957
955
BOOST_AUTO_TEST_CASE (load_addrman)
@@ -1023,9 +1021,7 @@ static CDataStream MakeCorruptPeersDat()
1023
1021
AddrInfo info = AddrInfo (addr, resolved);
1024
1022
s << info;
1025
1023
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;
1029
1025
}
1030
1026
1031
1027
BOOST_AUTO_TEST_CASE (load_addrman_corrupted)
You can’t perform that action at this time.
0 commit comments