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: add network name to data path and --network flag to the miners #5291

Merged
merged 7 commits into from
Apr 12, 2023

Conversation

brianp
Copy link
Contributor

@brianp brianp commented Apr 5, 2023

Description

This PR does two jobs (sorry). Mostly because they're dependent tasks.

  • Add --network to the miners for simple setting switches
  • Add the network into the data directory path

Motivation and Context

This can be used to help select the default ports of communication for the base node and wallet, and also easily keeping network id's and folders separate.

How Has This Been Tested?

Manually

What process can a PR reviewer use to test or verify this change?

Run a base node, wallet, and miner. Set a base directory path as something like -b ./data/mytest and the network to igor --network igor and watch in amazement as the data directory ./data/mytest/igor/ is created to store information.

Closes #5272
Closes #5273

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

This is going the correct route,
We are going to need the network field in the miner for the separate folder path anyway.

@ghpbot-tari-project ghpbot-tari-project 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 Apr 11, 2023
@brianp brianp marked this pull request as ready for review April 11, 2023 21:26
@brianp
Copy link
Contributor Author

brianp commented Apr 12, 2023

Closes #5272
Closes #5273

Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

utACK

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Apr 12, 2023
@SWvheerden SWvheerden changed the title feat: add --network flag to the miners feat: add network name to path and --network flag to the miners Apr 12, 2023
@SWvheerden SWvheerden changed the title feat: add network name to path and --network flag to the miners feat: add network name to data path and --network flag to the miners Apr 12, 2023
@SWvheerden SWvheerden merged commit 1f04beb into tari-project:development Apr 12, 2023
SWvheerden added a commit that referenced this pull request Apr 12, 2023
##
[0.50.0-pre.0](v0.49.0-pre.6...v0.50.0-pre.0)
(2023-04-12)


### ⚠ BREAKING CHANGES

* add paging to utxo stream request (5302)

### Features

* add extended mask recovery
([5301](#5301))
([23d882e](23d882e))
* add network name to data path and --network flag to the miners
([5291](#5291))
([1f04beb](1f04beb))
* add other code template types
([5242](#5242))
([93e5e85](93e5e85))
* add paging to utxo stream request
([5302](#5302))
([3540309](3540309))
* add wallet daemon config
([5311](#5311))
([30419cf](30419cf))
* define different network defaults for bins
([5307](#5307))
([2f5d498](2f5d498))
* feature gates
([5287](#5287))
([72c19dc](72c19dc))
* fix rpc transaction conversion
([5304](#5304))
([344040a](344040a))
@brianp brianp deleted the fix-default-ports branch October 2, 2023 14:31
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.

Change data dir to include network name Make sure default GRPC ports correctly map
3 participants