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

POA extradata breaks eth-ibft2 #91

Open
gattytto opened this issue Jul 23, 2021 · 0 comments
Open

POA extradata breaks eth-ibft2 #91

gattytto opened this issue Jul 23, 2021 · 0 comments

Comments

@gattytto
Copy link

gattytto commented Jul 23, 2021

we may need an option to have ibft2 parse the extradata differently when the consensus algo is POA and not POW, seems like the size of extradata goes from 32b to 140 or something around that.

the plugin:

 {
         "uri": "plugin://aleth.io/eth-ibft2?v=2.0.1"
    }],

in config

 "extraData": [{
                        "def": "module://aleth.io/eth-ibft2/block/lite/extra-data"
                    }]

the error in browser

Couldn't fetch data from adapter "local-adapter://2f7aff2c-eef1-4771-a1c3-077f689f191a/0" TypeError: Cannot read property 'forEach' of undefined
    at be.decode (ExtraDataDecoder.ts:30)
    at Object.<anonymous> (extraDataModule.ts:18)
    at Generator.next (<anonymous>)
    at tslib.es6.js:71
    at new Promise (<anonymous>)
    at h (tslib.es6.js:67)
    at Object.load (extraDataModule.ts:17)
    at DataLoader.ts:123 {context: {…}}
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

No branches or pull requests

1 participant