-
Notifications
You must be signed in to change notification settings - Fork 39
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
MoneroWalletLight implementation #84
base: master
Are you sure you want to change the base?
Conversation
87ebc1a
to
9b5da05
Compare
7a4d5f7
to
cdad27c
Compare
Hey there, how's it going? Was wondering if these PRs are in or near a stable state to be able to merge, with basic functionality? |
Just starting to test this with light wallet prs applied to monero-java, monero-cpp, and monero-project, but I'm getting a segfault in the full wallet running
The existing tests will need to continue working before I can start testing and reviewing. |
|
||
// ------------------------ FULL WALLET INSTANCE METHODS -------------------------- | ||
|
||
JNIEXPORT jboolean JNICALL Java_monero_wallet_MoneroWalletLight_isViewOnlyJni(JNIEnv *env, jobject instance) { |
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.
I would really like to avoid duplicating the JNI bridge code for every light wallet function.
Is it possible to not override the native functions in MoneroWalletLight, and to call the existing JNI bridge functions without duplicating code?
Hey, just letting you know that folks are becoming quite interested in your work. :) They're discussing it in #monero-community-dev:monero.social. Hope to see you around soon! |
ea50977
to
5424aaf
Compare
5424aaf
to
85eca4a
Compare
I've tested your latest PRs and the segfault is no longer happening. I will test further. Just wanted try to explain the build situation one more time. For your PR to monero-project, monero-project/monero#9269, I think you should include monero-project/monero@886b470, which is a fix for macOS, and then add the changes from monero-project/monero@7b5213c in your commit, so there would 2 commits total in your PR. Then your PR to monero-cpp, woodser/monero-cpp#58, needs updated with my changes from woodser/monero-cpp#69. This will allow me to build the full stack on macOS with the latest API updates in monero-project. |
The pre-existing full wallet tests are passing with these PRs which is good progress. I'm not able to build monero-lws at the moment due to a build issue: vtnerd/monero-lws#135 While we work to get that fixed in the meantime, one change I would really like to see to this PR is to not duplicate the implementations within monero_jni_bridge.cpp. For example, Java_monero_wallet_MoneroWalletLight_getTxsJni and Java_monero_wallet_MoneroWalletFull_getTxsJni have duplicated implementations. Instead, they should call a common function for a single implementation. |
This PR enables monero wallet light jni implementation