Skip to content

fix stealth range proofs threading and amount parse crashes - #13

Open
mooncitydev wants to merge 1 commit into
octra-labs:mainfrom
mooncitydev:fix-stealth-range-proofs-and-amount-parse
Open

fix stealth range proofs threading and amount parse crashes#13
mooncitydev wants to merge 1 commit into
octra-labs:mainfrom
mooncitydev:fix-stealth-range-proofs-and-amount-parse

Conversation

@mooncitydev

@mooncitydev mooncitydev commented Apr 27, 2026

Copy link
Copy Markdown

hey, was reading the stealth send path and noticed the two pvac_make_range_proof calls were fired on worker threads while both used the same g_pvac pk/sk handles. pretty sure libpvac is not meant to be entered concurrently on one keypair (native code, scratch buffers, who knows). easiest safe fix is to run the two proofs back to back like everything else in that handler.

also wrapped parse_amount_raw in a catch for stoll failures. huge digit strings or other junk could throw and bubble out as a 500 instead of a normal invalid amount response.

cheers

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.

1 participant