Minor fix for integration tests.

This commit is contained in:
Gav Wood 2015-04-19 17:31:56 +02:00
parent 8ef8f2e805
commit b6ff445114

View File

@ -60,7 +60,7 @@ BOOST_AUTO_TEST_CASE(Complex)
CanonBlockChain bc; CanonBlockChain bc;
cout << bc; cout << bc;
State s(stateDB, BaseState::Empty, myMiner.address()); State s(stateDB, BaseState::CanonGenesis, myMiner.address());
cout << s; cout << s;
// Sync up - this won't do much until we use the last state. // Sync up - this won't do much until we use the last state.
@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE(Complex)
cout << s; cout << s;
// Inject a transaction to transfer funds from miner to me. // Inject a transaction to transfer funds from miner to me.
Transaction t(1000, 10000, 10000, me.address(), bytes(), s.transactionsFrom(myMiner.address()), myMiner.secret()); Transaction t(1000, 10000, 100000, me.address(), bytes(), s.transactionsFrom(myMiner.address()), myMiner.secret());
assert(t.sender() == myMiner.address()); assert(t.sender() == myMiner.address());
s.execute(bc.lastHashes(), t); s.execute(bc.lastHashes(), t);