mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
include transaction list
This commit is contained in:
parent
dd96558634
commit
ad1a26c503
22
block.cpp
22
block.cpp
@ -144,8 +144,30 @@ void doBlockTests(json_spirit::mValue& _v, bool _fillin)
|
|||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
|
cnote << "block construction did throw an unknow exception\n";
|
||||||
o.erase(o.find("block"));
|
o.erase(o.find("block"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_REQUIRE(o.count("transactions") > 0);
|
||||||
|
|
||||||
|
for (auto const& txObj: o["transactions"].get_array())
|
||||||
|
{
|
||||||
|
mObject tx = txObj.get_obj();
|
||||||
|
BOOST_REQUIRE(tx.count("nonce") > 0);
|
||||||
|
BOOST_REQUIRE(tx.count("gasPrice") > 0);
|
||||||
|
BOOST_REQUIRE(tx.count("gasLimit") > 0);
|
||||||
|
BOOST_REQUIRE(tx.count("to") > 0);
|
||||||
|
BOOST_REQUIRE(tx.count("value") > 0);
|
||||||
|
BOOST_REQUIRE(tx.count("v") > 0);
|
||||||
|
BOOST_REQUIRE(tx.count("r") > 0);
|
||||||
|
BOOST_REQUIRE(tx.count("s") > 0);
|
||||||
|
BOOST_REQUIRE(tx.count("data") > 0);
|
||||||
|
|
||||||
|
Transaction txFromFields = createTransactionFromFields(tx);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user