From 0e894b1920c3921758ed52033a216b575374b9cb Mon Sep 17 00:00:00 2001 From: Dimitry Date: Wed, 15 Jul 2015 20:35:16 +0300 Subject: [PATCH] Recursive RLP check quick fix --- test/libdevcore/rlp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/libdevcore/rlp.cpp b/test/libdevcore/rlp.cpp index 74e422b05..016b183e2 100644 --- a/test/libdevcore/rlp.cpp +++ b/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);