Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed May 18, 2024
1 parent e2e752c commit 1ef940f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ extern ADDAPI bool MONERO_Wallet_submitTransactionUR(void* wallet_ptr, const cha
extern ADDAPI bool MONERO_Wallet_hasUnknownKeyImages(void* wallet_ptr);
// virtual bool exportKeyImages(const std::string &filename, bool all = false) = 0;
extern ADDAPI bool MONERO_Wallet_exportKeyImages(void* wallet_ptr, const char* filename, bool all);
extern ADDAPI bool MONERO_Wallet_exportKeyImagesUR(void* wallet_ptr, size_t max_fragment_length, bool all) ;
extern ADDAPI const char* MONERO_Wallet_exportKeyImagesUR(void* wallet_ptr, size_t max_fragment_length, bool all) ;
// virtual bool importKeyImages(const std::string &filename) = 0;
extern ADDAPI bool MONERO_Wallet_importKeyImages(void* wallet_ptr, const char* filename);
extern ADDAPI bool MONERO_Wallet_importKeyImagesUR(void* wallet_ptr, const char* input);
Expand Down
24 changes: 19 additions & 5 deletions patches/monero/0012-WIP-UR-functions.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 5739318774025df8bb99eca5263c83bbbc228f01 Mon Sep 17 00:00:00 2001
From 692e1f93bc0ae7b40b6ecec5ea8f47658ffd1816 Mon Sep 17 00:00:00 2001
From: Czarek Nakamoto <[email protected]>
Date: Thu, 16 May 2024 17:28:59 +0200
Subject: [PATCH] WIP: UR functions
Expand All @@ -15,6 +15,7 @@ Now we are fully in memory
CMakeLists.txt | 4 +-
external/CMakeLists.txt | 1 +
external/bc-ur | 1 +
src/device/device_ledger.cpp | 2 +-
src/wallet/CMakeLists.txt | 1 +
src/wallet/api/pending_transaction.cpp | 33 +++
src/wallet/api/pending_transaction.h | 1 +
Expand All @@ -25,7 +26,7 @@ Now we are fully in memory
src/wallet/api/wallet2_api.h | 19 +-
src/wallet/wallet2.cpp | 96 ++++----
src/wallet/wallet2.h | 2 +
14 files changed, 447 insertions(+), 49 deletions(-)
15 files changed, 448 insertions(+), 50 deletions(-)
create mode 160000 external/bc-ur

diff --git a/.gitmodules b/.gitmodules
Expand Down Expand Up @@ -76,11 +77,24 @@ index 1b9761d70..0df9f9116 100644
\ No newline at end of file
diff --git a/external/bc-ur b/external/bc-ur
new file mode 160000
index 000000000..cafffa854
index 000000000..e37d44418
--- /dev/null
+++ b/external/bc-ur
@@ -0,0 +1 @@
+Subproject commit cafffa854d04c6266597935bb68f8d360b632ad6
+Subproject commit e37d44418bb9d4b222a81ec894d69f0a6d3730cc
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp
index a4b5f3ef0..7d004ea8c 100644
--- a/src/device/device_ledger.cpp
+++ b/src/device/device_ledger.cpp
@@ -318,7 +318,7 @@ namespace hw {
//automatic lock one more level on device ensuring the current thread is allowed to use it
#define AUTO_LOCK_CMD() \
/* lock both mutexes without deadlock*/ \
- boost::lock(device_locker, command_locker); \
+ boost::lock(command_locker, device_locker); \
/* make sure both already-locked mutexes are unlocked at the end of scope */ \
boost::lock_guard<boost::recursive_mutex> lock1(device_locker, boost::adopt_lock); \
boost::lock_guard<boost::mutex> lock2(command_locker, boost::adopt_lock)
diff --git a/src/wallet/CMakeLists.txt b/src/wallet/CMakeLists.txt
index 6095f99d5..b163212b7 100644
--- a/src/wallet/CMakeLists.txt
Expand Down Expand Up @@ -835,5 +849,5 @@ index 0d9a9298f..539d5056c 100644
bool import_key_images(signed_tx_set & signed_tx, size_t offset=0, bool only_selected_transfers=false);
crypto::public_key get_tx_pub_key_from_received_outs(const tools::wallet2::transfer_details &td) const;
--
2.45.0
2.25.1

0 comments on commit 1ef940f

Please sign in to comment.