Skip to content

[ETCM-893] Add support for chains with ids bigger than 127#1006

Merged
leo-bogastry merged 2 commits intodevelopfrom
bugfix/ETCM-893-support-bigger-chainids
Jun 9, 2021
Merged

[ETCM-893] Add support for chains with ids bigger than 127#1006
leo-bogastry merged 2 commits intodevelopfrom
bugfix/ETCM-893-support-bigger-chainids

Conversation

@leo-bogastry
Copy link
Copy Markdown
Contributor

@leo-bogastry leo-bogastry commented Jun 3, 2021

Description

Currently Mantis only supports networks id a chaind id up to 127.
This brought problems syncing with Astor, that has a chainid of 212

Proposed Solution

Blockchain config, chainid field from Byte to BigInt
ECDSASignature, v field from Byte to BigInt

Testing

Synchronization with ETC, Sagano and Astor were successfull
On a private network (network id = 2 / chain id = 61) a new tx was created, included in a block and successfully propagated

Comment thread src/test/scala/io/iohk/ethereum/network/p2p/messages/NewBlockSpec.scala Outdated
@leo-bogastry leo-bogastry force-pushed the bugfix/ETCM-893-support-bigger-chainids branch from 71d59d3 to 4551213 Compare June 9, 2021 09:53
@leo-bogastry leo-bogastry merged commit 3982b03 into develop Jun 9, 2021
@leo-bogastry leo-bogastry deleted the bugfix/ETCM-893-support-bigger-chainids branch June 9, 2021 12:42
@dzajkowski dzajkowski restored the bugfix/ETCM-893-support-bigger-chainids branch June 11, 2021 08:33
dzajkowski added a commit that referenced this pull request Jun 11, 2021
dzajkowski added a commit that referenced this pull request Jun 11, 2021
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.

3 participants