mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2144 from chriseth/cleanupSecretStore
Cleanup of SecretStore.
This commit is contained in:
commit
4f52ad7e5b
@ -22,6 +22,7 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
#include <libdevcrypto/Common.h>
|
||||||
#include <libtestutils/Common.h>
|
#include <libtestutils/Common.h>
|
||||||
#include <libtestutils/BlockChainLoader.h>
|
#include <libtestutils/BlockChainLoader.h>
|
||||||
#include <libtestutils/FixedClient.h>
|
#include <libtestutils/FixedClient.h>
|
||||||
@ -116,3 +117,13 @@ void ParallelClientBaseFixture::enumerateClients(std::function<void(Json::Value
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MoveNonceToTempDir::MoveNonceToTempDir()
|
||||||
|
{
|
||||||
|
crypto::Nonce::setSeedFilePath(m_dir.path() + "/seed");
|
||||||
|
}
|
||||||
|
|
||||||
|
MoveNonceToTempDir::~MoveNonceToTempDir()
|
||||||
|
{
|
||||||
|
crypto::Nonce::reset();
|
||||||
|
}
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
#include <libdevcore/TransientDirectory.h>
|
||||||
#include <libethereum/BlockChain.h>
|
#include <libethereum/BlockChain.h>
|
||||||
#include <libethereum/ClientBase.h>
|
#include <libethereum/ClientBase.h>
|
||||||
|
|
||||||
@ -78,5 +79,13 @@ struct JsonRpcFixture: public ClientBaseFixture
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct MoveNonceToTempDir
|
||||||
|
{
|
||||||
|
MoveNonceToTempDir();
|
||||||
|
~MoveNonceToTempDir();
|
||||||
|
private:
|
||||||
|
TransientDirectory m_dir;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user