-
Notifications
You must be signed in to change notification settings - Fork 759
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
Blockchain: replace static constructors #3491
Conversation
99aa250
to
d440361
Compare
Is the target branch of this PR correct? |
Sure (?). Did you miss the whole switching? We are now in breaking release develop mode for |
I see, but is an insane amount of conflicting files, so I assumed that it was still the wrong branch. |
Ah, yeah, so we will do have to do with merge conflicts likely if we do all this broadly applying PRs with a lot of changes in many files. No way around that I guess! 🙂 |
d440361
to
47d901f
Compare
7d45bf5
to
c267641
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, LGTM! 🎉
Will merge.
Works on #3487
Relates to #3489
Replaces all static
Blockchain
class methods with independently defined functions.Moves constructor functions to
packages/blockchain/src/constructors.ts
Blockchain.create(...)
>createBlockchain(...)
Blockchain.fromBlocksData(...)
> `createBlockchainFromBlocksData(...)moves helper functions to
packages/blockchain/src/helpers.ts
genGenesisStateRoot
getGenesisStateRoot