Skip to content
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

monero_wallet_light implementation #58

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

everoddandeven
Copy link

This PR includes monero_wallet_light implementation

@woodser
Copy link
Owner

woodser commented Mar 21, 2024

Should #55 be closed?

Copy link
Owner

@woodser woodser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick review with some initial thoughts.

monero_wallet_full is essentially a wrapper to wallet2. What do you think of having monero_wallet_light extend monero_wallet_full to avoid the code duplication?

FYI my Element Matrix appears to be having a problem where my messages aren't being received.

src/utils/monero_utils.cpp Outdated Show resolved Hide resolved
src/utils/monero_utils.h Outdated Show resolved Hide resolved
src/wallet/monero_wallet_light.cpp Outdated Show resolved Hide resolved
src/wallet/monero_wallet_light.cpp Outdated Show resolved Hide resolved
src/wallet/monero_wallet_light.cpp Outdated Show resolved Hide resolved
return output;
}

std::shared_ptr<monero_light_rates> monero_light_rates::deserialize(const std::string& config_json) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the rates in the light wallet. Why have them?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be useful to calculate the balance in local currency, maybe exposing a method like float monero_wallet_light::get_rate(string fiat_code)

Copy link
Owner

@woodser woodser Mar 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be useful to calculate the balance in local currency, maybe exposing a method like float monero_wallet_light::get_rate(string fiat_code)

Where are the rates coming from, the light wallet server? I ask because typically pricing can be a service on top of a pure native XMR wallet, and not part of the wallet api itself, which would create a dependence on external services.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rates object comes from lws server, in particularly in the get_address_info method

src/wallet/monero_wallet_light.cpp Outdated Show resolved Hide resolved
@plowsof
Copy link

plowsof commented Mar 21, 2024

FYI my Element Matrix appears to be having a problem where my messages aren't being received.

Matrix dot org and monero dot social homeservers have issues sending/receiving to/from eachother. Its being looked in to.

@woodser
Copy link
Owner

woodser commented Mar 25, 2024

@plowsof Any update on the issue sending messages to each other?

@everoddandeven
Copy link
Author

FYI my Element Matrix appears to be having a problem where my messages aren't being received.

May we can talk on IRC #monero-bounties channel?

@everoddandeven
Copy link
Author

I made the changes, I still have to test though

@everoddandeven
Copy link
Author

I'm successfully running monero_light_tests on my monero-project fork, branch light_wallet_maintenance

@everoddandeven everoddandeven reopened this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants