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: better FFI feedback from transaction validation #4827

Merged
merged 4 commits into from
Oct 24, 2022

Conversation

SWvheerden
Copy link
Collaborator

@SWvheerden SWvheerden commented Oct 19, 2022

Description

This returns a u64 rather than a bool for the transaction validation callback.

Motivation and Context

Using a bool, the subscriber only knows if the validation runs through without error or failed.
By returning a u64 we give the subscriber much more information.
0: successfully
1: Already running
2: Internal failure
3: Communication failure.

How Has This Been Tested?

unit tests

Fixes: #4806

@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 Oct 19, 2022
@CjS77
Copy link
Collaborator

CjS77 commented Oct 19, 2022

utACK

@CjS77 CjS77 added P-merge Process - Queued for merging and removed P-acks_required Process - Requires more ACKs or utACKs labels Oct 19, 2022
@CjS77 CjS77 removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Oct 24, 2022
@CjS77 CjS77 merged commit 3c97be4 into tari-project:development Oct 24, 2022
@SWvheerden SWvheerden deleted the sw_tms_validation_feedback branch November 10, 2022 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-merge Process - Queued for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wallet TMS validation service sends back bool to FFI
3 participants