mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixed hardcoded /tmp path.
This commit is contained in:
parent
34b1ba4814
commit
8aeece1eb5
6
vm.cpp
6
vm.cpp
@ -21,6 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
|
#include <boost/filesystem/operations.hpp>
|
||||||
#include <secp256k1.h>
|
#include <secp256k1.h>
|
||||||
#include <BlockChain.h>
|
#include <BlockChain.h>
|
||||||
#include <State.h>
|
#include <State.h>
|
||||||
@ -38,10 +39,11 @@ public:
|
|||||||
{
|
{
|
||||||
c_genesisDifficulty = (u256)1;
|
c_genesisDifficulty = (u256)1;
|
||||||
|
|
||||||
|
string tmpDir = (boost::filesystem::temp_directory_path() / "vmTest").string();
|
||||||
KeyPair p = KeyPair::create();
|
KeyPair p = KeyPair::create();
|
||||||
Overlay o(State::openDB("/tmp/vmTest", true));
|
Overlay o(State::openDB(tmpDir, true));
|
||||||
State s(p.address(), o);
|
State s(p.address(), o);
|
||||||
BlockChain bc("/tmp/vmTest", true);
|
BlockChain bc(tmpDir, true);
|
||||||
|
|
||||||
cout << s;
|
cout << s;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user