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

arithmetic operation overflow running Tendermint #8147

Closed
bgrieder opened this issue Mar 18, 2018 · 1 comment
Closed

arithmetic operation overflow running Tendermint #8147

bgrieder opened this issue Mar 18, 2018 · 1 comment
Labels
F1-panic 🔨 The client panics and exits without proper error handling. M2-config 📂 Chain specifications and node configurations. M4-core ⛓ Core client code / Rust. P5-sometimesoon 🌲 Issue is worth doing soon.

Comments

@bgrieder
Copy link

I'm running:

  • Which Parity version?: 1.9.4-beta
  • Which operating system?: MacOS
  • How installed?: via installer binaries
  • Are you fully synchronized?: no
  • Which network are you connected to?:custom
  • Did you try to restart the node?: yes

Hello,

I am getting

Thread 'IO Worker #1' panicked at 'arithmetic operation overflow', cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/bigint-4.2.0/src/uint.rs:1227

When starting a node with Tendermint (single validator).
Same issue with Parity 1.7.2

My config.toml is

[parity]
chain = "resources/blockchain/genesis.json"
base_path = "/Volumes/EXT/Ethereum/networks/XYZ"
[network]
port = 30300
[rpc]
port = 8540
apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]
[ui]
port = 8180
[websockets]
port = 8450
[account]
password = ["resources/blockchain/node.pwds"]
[mining]
engine_signer = "0x527c6d143a090e9c1c18ae31bb05c717ca94e915"
reseal_on_txs = "none"

The genesis.json file is

{
    "name": "XYZ",
    "engine": {
        "tendermint": {
            "params": {
                "validators": {
                    "list": [
                        "0x527c6d143a090e9c1c18ae31bb05c717ca94e915"
                    ]
                },
                "blockReward": "0x0",
                "timeoutPropose": "0x01",
                "timeoutPrevote": "0x01",
                "timeoutPrecommit": "0x01",
                "timeoutCommit": "0x01"
            }
        }
    },
    "genesis": {
        "seal": {
            "tendermint": {
                "round": "0x0",
                "proposal": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                "precommits": [
                    "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
                ]
            }
        },
        "difficulty": "0x0",
        "gasLimit": "0x0"
    },
    "params": {
        "networkID": "0x4d4144",
        "maximumExtraDataSize": "0x20",
        "minGasLimit": "0x00",
        "gasLimitBoundDivisor": "0x400"
    },
    "accounts": {
        "0x0000000000000000000000000000000000000001": {
            "balance": "1",
            "builtin": {
                "name": "ecrecover",
                "pricing": {
                    "linear": {
                        "base": 3000,
                        "word": 0
                    }
                }
            }
        },
        "0x0000000000000000000000000000000000000002": {
            "balance": "1",
            "builtin": {
                "name": "sha256",
                "pricing": {
                    "linear": {
                        "base": 60,
                        "word": 12
                    }
                }
            }
        },
        "0x0000000000000000000000000000000000000003": {
            "balance": "1",
            "builtin": {
                "name": "ripemd160",
                "pricing": {
                    "linear": {
                        "base": 600,
                        "word": 120
                    }
                }
            }
        },
        "0x0000000000000000000000000000000000000004": {
            "balance": "1",
            "builtin": {
                "name": "identity",
                "pricing": {
                    "linear": {
                        "base": 15,
                        "word": 3
                    }
                }
            }
        },
        "0x00996ff81E27562fa27b94c3E931B5225B46da18": {
            "balance": "10000000000000000000000"
        }
    }
}
@debris debris added F2-bug 🐞 The client fails to follow expected behavior. F1-panic 🔨 The client panics and exits without proper error handling. labels Mar 19, 2018
@bgrieder
Copy link
Author

This seems to be happening when the validators list contains a single entry.
I would expect that it is possible to set-up a chain with a single validator

@5chdn 5chdn added M4-core ⛓ Core client code / Rust. M2-config 📂 Chain specifications and node configurations. P5-sometimesoon 🌲 Issue is worth doing soon. and removed F2-bug 🐞 The client fails to follow expected behavior. labels Mar 28, 2018
@5chdn 5chdn added this to the 1.11 milestone Mar 28, 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. M2-config 📂 Chain specifications and node configurations. M4-core ⛓ Core client code / Rust. P5-sometimesoon 🌲 Issue is worth doing soon.
Projects
None yet
Development

No branches or pull requests

3 participants