-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Do Not Merge] Adding "light wallet server" that is mymonero compatible #4139
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
add_subdirectory(db) | ||
|
||
# For both the server and admin utility. | ||
set(lws_common_sources config.cpp error.cpp json.cpp) | ||
set(lws_common_headers config.h error.h fwd.h json.h) | ||
|
||
monero_add_library(light_wallet_server-common ${lws_common_sources} ${lws_common_headers}) | ||
target_link_libraries(light_wallet_server-common common serialization-new) | ||
|
||
# Only used by server (not admin). For utilities that are unit tested | ||
set(lws_lib_sources random_outputs.cpp) | ||
set(lws_lib_headers random_outputs.h) | ||
|
||
monero_add_library(light_wallet_server-lib ${lws_lib_sources} ${lws_lib_headers}) | ||
target_link_libraries(light_wallet_server-lib light_wallet_server-common wallet) | ||
|
||
monero_add_executable(light_wallet_server server_main.cpp rates.cpp rest_server.cpp rpc.cpp scanner.cpp) | ||
target_include_directories(light_wallet_server PUBLIC ${ZMQ_INCLUDE_PATH}) | ||
target_link_libraries(light_wallet_server | ||
PRIVATE | ||
cryptonote_core | ||
cncrypto | ||
common | ||
daemon_messages | ||
device | ||
epee | ||
light_wallet_server-common | ||
light_wallet_server-db | ||
light_wallet_server-lib | ||
lmdb_lib | ||
daemon_messages | ||
${Boost_CHRONO_LIBRARY} | ||
${Boost_FILESYSTEM_LIBRARY} | ||
${Boost_PROGRAM_OPTIONS_LIBRARY} | ||
${Boost_THREAD_LIBRARY} | ||
${CMAKE_THREAD_LIBS_INIT} | ||
${EXTRA_LIBRARIES} | ||
${ZMQ_LIB} | ||
) | ||
set_property(TARGET light_wallet_server PROPERTY OUTPUT_NAME "monero-light-wallet-server") | ||
|
||
monero_add_executable(light_wallet_server_admin admin_main.cpp) | ||
target_link_libraries(light_wallet_server_admin | ||
PRIVATE | ||
cryptonote_core | ||
cncrypto | ||
common | ||
light_wallet_server-common | ||
light_wallet_server-db | ||
serialization-new | ||
${Boost_PROGRAM_OPTIONS_LIBRARY} | ||
${EXTRA_LIBRARIES} | ||
) | ||
set_property(TARGET light_wallet_server_admin PROPERTY OUTPUT_NAME "monero-light-wallet-server-admin") | ||
|
||
install(TARGETS light_wallet_server DESTINATION bin) | ||
install(TARGETS light_wallet_server_admin DESTINATION bin) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍