Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

do not activate genesis epoch in immediate transition validator contract #6349

Merged
merged 1 commit into from
Aug 29, 2017

Conversation

rphmeier
Copy link
Contributor

Fixes #6343

@mills-nick can you try with a build of this PR?

@rphmeier rphmeier added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Aug 22, 2017
@debris debris added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 22, 2017
@mills-nick
Copy link

@rphmeier Yes, I'll try to reproduce #6343 with this branch.

@mills-nick
Copy link

From the logs it looks as though the new validator contract ABI is no longer being called. However we still have a genesis hash mismatch.

2017-08-24 02:46:41  main INFO parity::run  Starting Parity/v1.8.0-unstable-2129eda-20170817/x86_64-linux-gnu/rustc1.19.0
2017-08-24 02:46:41  main INFO parity::run  Keys path /home/parity/.parity/keys/GMOPrivateChain
2017-08-24 02:46:41  main INFO parity::run  DB path /home/parity/.parity/chains/GMOPrivateChain/db/c5d6558cf4358f74
2017-08-24 02:46:41  main INFO parity::run  Path to dapps /home/parity/.parity/dapps
2017-08-24 02:46:41  main INFO parity::run  State DB configuration: fast
2017-08-24 02:46:41  main INFO parity::run  Operating mode: active
2017-08-24 02:46:41  main INFO ethcore::service  Configured for GMOPrivateChain using AuthorityRound engine
2017-08-24 02:46:42   INFO miner  Updated conversion rate to Ξ1 = US$317.61 (374823260 wei/gas)
2017-08-24 02:46:42  IO Worker #1 TRACE sync  == Connected 0: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:42  IO Worker #1 TRACE sync  Sending status to 0, protocol version 2
2017-08-24 02:46:42  IO Worker #2 TRACE sync  == Connected 1: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:42  IO Worker #2 TRACE sync  Sending status to 1, protocol version 2
2017-08-24 02:46:42  IO Worker #2 TRACE sync  == Disconnecting 1: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:42  IO Worker #1 TRACE sync  New peer 0 (protocol: 2, network: 12345, difficulty: Some(329997746176), latest:92b1…7483, genesis:aa49…2d26, snapshot:Some(2510000))
2017-08-24 02:46:42  IO Worker #1 TRACE sync  Status packet from expired session 0:Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:42  IO Worker #2 TRACE sync  == Disconnecting 0: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:43  IO Worker #0 TRACE sync  == Connected 30: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:43  IO Worker #0 TRACE sync  Sending status to 30, protocol version 2
2017-08-24 02:46:43  IO Worker #0 TRACE sync  == Connected 29: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:43  IO Worker #0 TRACE sync  Sending status to 29, protocol version 2
2017-08-24 02:46:43  IO Worker #2 TRACE sync  == Disconnecting 30: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:43  IO Worker #2 TRACE sync  New peer 29 (protocol: 2, network: 12345, difficulty: Some(329997746176), latest:92b1…7483, genesis:aa49…2d26, snapshot:Some(2510000))
2017-08-24 02:46:43  IO Worker #2 TRACE sync  Peer 29 genesis hash mismatch (ours: 2dec…d4ae, theirs: aa49…2d26)
2017-08-24 02:46:43  IO Worker #0 TRACE sync  == Disconnecting 29: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:44  IO Worker #1 TRACE sync  == Connected 57: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:44  IO Worker #1 TRACE sync  Sending status to 57, protocol version 2
2017-08-24 02:46:44  IO Worker #0 TRACE sync  == Disconnecting 57: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:45  IO Worker #1 TRACE sync  == Connected 57: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:45  IO Worker #1 TRACE sync  Sending status to 57, protocol version 2
2017-08-24 02:46:45  IO Worker #1 TRACE sync  == Disconnecting 57: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:46  IO Worker #1 INFO network  Public node URL: enode://1dd330b5aa5b08c0dafb94435a92fc7e2166dbdea521c8e44a9bc2df3f53e6a8534a4b9f3c853f299e7a059ec2cf4136c2fb2c6590a8f2dc0251f15f4aab4060@10.0.2.15:30303
2017-08-24 02:46:46  IO Worker #2 TRACE sync  == Connected 57: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:46  IO Worker #2 TRACE sync  Sending status to 57, protocol version 2
2017-08-24 02:46:46  IO Worker #1 TRACE sync  == Disconnecting 57: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:49  IO Worker #2 TRACE sync  == Connected 18: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:49  IO Worker #2 TRACE sync  Sending status to 18, protocol version 2
2017-08-24 02:46:49  IO Worker #0 TRACE sync  == Disconnecting 18: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:49  IO Worker #3 TRACE sync  == Connected 39: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:49  IO Worker #3 TRACE sync  Sending status to 39, protocol version 2
2017-08-24 02:46:49  IO Worker #3 TRACE sync  == Disconnecting 39: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:50  IO Worker #3 TRACE sync  == Connected 10: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:50  IO Worker #3 TRACE sync  Sending status to 10, protocol version 2
2017-08-24 02:46:50  IO Worker #3 TRACE sync  == Disconnecting 10: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:51  IO Worker #1 TRACE sync  == Connected 10: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:51  IO Worker #1 TRACE sync  Sending status to 10, protocol version 2
2017-08-24 02:46:51  IO Worker #2 TRACE sync  == Disconnecting 10: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:52  IO Worker #0 TRACE sync  == Connected 10: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:46:52  IO Worker #0 TRACE sync  Sending status to 10, protocol version 2
2017-08-24 02:46:52  IO Worker #1 TRACE sync  New peer 10 (protocol: 2, network: 12345, difficulty: Some(329998008320), latest:b6a7…77a6, genesis:aa49…2d26, snapshot:Some(2510000))
2017-08-24 02:46:52  IO Worker #1 TRACE sync  Peer 10 genesis hash mismatch (ours: 2dec…d4ae, theirs: aa49…2d26)
2017-08-24 02:46:52  IO Worker #2 TRACE sync  == Disconnecting 10: Parity/v1.6.8-beta-c396229-20170608/x86_64-linux-gnu/rustc1.17.0
2017-08-24 02:47:12  IO Worker #1 INFO import     0/25 peers      8 KiB chain   21 KiB db  0 bytes queue 448 bytes sync  RPC:  0 conn,  0 req/s,   0 µs

@mills-nick
Copy link

Is the 1.7.x POA genesis somehow different to earlier version genesis blocks? Because of the epoch data maybe?

@rphmeier
Copy link
Contributor Author

Epoch data isn't actually included in the state, so it shouldn't be different. I'll have to investigate the differences, but AFAIK we haven't made any changes to how the genesis header is computed.

@mills-nick
Copy link

mills-nick commented Aug 25, 2017

I think the genesis mismatch is my fault. It seems as though I was using the wrong genesis json! I'll check this again and report back here.

@mills-nick
Copy link

I double checked my chain-spec.json and it is mostly identical to the chain-spec.json on the network.
With the only differences being that I added "immediateTransitions": true for the authorityRound.params and "gasLimitBoundDivisor": "0x400" for the params sections.

So, the genesis mismatch seems to be a real issue.

@gavofyork gavofyork added A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A8-looksgood 🦄 Pull request is reviewed well. labels Aug 28, 2017
@rphmeier
Copy link
Contributor Author

rphmeier commented Aug 29, 2017

Could you send over your chain spec or at least one which reproduces the issue for testing? The genesis mismatch is another issue entirely.

@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. labels Aug 29, 2017
@gavofyork gavofyork merged commit 36d046f into master Aug 29, 2017
@gavofyork gavofyork deleted the immediate-transitions-fix branch August 29, 2017 13:16
@mills-nick
Copy link

@rphmeier please refer to the attached chain-spec.json.txt and config.toml.txt files in #6343 to reproduce the genesis mismatch issue.

gavofyork pushed a commit that referenced this pull request Sep 11, 2017
* Fix slow balances (#6471)

* Update token updates

* Update token info fetching

* Update logger

* Minor fixes to updates and notifications for balances

* Use Pubsub

* Fix timeout.

* Use pubsub for status.

* Fix signer subscription.

* Process tokens in chunks.

* Fix tokens loaded by chunks

* Linting

* Dispatch tokens asap

* Fix chunks processing.

* Better filter options

* Parallel log fetching.

* Fix signer polling.

* Fix initial block query.

* Token balances updates : the right(er) way

* Better tokens info fetching

* Fixes in token data fetching

* Only fetch what's needed (tokens)

* Fix linting issues

* Revert "Transaction permissioning (#6441)"

This reverts commit eed0e8b.

* Revert "Revert "Transaction permissioning (#6441)""

This reverts commit 8f96415.

* Update wasm-tests.

* Fixing balances fetching

* Fix requests tracking in UI

* Fix request watching

* Update the Logger

* PR Grumbles Fixes

* PR Grumbles fixes

* Linting...

* eth_call returns output of contract creations (#6420)

* eth_call returns output of contract creations

* Fix parameters order.

* Save outputs for light client as well.

* Don't accept transactions above block gas limit.

* Expose health status over RPC (#6274)

* Node-health to a separate crate.

* Initialize node_health outside of dapps.

* Expose health over RPC.

* Bring back 412 and fix JS.

* Add health to workspace and tests.

* Fix compilation without default features.

* Fix borked merge.

* Revert to generics to avoid virtual calls.

* Fix node-health tests.

* Add missing trailing comma.

* Fixing/removing failing JS tests.

* do not activate genesis epoch in immediate transition validator contract (#6349)

* Fix memory tracing.

* Add test to cover that.

* ensure balances of constructor accounts are kept

* test balance of spec-constructed account is kept
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants