-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
9ce5ab0
to
a14ca17
Compare
647d6aa
to
06d5214
Compare
Ethereum and BSC may use different version of primitives, not reasonable to merge and unify them, any tiny upgrade from chain side changing the primitives could break this. |
…thereum-primitives
panicked at 'called `Result::unwrap()` on an `Err` value: Error { cause: Some(Error { cause: Some(Error { cause: None, desc: "Not enough data to fill buffer" }), desc: "Could not decode variant byte for `Option`" }), desc: "Could not decode `Header::hash`" }' EIP-1559 introduces a new field in the header For us, we could clear the cc @hackfisher |
Prefer clear & migrate the ConfirmedHeaderParcels storage then apply the new type. |
The genesis's MMR root is wrong. cc @xiaoch05 |
54d67a6
to
c5f30a3
Compare
It's safe to use https://crates.parity.io/sp_externalities/trait.Externalities.html#tymethod.clear_prefix |
@@ -105,6 +110,7 @@ impl EthashPartial { | |||
m.insert(4370000, 3000000); | |||
m.insert(7280000, 2000000); | |||
m.insert(0x8c6180, 0x3d0900); | |||
m.insert(0xc3d0e8, 0xaae60); |
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.
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.
I forgot where I got these values.
Should we update this to the latest openethereum code in the next runtime upgrade?
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.
Yes, I double checked with geth, openethereum's code should be right.
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.
Should this be included in darwinia-v0.11.7?
I'll fire a PR right now.
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.
OK, darwinia-v0.11.7 branch is a good place, and don't forget we also need it in master.
DarwiniaHeader
spec. And we could finish the serialize/deserialize in bridger part with libraryethereum-primitives
. cc @xiaoch05There is a new field namedbase_fee_per_gas
, which type is anOption
. Maybe it's compatible with scale-codec.Relay::ConfirmedHeaderParcels
.RelayerGame::Affirmations
.ethereum-primitives
&chain-bsc
#655.