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

4449 nullchain without eth chain #4463

Merged
merged 10 commits into from
Dec 3, 2021
Merged

Conversation

wwestgarth
Copy link
Contributor

@wwestgarth wwestgarth commented Dec 1, 2021

closes #4449

When using the nullchain we no longer dial to the Ethereum chain. Staking accounts are mocked by instead reading the balance from the general account in the collateral engine for a built-int asset with a particular name. See the README for more details.

There are also some other misc. fixes.

@wwestgarth wwestgarth force-pushed the 4449-nullchain-without-eth-chain branch from 3dca30f to 7199501 Compare December 1, 2021 10:26
@wwestgarth wwestgarth marked this pull request as ready for review December 1, 2021 10:28
@wwestgarth wwestgarth requested a review from a team as a code owner December 1, 2021 10:28
@wwestgarth wwestgarth self-assigned this Dec 1, 2021
for k := range appstate.Validators {
pubKey, _ := base64.StdEncoding.DecodeString(k)
validators = append(validators,
abci.ValidatorUpdate{
Copy link
Contributor

Choose a reason for hiding this comment

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

you could do:
power := /does it matter here? if not, just 0/
validators = append(validators, abci.UpdateValidator(pubkey, power, "")

@wwestgarth wwestgarth merged commit 9e75c42 into develop Dec 3, 2021
@wwestgarth wwestgarth deleted the 4449-nullchain-without-eth-chain branch December 3, 2021 16:40
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.

Run with a null-blockchain without needing to connect to an Ethereum chain
2 participants