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.
This commit is contained in:
Czarek Nakamoto
2024-03-31 09:19:47 +02:00
parent b034340879
commit b72d2dff62
14 changed files with 2642 additions and 28 deletions

16
.gitignore vendored
View File

@@ -1,14 +1,2 @@
boost_*
libexpat
libiconv-*
libsodium*
libzmq*
openssl-*
polyseed*
unbound*
utf8proc*
zlib*
perl-*
prefix
release/
build/