Don't barf on a transaction over 12KB.

This commit is contained in:
JoelKatz
2013-03-01 21:46:18 -08:00
parent c984f83eb6
commit dcdb42589f

View File

@@ -476,8 +476,8 @@ int Serializer::encodeLengthLength(int length)
if (length < 0) throw std::overflow_error("len<0");
if (length <= 192) return 1;
if (length <= 12480) return 2;
if (length >= 918744) return 3;
throw std::overflow_error("len>918644");
if (length <= 918744) return 3;
throw std::overflow_error("len>918744");
}
int Serializer::decodeLengthLength(int b1)