diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-02-13 19:41:31 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-02-13 19:41:31 +0800 |
commit | e4eeb566ce2786d88a0ad85a59f63f830bda093a (patch) | |
tree | 63e717562b314ba45d6a725bbcc57e72b1bd038e /transaction.cpp | |
parent | 7abf1f6c93dd0d76404697cf780456fbd2875c8f (diff) | |
parent | 238d7ccc014ba91488b2e33740e8479ebe969c10 (diff) | |
download | dexon-solidity-e4eeb566ce2786d88a0ad85a59f63f830bda093a.tar.gz dexon-solidity-e4eeb566ce2786d88a0ad85a59f63f830bda093a.tar.zst dexon-solidity-e4eeb566ce2786d88a0ad85a59f63f830bda093a.zip |
Merge remote-tracking branch 'upstream/develop' into blockTests
Conflicts:
test/transaction.cpp
Diffstat (limited to 'transaction.cpp')
-rw-r--r-- | transaction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/transaction.cpp b/transaction.cpp index 7ced5a6f..7bd8ac20 100644 --- a/transaction.cpp +++ b/transaction.cpp @@ -39,18 +39,18 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) if (_fillin == false) { BOOST_REQUIRE(o.count("rlp") > 0); - bytes rlpReaded = importByteArray(o["rlp"].get_str()); Transaction txFromRlp; - try { - txFromRlp = Transaction(rlpReaded, CheckSignature::Sender); + bytes stream = importByteArray(o["rlp"].get_str()); + RLP rlp(stream); + txFromRlp = Transaction(rlp.data(), CheckSignature::Sender); if (!txFromRlp.signature().isValid()) BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") ); } catch(...) { - BOOST_CHECK_MESSAGE(o.count("transaction") == 0, "A transction object should not be defined because the RLP is invalid!"); + BOOST_CHECK_MESSAGE(o.count("transaction") == 0, "A transaction object should not be defined because the RLP is invalid!"); return; } |