Skip to content

Commit

Permalink
remove legacy DB modes (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni committed Jun 19, 2023
1 parent 308c940 commit 5b553a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 56 deletions.
54 changes: 0 additions & 54 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

option(WITH_MEMPOOL "Mempool enabled." OFF)
option(DB_TRANSACTION_UNCONFIRMED "DB Transactions Unconfirmed enabled." OFF)
option(DB_SPENDS "DB Spends enabled." OFF)
option(DB_HISTORY "DB History enabled." OFF)
option(DB_STEALTH "DB Stealth enabled." OFF)
option(DB_UNSPENT_LEGACY "DB Unspent Legacy enabled." OFF)
option(DB_LEGACY "DB Legacy enabled." OFF)
option(DB_NEW "DB New enabled." OFF)
option(DB_NEW_BLOCKS "DB Blocks New enabled." OFF)
option(DB_NEW_FULL "DB New Full enabled." OFF)
option(DB_READONLY_MODE "Readonly DB mode enabled." OFF)
option(USE_LIBMDBX "Uses libmdbx DB library." OFF)
option(STATISTICS "Collect statistics." OFF)
Expand All @@ -33,51 +24,6 @@ if (WITH_MEMPOOL)
add_definitions(-DKTH_WITH_MEMPOOL)
endif()

if (DB_TRANSACTION_UNCONFIRMED)
message(STATUS "Knuth: DB Transactions Unconfirmed enabled")
add_definitions(-DKTH_DB_TRANSACTION_UNCONFIRMED)
endif()

if (DB_SPENDS)
message(STATUS "Knuth: DB Spends enabled")
add_definitions(-DKTH_DB_SPENDS)
endif()

if (DB_HISTORY)
message(STATUS "Knuth: DB History enabled")
add_definitions(-DKTH_DB_HISTORY)
endif()

if (DB_STEALTH)
message(STATUS "Knuth: DB Stealth enabled")
add_definitions(-DKTH_DB_STEALTH)
endif()

if (DB_UNSPENT_LEGACY)
message(STATUS "Knuth: DB Unspent Legacy enabled")
add_definitions(-DKTH_DB_UNSPENT_LEGACY)
endif()

if (DB_LEGACY)
message(STATUS "Knuth: DB Legacy enabled")
add_definitions(-DKTH_DB_LEGACY)
endif()

if (DB_NEW)
message(STATUS "Knuth: DB New enabled")
add_definitions(-DKTH_DB_NEW)
endif()

if (DB_NEW_BLOCKS)
message(STATUS "Knuth: DB Blocks New enabled")
add_definitions(-DKTH_DB_NEW_BLOCKS)
endif()

if (DB_NEW_FULL)
message(STATUS "Knuth: DB New Full enabled")
add_definitions(-DKTH_DB_NEW_FULL)
endif()

if (DB_READONLY_MODE)
message(STATUS "Knuth: Readonly DB mode enabled")
add_definitions(-DKTH_DB_READONLY)
Expand Down
4 changes: 2 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class KnuthNodeExeConan(KnuthConanFileV2):
"march_strategy": ["download_if_possible", "optimized", "download_or_fail"],
"verbose": [True, False],
"mempool": [True, False],
"db": ['legacy', 'legacy_full', 'pruned', 'default', 'full'],
"db": ['dynamic'],
"db_readonly": [True, False],
"cxxflags": ["ANY"],
"cflags": ["ANY"],
Expand All @@ -41,7 +41,7 @@ class KnuthNodeExeConan(KnuthConanFileV2):
"march_strategy": "download_if_possible",
"verbose": False,
"mempool": False,
"db": "default",
"db": "dynamic",
"db_readonly": False,
"cmake_export_compile_commands": False,
"log": "spdlog",
Expand Down

0 comments on commit 5b553a4

Please sign in to comment.