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

Move chain_params to a json file #287

Merged
merged 3 commits into from Jan 7, 2024
Merged

Conversation

Duddino
Copy link
Member

@Duddino Duddino commented Jan 5, 2024

Abstract

In order to write e2e tests we need to differentiate between the testing and production environment.
The configurable chain parameters were moved to a JSON file, this is to allow the configuration to happen outside of the source code.
This also allows custom MPW builds to change their parameters without the need to edit the source code.
A config npm script was added that automatically copies the production config if the file doesn't exist

Testing

Build MPW and test that it receives the same chain_params as before

@Duddino Duddino added the Enhancement New feature or request label Jan 5, 2024
@Duddino Duddino self-assigned this Jan 5, 2024
Copy link

netlify bot commented Jan 5, 2024

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit 6234d4b
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/6597ddf4fa7d9f0008a7ee14
😎 Deploy Preview https://deploy-preview-287--cheery-moxie-4f1121.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Duddino Duddino mentioned this pull request Jan 5, 2024
Copy link
Member

@JSKitty JSKitty left a comment

Choose a reason for hiding this comment

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

tACK 6234d4b

Ran npm i after cloning, production params were copied over by postInstall, deployed with npm run dev and npm run build ran from file.

@JSKitty JSKitty merged commit 32cc4ed into PIVX-Labs:master Jan 7, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants