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: config cleanup #4938

Conversation

agubarev
Copy link
Contributor

Description

Removed max_randomx_vms from BaseNodeStateMachineConfig and the config preset, now passing the initialized RandomXFactory in via the initializer, same for bypass_range_proof_verification but passing only the setting

Motivation and Context

#4909

There are a few duplicate config keys that exist in the base node config and the base node state machine config
meaning settings and behaviour could mismatch.

base_node.max_randomx_vms (this setting will not work)
base_node.bypass_range_proof_verification (this setting will not work)
base_node.force_sync_peers (this was fixed in #4647 but the fix is a bit hacky)

pub struct BaseNodeStateMachineConfig {

https://github.com/tari-project/tari/blob/development/applications/tari_base_node/src/config.rs#L109

ref #4646

How Has This Been Tested?

manually

…onfig preset; now passing initialized RandomXFactory in the initializer, same for `bypass_range_proof_verification` but passing just the setting
@agubarev agubarev changed the title fix: removed max_randomx_vms and bypass_range_proof_verification from BaseNodeStateMachineConfig [issue #4909] fix: removed max_randomx_vms and bypass_range_proof_verification from BaseNodeStateMachineConfig issue #4909 Nov 21, 2022
@agubarev agubarev changed the title fix: removed max_randomx_vms and bypass_range_proof_verification from BaseNodeStateMachineConfig issue #4909 fix: config cleanup Nov 21, 2022
@stringhandler stringhandler merged commit 68f990f into tari-project:development Nov 23, 2022
@agubarev agubarev deleted the issue-4909-cleanup_conflicting_base_node_configs branch November 23, 2022 08:40
sdbondi added a commit to sdbondi/tari that referenced this pull request Nov 23, 2022
* development:
  fix: config cleanup (tari-project#4938)
  fix(ci): update GHA release process (tari-project#4945)
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.

3 participants