diff options
author | winsvega <winsvega@mail.ru> | 2015-01-23 21:55:18 +0800 |
---|---|---|
committer | winsvega <winsvega@mail.ru> | 2015-01-23 21:55:18 +0800 |
commit | 99ac8ecd10c761497688b11e0d86c3ec01f4b13f (patch) | |
tree | 45a7c922ee9ebf89536aab5f141f312fa86470bc /transaction.cpp | |
parent | 34249753e8fae8baa4ccd87e16df46c42ef4d4b2 (diff) | |
download | dexon-solidity-99ac8ecd10c761497688b11e0d86c3ec01f4b13f.tar dexon-solidity-99ac8ecd10c761497688b11e0d86c3ec01f4b13f.tar.gz dexon-solidity-99ac8ecd10c761497688b11e0d86c3ec01f4b13f.tar.bz2 dexon-solidity-99ac8ecd10c761497688b11e0d86c3ec01f4b13f.tar.lz dexon-solidity-99ac8ecd10c761497688b11e0d86c3ec01f4b13f.tar.xz dexon-solidity-99ac8ecd10c761497688b11e0d86c3ec01f4b13f.tar.zst dexon-solidity-99ac8ecd10c761497688b11e0d86c3ec01f4b13f.zip |
transaction.cpp update due to the code changes
Diffstat (limited to 'transaction.cpp')
-rw-r--r-- | transaction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/transaction.cpp b/transaction.cpp index f43116b4..26d3e86e 100644 --- a/transaction.cpp +++ b/transaction.cpp @@ -56,7 +56,7 @@ Transaction createTransactionFromFields(mObject& _tObj) u256 s = h256(fromHex(_tObj["s"].get_str())); rlpStream << bigint(_tObj["v"].get_str()) << r << s; - return Transaction(rlpStream.out(), true); + return Transaction(rlpStream.out(), CheckSignature::Sender); } void doTransactionTests(json_spirit::mValue& _v, bool _fillin) @@ -74,7 +74,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) try { - txFromRlp = Transaction(rlpReaded, true); + txFromRlp = Transaction(rlpReaded, CheckSignature::Sender); if (!txFromRlp.signature().isValid()) BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") ); } @@ -159,7 +159,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) try { - Transaction txFromFields(rlpStream.out(), true); + Transaction txFromFields(rlpStream.out(), CheckSignature::Sender); if (!txFromFields.signature().isValid()) BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") ); |