Skip to content

Finality Provider doesn't start from the last_finalized_height when unjail #495

Open
@maiquanghiep

Description

@maiquanghiep

Start up log

2025-06-10T15:02:12.229736Z	debug	the finality-provider status is changed to JAILED	{"fp_btc_pk": "1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888", "old_status": "JAILED"}
2025-06-10T15:02:12.230117Z	info	starting finality provider	{"pk": "1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888"}
2025-06-10T15:02:12.353936Z	info	determined poller starting height	{"pk": "1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888", "start_height": 14660, "finality_activation_height": 300, "last_voted_height": 14658, "last_finalized_height": 14659, "highest_voted_height": 14659}
2025-06-10T15:02:12.353991Z	info	starting the finality provider instance	{"pk": "1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888", "height": 14660}

When the FP is unjailed, it only starts from the latest block but not from the last_finalized_height

2025-06-10T15:10:33.844995Z	info	successfully unjailed finality-provider on babylon	{"btc_pk": "1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888", "txHash": "0854DD76E6735A6004593B742531ED49E814DA365FDCAD7EDFB10BDEB0054C90"}
2025-06-10T15:10:35.367556Z	debug	the finality-provider received new block(s), start processing	{"pk": "1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888", "start_height": 14818, "end_height": 14818}
2025-06-10T15:10:54.512046Z	info	successfully submitted the finality signature to the consumer chain	{"consumer_id": "devnet-12", "pk": "1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888", "start_height": 14819, "end_height": 14819, "tx_hash": "F5923D7866E826285664057AFC222F9DF158CD0A4DB7C433CC145ACC22C5BA13"}

In this case, the finality is halted and waiting for this FP's vote (1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888)

Voting table at 14660:

babylond q finality finality-providers-at-height 14660 --output json --node https://rpc.devnet.babylonlabs.io | jq '.finality_providers[]  | [.btc_pk_hex, .voting_power]'
[
  "1e09717ee5c8d91a319a585884c3c0cb4ad244d61cc495a46e45f08f81ab7888",
  "125150"
]
[
  "238b366dfa985665bc1898999e5c8a10523d5090f09524720deccd413394d5e7",
  "33150"
]
[
  "61550462adbff78ce0694a0643b452f408f3696f64647f0bedbf2a0ee38a9d58",
  "44700"
]
[
  "6874ea58ff1803d6d51bc91371d4f727ad306091f4aedafad730c13613f2def3",
  "26400"
]
[
  "ee9da95e9fecbb2191943c56a109d1dc81787a77994ad9ef89278850a58e4876",
  "18000"
]

Votes at 14660:

babylond q finality votes-at-height 14660 --node https://rpc.devnet.babylonlabs.io
btc_pks:
- 238b366dfa985665bc1898999e5c8a10523d5090f09524720deccd413394d5e7
- 61550462adbff78ce0694a0643b452f408f3696f64647f0bedbf2a0ee38a9d58
- 6874ea58ff1803d6d51bc91371d4f727ad306091f4aedafad730c13613f2def3
- ee9da95e9fecbb2191943c56a109d1dc81787a77994ad9ef89278850a58e4876

Metadata

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