diff options
author | warptangent <warptangent@inbox.com> | 2015-01-25 21:36:09 -0800 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-02-02 11:53:09 -0800 |
commit | 84fe5fbd65100a731608471ef0a4c462ea8f5626 (patch) | |
tree | 70c9a0f292631feb8145aa97eff38f564087dc32 /src/cryptonote_core/cryptonote_basic.h | |
parent | Merge PR 25 into blockchain (diff) | |
download | monero-84fe5fbd65100a731608471ef0a4c462ea8f5626.tar.xz |
Add compile-time support for both db implementations: in-memory and LMDB
Usage:
default is lmdb for blockchain branch:
$ make release
same as:
$ DATABASE=lmdb make release
for original in-memory implementation:
$ DATABASE=memory make release
Diffstat (limited to 'src/cryptonote_core/cryptonote_basic.h')
-rw-r--r-- | src/cryptonote_core/cryptonote_basic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_basic.h b/src/cryptonote_core/cryptonote_basic.h index f50a19f9e..2be76c0de 100644 --- a/src/cryptonote_core/cryptonote_basic.h +++ b/src/cryptonote_core/cryptonote_basic.h @@ -50,6 +50,8 @@ #include "misc_language.h" #include "tx_extra.h" +#define DB_MEMORY 1 +#define DB_LMDB 2 namespace cryptonote { |