Move sources to src and build objs in obj.

This commit is contained in:
Arthur Britto
2012-03-06 22:43:06 -08:00
parent 82af29a21d
commit c513e45754
95 changed files with 55 additions and 39 deletions

25
src/PubKeyCache.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef __PUBKEYCACHE__
#define __PUBKEYCACHE__
#include <map>
#include <boost/thread/mutex.hpp>
#include "uint256.h"
#include "key.h"
class PubKeyCache
{
private:
boost::mutex mLock;
std::map<uint160, CKey::pointer> mCache;
public:
PubKeyCache() { ; }
CKey::pointer locate(const uint160& id);
CKey::pointer store(const uint160& id, CKey::pointer key);
void clear();
};
#endif