TBOOST_REQUIRE_MESSAGE((s.length()>0),"Contents of "+testPath+"/"+_name+".json is empty. Have you cloned the 'tests' repo branch develop and set ETHEREUM_TEST_PATH to its path?");
@ -779,16 +789,16 @@ Options::Options()
fulloutput=true;
elseif(arg=="--verbosity"&&i+1<argc)
{
staticstd::ostringstreamstrCout;
std::stringdepthLevel=std::string{argv[i+1]};
if(depthLevel=="0")
staticstd::ostringstreamstrCout;//static string to redirect logs to
std::stringindentLevel=std::string{argv[i+1]};
if(indentLevel=="0")
{
logVerbosity=Verbosity::None;
std::cout.rdbuf(strCout.rdbuf());
std::cerr.rdbuf(strCout.rdbuf());
}
else
if(depthLevel=="1")
if(indentLevel=="1")
logVerbosity=Verbosity::NiceReport;
else
logVerbosity=Verbosity::Full;
@ -797,7 +807,7 @@ Options::Options()
//Default option
if(logVerbosity==Verbosity::NiceReport)
g_logVerbosity=-1;//disable cnote but not the cerr
g_logVerbosity=-1;//disable cnote but leave cerr and cout
//Check the fields restored from RLP to original fields
TBOOST_CHECK_MESSAGE((txFromFields.data()==txFromRlp.data()),"Data in given RLP not matching the Transaction data!");
TBOOST_CHECK_MESSAGE((txFromFields.value()==txFromRlp.value()),"Value in given RLP not matching the Transaction value!");
TBOOST_CHECK_MESSAGE((txFromFields.gasPrice()==txFromRlp.gasPrice()),"GasPrice in given RLP not matching the Transaction gasPrice!");
TBOOST_CHECK_MESSAGE((txFromFields.gas()==txFromRlp.gas()),"Gas in given RLP not matching the Transaction gas!");
TBOOST_CHECK_MESSAGE((txFromFields.nonce()==txFromRlp.nonce()),"Nonce in given RLP not matching the Transaction nonce!");
TBOOST_CHECK_MESSAGE((txFromFields.receiveAddress()==txFromRlp.receiveAddress()),"Receive address in given RLP not matching the Transaction 'to' address!");
TBOOST_CHECK_MESSAGE((txFromFields.sender()==txFromRlp.sender()),"Transaction sender address in given RLP not matching the Transaction 'vrs' signature!");
TBOOST_CHECK_MESSAGE((txFromFields.data()==txFromRlp.data()),testname+"Data in given RLP not matching the Transaction data!");
TBOOST_CHECK_MESSAGE((txFromFields.value()==txFromRlp.value()),testname+"Value in given RLP not matching the Transaction value!");
TBOOST_CHECK_MESSAGE((txFromFields.gasPrice()==txFromRlp.gasPrice()),testname+"GasPrice in given RLP not matching the Transaction gasPrice!");
TBOOST_CHECK_MESSAGE((txFromFields.gas()==txFromRlp.gas()),testname+"Gas in given RLP not matching the Transaction gas!");
TBOOST_CHECK_MESSAGE((txFromFields.nonce()==txFromRlp.nonce()),testname+"Nonce in given RLP not matching the Transaction nonce!");
TBOOST_CHECK_MESSAGE((txFromFields.receiveAddress()==txFromRlp.receiveAddress()),testname+"Receive address in given RLP not matching the Transaction 'to' address!");
TBOOST_CHECK_MESSAGE((txFromFields.sender()==txFromRlp.sender()),testname+"Transaction sender address in given RLP not matching the Transaction 'vrs' signature!");
TBOOST_CHECK_MESSAGE((txFromFields.sender()==addressReaded||txFromRlp.sender()==addressReaded),"Signature address of sender does not match given sender address!");
TBOOST_CHECK_MESSAGE((txFromFields.sender()==addressReaded||txFromRlp.sender()==addressReaded),testname+"Signature address of sender does not match given sender address!");
BOOST_REQUIRE_MESSAGE(s.length()>0,"Content of "+path.string()+" is empty. Have you cloned the 'tests' repo branch develop and set ETHEREUM_TEST_PATH to its path?");