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

Error when updating validators contract #8065

Closed
afiorenza opened this issue Mar 6, 2018 · 8 comments
Closed

Error when updating validators contract #8065

afiorenza opened this issue Mar 6, 2018 · 8 comments
Labels
F1-panic 🔨 The client panics and exits without proper error handling. M4-core ⛓ Core client code / Rust. P5-sometimesoon 🌲 Issue is worth doing soon.
Milestone

Comments

@afiorenza
Copy link

I'm running:

  • Which Parity version?: 1.9.4-beta
  • Which operating system?: Linux (Ubuntu)
  • How installed?: via installer
  • Are you fully synchronized?: yes
  • Which network are you connected to?: Private
  • Did you try to restart the node?: no

I have a PoA chain running with 5 nodes. This is my current genesis:

{
  "name": "Bitsign",
  "engine": {
    "authorityRound": {
      "params": {
        "stepDuration": "5",
        "blockReward": "0xDE0B6B3A7640000",
        "validators" : {
          "safeContract": "0x0000000000000000000000000000000000000005"
        }
      }
    }
  },
  "params": {
    "gasLimitBoundDivisor": "0x400",
    "maximumExtraDataSize": "0x20",
    "minGasLimit": "0x1388",
    "networkID" : "0x2323"
  },
  "genesis": {
    "seal": {
      "authorityRound": {
        "step": "0x0",
        "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
      }
    },
    "difficulty": "0x20000",
    "gasLimit": "0x5B8D80",
    "timestamp": 1512771499
  },
  "accounts": {
    "0000000000000000000000000000000000000001": { "balance": "1000000000000000000", "builtin": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } } },
    "0000000000000000000000000000000000000002": { "balance": "1000000000000000000", "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } },
    "0000000000000000000000000000000000000003": { "balance": "1000000000000000000", "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } },
    "0000000000000000000000000000000000000004": { "balance": "1000000000000000000", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } },
    "0x0000000000000000000000000000000000000005": { "balance": "1000000000000000000", "constructor" : "6060604052602060405190810160405280730a0f29a9b479d91f6d112b203c7d9db0cb4cdb8473ffffffffffffffffffffffffffffffffffffffff16815250600190600161004e92919061008f565b506001600260006101000a81548160ff021916908315150217905550341561007557600080fd5b5b60016000908054610088929190610119565b505b6101ae565b828054828255906000526020600020908101928215610108579160200282015b828111156101075782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906100af565b5b509050610115919061016b565b5090565b82805482825590600052602060002090810192821561015a5760005260206000209182015b8281111561015957825482559160010191906001019061013e565b5b509050610167919061016b565b5090565b6101ab91905b808211156101a757600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101610171565b5090565b90565b610743806101bd6000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806340a141ff1461005f5780634d238c8e1461009857806375286211146100d1578063b7ab4db5146100e6575b600080fd5b341561006a57600080fd5b610096600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610151565b005b34156100a357600080fd5b6100cf600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610320565b005b34156100dc57600080fd5b6100e46103ac565b005b34156100f157600080fd5b6100f9610489565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561013d5780820151818401525b602081019050610121565b505050509050019250505060405180910390f35b600080600260009054906101000a900460ff16151561016f57600080fd5b600091505b600180549050821015610319578273ffffffffffffffffffffffffffffffffffffffff166001838154811015156101a757fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561030b578190505b60018080549050038110156102a857600180820181548110151561021457fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660018281548110151561025057fe5b906000526020600020900160005b6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b80806001019150506101f4565b6001808080549050038154811015156102bd57fe5b906000526020600020900160005b6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600180548091906001900361030191906105f1565b5061030a61051e565b5b5b8180600101925050610174565b5b5b505050565b600260009054906101000a900460ff16151561033b57600080fd5b6001805480600101828161034f919061061d565b916000526020600020900160005b83909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506103a761051e565b5b5b50565b600160009080546103be929190610649565b506001600260006101000a81548160ff0219169083151502179055507f8564cd629b15f47dc310d45bcbfc9bcf5420b0d51bf0659a16c67f91d276325360006040518080602001828103825283818154815260200191508054801561047857602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161042e575b50509250505060405180910390a15b565b61049161069b565b600080548060200260200160405190810160405280929190818152602001828054801561051357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116104c9575b505050505090505b90565b6000600260006101000a81548160ff0219169083151502179055506001430340600019167f55252fa6eee4741b4e24a74a70e9c11fd2c2281df8d6ea13126ff845f7825c896001604051808060200182810382528381815481526020019150805480156105e057602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610596575b50509250505060405180910390a25b565b8154818355818115116106185781836000526020600020918201910161061791906106af565b5b505050565b8154818355818115116106445781836000526020600020918201910161064391906106af565b5b505050565b82805482825590600052602060002090810192821561068a5760005260206000209182015b8281111561068957825482559160010191906001019061066e565b5b50905061069791906106d4565b5090565b602060405190810160405280600081525090565b6106d191905b808211156106cd5760008160009055506001016106b5565b5090565b90565b61071491905b8082111561071057600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055506001016106da565b5090565b905600a165627a7a72305820becc3f37992c78e668efe1f88f680507b6c7d888a514cd2ceecc935d3c09155f0029"
   }
  }
}

I'm trying to change the validator contract for a new (already deployed) version so i changing the multi to:

"validators" : {
          "multi": {
            "0": {
              "contract": "0x0000000000000000000000000000000000000005"
            },
            "10000": {
              "contract": "0x90edd4af7507DbaFF65AE9036722667516C9E67f"
            }
          }
        }

Without touching any other parameter. But i'm receiving the following error when it starts syncing:

stack backtrace:
   0:     0x55db2c7608dc - <no info>

Thread 'Verifier #0' panicked at 'proof produced by this engine; therefore it is valid; qed', /checkout/src/libcore/option.rs:891

Thanks in advance.

@debris debris added the F2-bug 🐞 The client fails to follow expected behavior. label Mar 6, 2018
@debris
Copy link
Collaborator

debris commented Mar 6, 2018

@afiorenza thanks for the report!

@debris debris added the F1-panic 🔨 The client panics and exits without proper error handling. label Mar 6, 2018
@afiorenza
Copy link
Author

@debris You are welcome. Do you have an ETA for this? This is blocking some updates on our chain.

@debris
Copy link
Collaborator

debris commented Mar 10, 2018

@maxidev
Copy link

maxidev commented Mar 25, 2018

Is there any update on this? PoA networks using validator contracts actually can't fork the chain due to this bug.
Thanks in advance.

@5chdn
Copy link
Contributor

5chdn commented Mar 26, 2018

#6211 #6656 ?

@5chdn 5chdn added P5-sometimesoon 🌲 Issue is worth doing soon. M4-core ⛓ Core client code / Rust. labels Mar 26, 2018
@5chdn 5chdn added this to the 1.11 milestone Mar 26, 2018
@5chdn 5chdn removed the F2-bug 🐞 The client fails to follow expected behavior. label Mar 26, 2018
@5chdn 5chdn modified the milestones: 1.11, 1.12 Apr 24, 2018
@5chdn 5chdn modified the milestones: 2.0, 2.1 Jul 17, 2018
@andresilva
Copy link
Contributor

andresilva commented Jul 27, 2018

Could you check if this is still happening on the latest versions?

@andresilva
Copy link
Contributor

Also I'm assuming when you changed the chainspec to switch to contract validator set on block #10000 the chain was still behind that block right, e.g. chain was at block #9000 you updated the spec and then you restarted all nodes (before hitting block #10000)?

@Tbaut
Copy link
Contributor

Tbaut commented Aug 3, 2018

Closing as stalled.

@Tbaut Tbaut closed this as completed Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F1-panic 🔨 The client panics and exits without proper error handling. M4-core ⛓ Core client code / Rust. P5-sometimesoon 🌲 Issue is worth doing soon.
Projects
None yet
Development

No branches or pull requests

6 participants