Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
testeth treat null rlp as invalid
Browse files Browse the repository at this point in the history
update blockchain tests to geth+retesteth
  • Loading branch information
winsvega committed Feb 29, 2020
1 parent a0774d9 commit 80bada7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [1.9.0] - Unreleased

- Added: [#5893](https://github.com/ethereum/aleth/pull/5893) testeth: RlpTests treat empty `out` field as invalid.
- Added: [#5868](https://github.com/ethereum/aleth/pull/5868) `test_importRawBlock` RPC method reports the detailed reason when import fails.
- Removed: [#5885](https://github.com/ethereum/aleth/pull/5885) Discontinue `testeth --filltests` support for BlockchainTests, TransitionTests, BCGeneralStateTests.

Expand Down
2 changes: 1 addition & 1 deletion test/jsontests
4 changes: 4 additions & 0 deletions test/tools/jsontests/RLPTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ void doRlpTests(json_spirit::mValue const& _input)
bytes payloadToDecode = fromHex(o.at("out").get_str());
RLP payload(payloadToDecode);

// treat null rlp as invalid
if (payload.isNull())
BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("RLPTests: field `out` is set to Null"));

// attempt to read all the contents of RLP
ostringstream() << payload;

Expand Down

0 comments on commit 80bada7

Please sign in to comment.