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

fix: feature flag separation for validation #5137

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

Removes OpenSSL from the WalletFFI lib as its not required or used by it.
Fixes validation feature flags.

Motivation and Context

Recent refactor added base_node feature flag to the walletFFI. This should not be done as it adds in all the base node
specific crates that not required by the wallet like randomX, lmdb etc.
This splits the validation traits and implementations between the features transactions and base_node.

How Has This Been Tested?

Manual and unit tests

Fixes: #4974

@SWvheerden SWvheerden force-pushed the sw_refactor_features branch 3 times, most recently from 25b8887 to d358a3e Compare January 27, 2023 05:41
Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with the idea, but there are too many cfg's here. It's a recipe for dev mistakes and it's not clear when it needs to be applied versus not. I can see someone just adding #cfg[base_node] to every method.

Is there not a way we can group it all of this together under a common crate or file?

base_layer/core/src/validation/error.rs Outdated Show resolved Hide resolved
base_layer/core/src/validation/error.rs Outdated Show resolved Hide resolved
base_layer/core/src/validation/helpers.rs Outdated Show resolved Hide resolved
@SWvheerden SWvheerden added A-base_node Area - The Tari base node executable and libraries P-controversial Process - This PR or Issue is controversial and/or requires more attention that simpler issues labels Jan 30, 2023
@stringhandler
Copy link
Collaborator

Just waiting for CI

@stringhandler stringhandler merged commit 0e83463 into tari-project:development Feb 1, 2023
@SWvheerden SWvheerden deleted the sw_refactor_features branch February 2, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-base_node Area - The Tari base node executable and libraries P-controversial Process - This PR or Issue is controversial and/or requires more attention that simpler issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable FFI build for aarch64-apple-ios-sim
3 participants