From b72d2dff623665f42985ef9b6419636ca35a51d1 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sun, 31 Mar 2024 09:19:47 +0200 Subject: feat: split MONERO and WOWNERO prefixed functions So basically: when we open the .so file, we define some symbols, and it appears that if we load something else, with the same symbols, under the same thread we cause some funky behaviour - like calling function a wownero function MONERO_Wallet_address() resulting in a monero address being generated. Needless to say, this is undesired, and a blocker for https://github.com/cypherstack/stack_wallet/pull/818 I'm afraid that this may not solve all of our issues (but will solve some significant roadblocks), because of the "genesis block" issue, as output of nm -gDC release/wownero/x86_64-linux-gnu_libwallet2_api_c.so | grep genesis indicate that these functions may share *something* in common across both WOW and XMR libraries. In a case in which this fix won't be sufficient, I think that the way forward would be to close the dynamic libraries, but before we do that I want to check if maybe there is a change to run multiple wallets at once. --- wownero_libwallet2_api_c/src/main/cpp/helpers.cpp | 1 + 1 file changed, 1 insertion(+) create mode 120000 wownero_libwallet2_api_c/src/main/cpp/helpers.cpp (limited to 'wownero_libwallet2_api_c/src/main/cpp/helpers.cpp') diff --git a/wownero_libwallet2_api_c/src/main/cpp/helpers.cpp b/wownero_libwallet2_api_c/src/main/cpp/helpers.cpp new file mode 120000 index 0000000..524768b --- /dev/null +++ b/wownero_libwallet2_api_c/src/main/cpp/helpers.cpp @@ -0,0 +1 @@ +../../../../monero_libwallet2_api_c/src/main/cpp/helpers.cpp \ No newline at end of file -- cgit v1.2.3