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

Update data directory location based on network selected. #2400

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

web3-developer
Copy link
Contributor

No description provided.

if network == PortalNetwork.mainnet:
"db"
else:
"db_" & network.symbolName()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kdeme Note that this will use a different db directory and therefore a different database when using 'none' as the network. Does this sound ok? Will this break any deployments that you are aware of?

Copy link
Contributor

Choose a reason for hiding this comment

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

afaik this is only used in hive and our own local testnet script. As these are ephemeral tests it should be fine.

@web3-developer web3-developer changed the title Update data directory location based on network. Update data directory location based on network selected. Jun 19, 2024
if network == PortalNetwork.mainnet:
"db"
else:
"db_" & network.symbolName()
Copy link
Contributor

Choose a reason for hiding this comment

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

afaik this is only used in hive and our own local testnet script. As these are ephemeral tests it should be fine.

@web3-developer web3-developer merged commit bd2ca07 into master Jun 20, 2024
10 of 11 checks passed
@web3-developer web3-developer deleted the fluffy-update-testnet-datadir branch June 20, 2024 02:48
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.

None yet

2 participants