Skip to content

Commit

Permalink
fix unitest for guomi
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyShi22 committed Mar 18, 2019
1 parent 9cba8e4 commit 7f83a0d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/unittests/libblockverifier/TxDAGTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ class TxDAGFixture : TestOutputHelperFixture
u256 nonce = u256(utcTime() + rand());

Transaction tx(value, gasPrice, gas, dest, data, nonce);
// sec = KeyPair::create().secret();
Signature sig = sign(sec, tx.sha3(WithoutSignature));

tx.setBlockLimit(500);
tx.updateSignature(SignatureStruct(sig));
tx.forceSender(Address(0x2333));

return tx;
}
Expand All @@ -80,11 +77,8 @@ class TxDAGFixture : TestOutputHelperFixture
u256 nonce = u256(utcTime() + rand());

Transaction tx(value, gasPrice, gas, dest, data, nonce);
// sec = KeyPair::create().secret();
Signature sig = sign(sec, tx.sha3(WithoutSignature));

tx.setBlockLimit(500);
tx.updateSignature(SignatureStruct(sig));
tx.forceSender(Address(0x2333));

return tx;
}
Expand Down

0 comments on commit 7f83a0d

Please sign in to comment.