Skip to content

Consensus failure after validator is slashed #1197

Closed
@kidinamoto01

Description

My validator (Add: 295C0821D6D2EC71772E86773CD7F46F072CB764) is supposed to got slashed, but somehow it still send out the pre-vote messages on the same height, then the network has a consensus failure.

consensus state:

{
  "jsonrpc": "2.0",
  "id": "",
  "result": {
    "round_state": {
      "height/round/step": "60522/0/8",
      "start_time": "2018-06-10T20:25:16.272777362+08:00",
      "proposal_block_hash": "1609FBFF1CFC8AC12253C521DBE75D4D074BC0A8",
      "locked_block_hash": "1609FBFF1CFC8AC12253C521DBE75D4D074BC0A8",
      "valid_block_hash": "",
      "height_vote_set": [
        {
          "round": 0,
          "prevotes": [
            "Vote{0:09D7D7DFF2F5 60522/00/1(Prevote) 1609FBFF1CFC /3F0AB105005E.../ @ 2018-06-10T12:13:39.110Z}",
            "Vote{1:295C0821D6D2 60522/00/1(Prevote) 1609FBFF1CFC /5756233AEB09.../ @ 2018-06-10T12:25:15.676Z}",
            "Vote{2:38E4E59F5A12 60522/00/1(Prevote) 1609FBFF1CFC /BF493716F056.../ @ 2018-06-10T12:13:38.974Z}",
            "Vote{3:489222C1FA4C 60522/00/1(Prevote) 1609FBFF1CFC /239C2C75FD97.../ @ 2018-06-10T12:13:39.160Z}",
            "Vote{4:8C4644F001AF 60522/00/1(Prevote) 1609FBFF1CFC /5A20C1D8D21F.../ @ 2018-06-10T12:13:39.082Z}",
            "Vote{5:942BC57C8B90 60522/00/1(Prevote) 1609FBFF1CFC /2AE8B2FA50CC.../ @ 2018-06-10T12:13:38.772Z}",
            "Vote{6:94F711AE2B54 60522/00/1(Prevote) 1609FBFF1CFC /FEEAA88700AA.../ @ 2018-06-10T12:13:39.114Z}",
            "Vote{7:A1BDEA32E5B9 60522/00/1(Prevote) 1609FBFF1CFC /B5834B3C65F3.../ @ 2018-06-10T12:13:39.113Z}",
            "Vote{8:BF03F34B2A17 60522/00/1(Prevote) 1609FBFF1CFC /BF00979293FE.../ @ 2018-06-10T12:13:39.188Z}",
            "Vote{9:C59779BF393E 60522/00/1(Prevote) 1609FBFF1CFC /7A41CF06DFA7.../ @ 2018-06-10T12:13:39.066Z}",
            "Vote{10:D4DA32C97268 60522/00/1(Prevote) 1609FBFF1CFC /CD61F18401FB.../ @ 2018-06-10T12:13:37.764Z}",
            "Vote{11:D6DFA0D120BA 60522/00/1(Prevote) 1609FBFF1CFC /5655D73B6502.../ @ 2018-06-10T12:13:39.087Z}",
            "Vote{12:E647CEB57BC6 60522/00/1(Prevote) 1609FBFF1CFC /D3886CFA3886.../ @ 2018-06-10T12:13:39.131Z}"
          ],
          "prevotes_bit_array": "BA{13:xxxxxxxxxxxxx} 12114/12114 = 1.00",
          "precommits": [
            "Vote{0:09D7D7DFF2F5 60522/00/2(Precommit) 1609FBFF1CFC /CDBB93CCBC01.../ @ 2018-06-10T12:13:39.434Z}",
            "Vote{1:295C0821D6D2 60522/00/2(Precommit) 1609FBFF1CFC /9E130BFC03D9.../ @ 2018-06-10T12:25:15.681Z}",
            "nil-Vote",
            "Vote{3:489222C1FA4C 60522/00/2(Precommit) 1609FBFF1CFC /D26AC74E26C9.../ @ 2018-06-10T12:13:39.411Z}",
            "Vote{4:8C4644F001AF 60522/00/2(Precommit) 1609FBFF1CFC /9881D80BA1D8.../ @ 2018-06-10T12:13:39.382Z}",
            "nil-Vote",
            "Vote{6:94F711AE2B54 60522/00/2(Precommit) 1609FBFF1CFC /A7DBBCB2DDFB.../ @ 2018-06-10T12:13:39.367Z}",
            "Vote{7:A1BDEA32E5B9 60522/00/2(Precommit) 1609FBFF1CFC /132B436A9790.../ @ 2018-06-10T12:13:39.394Z}",
            "nil-Vote",
            "Vote{9:C59779BF393E 60522/00/2(Precommit) 1609FBFF1CFC /C77FF65C9699.../ @ 2018-06-10T12:13:39.406Z}",
            "Vote{10:D4DA32C97268 60522/00/2(Precommit) 1609FBFF1CFC /859EC03A0A03.../ @ 2018-06-10T12:13:38.026Z}",
            "Vote{11:D6DFA0D120BA 60522/00/2(Precommit) 1609FBFF1CFC /D1A6D6F6810F.../ @ 2018-06-10T12:13:39.443Z}",
            "nil-Vote"
          ],
          "precommits_bit_array": "BA{13:xx_xx_xx_xxx_} 8111/12114 = 0.67"
        },
        {
          "round": 1,
          "prevotes": [
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote"
          ],
          "prevotes_bit_array": "BA{13:_____________} 0/12114 = 0.00",
          "precommits": [
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote"
          ],
          "precommits_bit_array": "BA{13:_____________} 0/12114 = 0.00"
        }
      ]
    }
  }
}

related error message:

I[06-10|13:42:11.017] Absent validator 295C0821D6D2EC71772E86773CD7F46F072CB764 at height 60522 module=x/slashing
I[06-10|13:42:11.017] Validator 295C0821D6D2EC71772E86773CD7F46F072CB764 past min height of 100 and below signed blocks threshold of 50 module=x/slashing
panic: validator record not found for address: [211 220 15 245 159 124 59 84 139 122 250 54 85 97 184 127 208 32 138 248]


goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/stake.Keeper.updateBondedValidators(0xed0c60, 0xc4209ad880, 0xc4209625a0, 0xed0c60, 0xc4209ad860, 0xedb2c0, 0xc420a54dc0, 0xc4209625a0, 0x4, 0xed7280, ...)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions