Menu

1 / 3

8 pull requests in 48 hours: what I fixed in Monero's light-wallet server

DEV Community: cpp·Dhivakar R·3 days ago
#1mDH3Uqf
#devtocpp#devto#dev#timeout#const
Long article (1382 words) — no AI summary yet.
Reading 0:00
15s threshold

My first contribution to monero-lws was eight pull requests, and all eight were merged within two days. Here is what was broken, how I found it, and what the maintainer's reviews taught me about getting fixes accepted upstream.

What monero-lws is

monero-lws is the Monero Light Wallet Server: it scans the chain for the view keys of many accounts at once, keeps the results in an LMDB database, and serves them to wallets through the MyMonero API. The wallet does not have to scan the chain itself. The server has to keep every account moving, so a stall or a lost index entry is a real bug for its users.

I run Dhiva Labs as a solo developer. I decided to improve this server upstream instead of writing my own. I cloned it, built it in Debug and Release, and went through the issue tracker for bugs I could reproduce. The eight PRs are #307 to #314, all against develop .

The timeout that grew: #311

The most satisfying bug was in do_wait() in src/rpc/client.cpp .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.