Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
fix: compilation with monero
Browse files Browse the repository at this point in the history
  • Loading branch information
moneroexamples committed Oct 4, 2019
1 parent cbbf1f9 commit 1db298b
Show file tree
Hide file tree
Showing 28 changed files with 25 additions and 24 deletions.
Empty file modified .circleci/config.yml
100644 → 100755
Empty file.
Empty file modified .gitmodules
100644 → 100755
Empty file.
30 changes: 10 additions & 20 deletions .ycm_extra_conf.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by YCM Generator at 2019-02-04 16:43:28.957650
# Generated by YCM Generator at 2019-10-03 15:56:37.946820

# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
Expand Down Expand Up @@ -36,28 +36,18 @@
flags = [
'-x',
'c++',
'-DASIO_STANDALONE=YES',
'-DBUILD_SSL=TRUE',
'-I/home/mwo2/monero/build',
'-I/home/mwo2/monero/contrib/epee/include',
'-I/home/mwo2/monero/external',
'-I/home/mwo2/monero/external/db_drivers/liblmdb',
'-I/home/mwo2/monero/external/easylogging++',
'-I/home/mwo2/monero/src',
'-I/home/mwo2/openmonero/ext/restbed/source',
'-I/home/mwo2/openmonero/src/xmregcore',
'-I/tmp/tmpK6lVvg/distribution/include',
'-I/tmp/tmpK6lVvg/gen',
'-I/usr/include/mysql',
'-I/usr/local/include',
'-I/usr/local/include/mysql',
'-I/usr/local/opt/openssl/include',
'-Wall',
'-Weffc++',
'-Wextra',
'-Wno-unknown-pragmas',
'-std=c++14',
'-I/usr/include/mysql++',
'-std=gnu++14',
'-isystem', '/home/mwo2/openmonero/ext/restbed/dependency/asio/asio/include',
'-isystem', '/home/mwo2/openmonero/ext/restbed/dependency/kashmir',
'-isystem', '/home/mwo2/monero/build',
'-isystem', '/home/mwo2/monero/contrib/epee/include',
'-isystem', '/home/mwo2/monero/external',
'-isystem', '/home/mwo2/monero/external/db_drivers/liblmdb',
'-isystem', '/home/mwo2/monero/external/easylogging++',
'-isystem', '/home/mwo2/monero/src',
]


Expand Down
Empty file modified cmake/FindASan.cmake
100644 → 100755
Empty file.
Empty file modified cmake/FindHIDAPI.cmake
100644 → 100755
Empty file.
Empty file modified cmake/FindMSan.cmake
100644 → 100755
Empty file.
Empty file modified cmake/FindMySQL++.cmake
100644 → 100755
Empty file.
Empty file modified cmake/FindRestbed.cmake
100644 → 100755
Empty file.
Empty file modified cmake/FindSanitizers.cmake
100644 → 100755
Empty file.
Empty file modified cmake/FindTSan.cmake
100644 → 100755
Empty file.
Empty file modified cmake/FindUBSan.cmake
100644 → 100755
Empty file.
Empty file modified cmake/sanitize-helpers.cmake
100644 → 100755
Empty file.
Empty file modified ext/ThreadPool.hpp
100644 → 100755
Empty file.
Empty file modified ext/ThreadSafeQueue.hpp
100644 → 100755
Empty file.
Empty file modified html/js/cn_util.js
100644 → 100755
Empty file.
Empty file modified html/js/controllers/send_coins.js
100644 → 100755
Empty file.
Empty file modified html/js/crypto.js
100644 → 100755
Empty file.
Empty file modified html/js/lib/mymonero-core.js
100644 → 100755
Empty file.
Empty file.
Empty file modified scripts/README.md
100644 → 100755
Empty file.
17 changes: 14 additions & 3 deletions src/OpenMoneroRequests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1710,9 +1710,19 @@ OpenMoneroRequests::get_tx(
if (current_bc_status->get_xmr_address_viewkey(
xmr_address, address_info, viewkey))
{
auto coreacc = make_account(xmr_address, view_key);

if (!coreacc)
{
// if creation failed, just close the session
session_close(session, j_response, UNPROCESSABLE_ENTITY,
"Cant create coreacc for " + xmr_address);
return;
}

auto identifier = make_identifier(tx,
make_unique<Output>(&address_info, &viewkey));
auto identifier = make_identifier(
tx,
make_unique<Output>(coreacc.get()));

identifier.identify();

Expand All @@ -1739,6 +1749,7 @@ OpenMoneroRequests::get_tx(
// a placeholder for exciting or new account data
XmrAccount acc;


// select this account if its existing one
if (xmr_accounts->select(xmr_address, acc))
{
Expand Down Expand Up @@ -1819,7 +1830,7 @@ OpenMoneroRequests::get_tx(
// and inputs in a given tx.

auto identifier = make_identifier(tx,
make_unique<Input>(&address_info, &viewkey,
make_unique<Input>(coreacc.get(),
&known_outputs_keys,
&mcore_addapter));
identifier.identify();
Expand Down
2 changes: 1 addition & 1 deletion src/xmregcore
Empty file modified tests/JsonTx.cpp
100644 → 100755
Empty file.
Empty file modified tests/JsonTx.h
100644 → 100755
Empty file.
Empty file modified tests/res/tx/README.md
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit 1db298b

Please sign in to comment.