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

chore: combine genesis tx to JSON file #566

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

jleach
Copy link
Contributor

@jleach jleach commented Dec 13, 2022

Summary of Changes

To better automate keeping the genesis transaction up-to-date I'm propose merging them into a single JSON file that can easily be updated using the included JavaScript file make-block.js. This script pull down the genesis files from the ledger monitor repo and then imports all the latest genesis transactions.

Related Issues

Please reference here any issue #'s that are relevant to this PR, or simply enter "N/A" if this PR does not relate to any existing issues.

Pull Request Checklist

Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this);
  • Updated LICENSE-3RD-PARTY.md for any added dependencies or vendored components;
  • Updated documentation as needed for changed code and new or modified features;
  • Added sufficient tests so that overall code coverage is not reduced.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Pro Tip 🤓

  • Read our contribution guide at least once; it will save you a few review cycles!
  • Your PR will likely not be reviewed until all the above boxes are checked and all automated tests have passed.

PR template adapted from the Python attrs project.

scripts/make-blocks.js Show resolved Hide resolved
let ledgers = []

for (let t of targets) {
const aUrl = url.parse(t['genesisUrl'])
Copy link
Contributor

Choose a reason for hiding this comment

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

Any insight into why it's named this way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They're the networks I'm interested in being added to Bifold. I'll call it something more obvious.

@jleach jleach force-pushed the chore/update-genesis-tx branch from 6ace841 to 0f69483 Compare December 14, 2022 19:43
@jleach jleach marked this pull request as ready for review December 14, 2022 19:43
@jleach jleach requested a review from a team as a code owner December 14, 2022 19:43
@jleach jleach requested a review from amanji December 14, 2022 19:43
Signed-off-by: Jason C. Leach <[email protected]>
Signed-off-by: Jason C. Leach <[email protected]>
@jleach jleach force-pushed the chore/update-genesis-tx branch from 0f69483 to 133f44b Compare December 14, 2022 19:47
@jleach jleach merged commit fcc5631 into openwallet-foundation:main Dec 14, 2022
@jleach jleach deleted the chore/update-genesis-tx branch December 14, 2022 19:53
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.

2 participants