Skip to content

Commit

Permalink
compatibility with realease_v013
Browse files Browse the repository at this point in the history
  • Loading branch information
moneroexamples committed May 21, 2019
1 parent 6cd783c commit 9607cc2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "src/xmregcore"]
path = src/xmregcore
url = https://github.com/moneroexamples/xmregcore
branch = master
branch = release_v13
15 changes: 1 addition & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,6 @@ if (NOT MYSQL_INCLUDE_DIR)
return()
endif()

macro(target_include_monero_directories target_name)

target_include_directories(${target_name}
PRIVATE
${MONERO_SOURCE_DIR}/src
${MONERO_SOURCE_DIR}/external
${MONERO_SOURCE_DIR}/build
${MONERO_SOURCE_DIR}/external/easylogging++
${MONERO_SOURCE_DIR}/contrib/epee/include
${MONERO_SOURCE_DIR}/external/db_drivers/liblmdb)

endmacro(target_include_monero_directories)


include_directories(${MYSQL_INCLUDE_DIR})

Expand Down Expand Up @@ -142,7 +129,7 @@ target_include_monero_directories(${PROJECT_NAME})
set(LIBRARIES
myxrm
myxrmcore
${Monero_LIBRARIES}
Monero::Monero
restbed
mysqlpp
mysqlclient
Expand Down
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,4 @@ add_library(myxrm
target_include_monero_directories(myxrm)
target_include_directories(myxrm PRIVATE "xmregcore")

#target_include_directories(myxmr
# PUBLIC
#${MONERO_SOURCE_DIR}/contrib/epee/include)


6 changes: 6 additions & 0 deletions src/CurrentBlockchainStatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,12 @@ MicroCoreAdapter::get_output_key(uint64_t amount,
{
cbs->get_output_keys(amount, absolute_offsets, outputs);
}

uint64_t
MicroCoreAdapter::get_num_outputs(uint64_t amount)
{
return 0;
}

void
MicroCoreAdapter::get_output_tx_and_index(
Expand Down
5 changes: 4 additions & 1 deletion src/CurrentBlockchainStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,10 @@ class MicroCoreAdapter : public AbstractCore
get_output_key(uint64_t amount,
vector<uint64_t> const& absolute_offsets,
vector<cryptonote::output_data_t>& outputs)
/*const*/ override;
override;

virtual uint64_t
get_num_outputs(uint64_t amount) override;

virtual void
get_output_tx_and_index(
Expand Down
2 changes: 1 addition & 1 deletion src/xmregcore

0 comments on commit 9607cc2

Please sign in to comment.