-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from koinos/79-fork-awareness
Upgrades `mempool` to become fork aware
- Loading branch information
Showing
12 changed files
with
743 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
file(GLOB HEADERS "include/koinos/mempool/*.hpp") | ||
add_library(koinos_mempool_lib | ||
mempool.cpp | ||
state.cpp | ||
${HEADERS}) | ||
target_link_libraries(koinos_mempool_lib Koinos::exception Koinos::log Koinos::util) | ||
target_link_libraries(koinos_mempool_lib Koinos::exception Koinos::log Koinos::util Koinos::state_db) | ||
target_include_directories(koinos_mempool_lib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
add_library(Koinos::mempool ALIAS koinos_mempool_lib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#include <koinos/chain/chain.pb.h> | ||
#include <koinos/state_db/state_db_types.hpp> | ||
|
||
namespace koinos::mempool::space { | ||
|
||
const chain::object_space& mempool_metadata(); | ||
const chain::object_space& pending_transaction(); | ||
const chain::object_space& transaction_index(); | ||
const chain::object_space& address_resources(); | ||
|
||
} // koinos::mempool::space |
Oops, something went wrong.