Browse Source

Mining

cl-refactor
Dimitry 10 years ago
parent
commit
9c19f5d61f
  1. 6
      test/libethereum/blockchain.cpp

6
test/libethereum/blockchain.cpp

@ -132,9 +132,8 @@ void doBlockchainTests(json_spirit::mValue& _v, bool _fillin)
TransientDirectory td_stateDB;
FullBlockChain<Ethash> bc(rlpGenesisBlock.out(), AccountMap(), td_bc.path(), WithExisting::Kill);
OverlayDB database (State::openDB(td_stateDB.path(), h256{}, WithExisting::Kill));
State state(database, BaseState::Empty);
state = importer.m_statePre;
//OverlayDB database (State::openDB(td_stateDB.path(), h256{}, WithExisting::Kill));
State state = importer.m_statePre;
state.commit();
//import previous blocks
@ -210,7 +209,6 @@ void doBlockchainTests(json_spirit::mValue& _v, bool _fillin)
return;
}
blObj["rlp"] = toHex(block.blockData(), 2, HexPrefix::Add);
//get valid transactions

Loading…
Cancel
Save