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

feat: increase wallet FFI error codes #5118

Merged

Conversation

SWvheerden
Copy link
Collaborator

@SWvheerden SWvheerden commented Jan 16, 2023

Description

When a wallet function is called after wallet_create and before wallet_add_base_node_peer the wallet will error with 211. This increases the error codes to correctly error on 212 NoBaseNodeKeysProvided

Motivation and Context

Fixes: #5116
Increases error clarity to help callee know whats wrong.

How Has This Been Tested?

manual

@SWvheerden SWvheerden marked this pull request as draft January 16, 2023 10:15
@SWvheerden SWvheerden closed this Jan 18, 2023
@SWvheerden SWvheerden reopened this Jan 18, 2023
@SWvheerden SWvheerden changed the title fix: potential 211 error in wallet FFI feat: increase wallet FFI error codes Jan 18, 2023
@CjS77 CjS77 added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Jan 18, 2023
@SWvheerden SWvheerden marked this pull request as ready for review January 18, 2023 12:53
@CjS77 CjS77 removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Jan 18, 2023
@stringhandler stringhandler merged commit d5db596 into tari-project:development Jan 18, 2023
@SWvheerden SWvheerden deleted the SW_fix_wallet_211_error branch January 19, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wallet FFI crashes with error 211
3 participants