Merge pull request #4618

eb0b56b Simplify serialize.h's exception handling (Pieter Wuille)
This commit is contained in:
Pieter Wuille
2014-08-24 02:06:09 +02:00
3 changed files with 8 additions and 59 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ struct ReadAlerts
std::vector<unsigned char> vch(alert_tests::alertTests, alert_tests::alertTests + sizeof(alert_tests::alertTests));
CDataStream stream(vch, SER_DISK, CLIENT_VERSION);
try {
while (stream.good())
while (!stream.eof())
{
CAlert alert;
stream >> alert;