vtnerd / monero-lws

Monero Light Wallet Server (scans monero viewkeys and implements mymonero API). Fast LMDB backend.
BSD 3-Clause "New" or "Revised" License
72 stars 27 forks source link

Fix divide by zero in subaddresses n_maj #114

Closed vtnerd closed 2 months ago

vtnerd commented 4 months ago

Found by @everoddandeven

everoddandeven commented 4 months ago

signal-2024-04-26-181317_003 signal-2024-04-26-181317_002 signal-2024-04-26-181146_003 signal-2024-04-26-181146_002 I think I have founde other bugs. Now all subaddrs methods are crashing server with 2024-04-26 16:16:13.995 D Schema expected array: 2 array elements of at least 2 bytes each exceeds 3 remaining bytes terminate called after throwing an instance of 'std::system_error' what(): thrown at storage.cpp:1014: Schema expected array error

vtnerd commented 4 months ago

Could you provide some steps to reproduce this behavior? I just ran both of the /provision_subaddrs requests and it worked as expected.

I have a feeling that reproducing the DB state might be difficult.