Browse Source

Merge pull request #2484 from winsvega/issues

Recursive RLP check quick fix
cl-refactor
Gav Wood 10 years ago
parent
commit
a03428a9ee
  1. 2
      test/libdevcore/rlp.cpp

2
test/libdevcore/rlp.cpp

@ -71,6 +71,7 @@ namespace dev
{
bytes payloadToDecode = fromHex(o["out"].get_str());
RLP payload(payloadToDecode);
ostringstream() << payload;
if (payload.isEmpty())
BOOST_THROW_EXCEPTION(RLPException() << errinfo_comment("Decoded Empty RLP!"));
o["in"] = "VALID";
@ -128,6 +129,7 @@ namespace dev
{
bytes payloadToDecode = fromHex(o["out"].get_str());
RLP payload(payloadToDecode);
ostringstream() << payload;
if (rlpType == RlpType::Test)
dev::test::checkRLPAgainstJson(inputData, payload);

Loading…
Cancel
Save