Skip to main content

Questions tagged [finality]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
29 views

How to contribute a bulk coretime region to an instantaneous coretime pool to earn rewards and so it remains renewable indefinitely?

If you buy a Kusama Coretime core, and you we want to use your core to run a parachain, it seems you need to deposit 40 KSM to reserve a ParaID, and then you have to place a reserve deposit of ~1087....
Luke Schoen's user avatar
  • 2,346
0 votes
0 answers
13 views

How justification are made thorugh the finality-gadget?

I'm working in the POW chain and i want to ask about the justifications which are provided for applying finality. How they are made and how can i make my own justifications for the blocks?.
Arunjot Singh's user avatar
2 votes
0 answers
55 views

Recovering chain from a backup

Prerequisites: A small subset of validators controlled by my company and a much larger set of external validators. A backup of the db folder was created 4 hours (1 epoch) before an incident. ...
Maksim Ramanenkau's user avatar
1 vote
1 answer
73 views

How to recover finality after validator "forced" it due to high finality lag (500+ blocks)

Following a relay runtime upgrade for westend 103000 (which contained a broken migration of the beefy keys), our chain stopped finalizing blocks (all validators, except 1, had the wrong keys on-chain)....
Crystalin's user avatar
  • 790
4 votes
1 answer
60 views

Validation of Transactions Executed in on_finalised Function within the Hook

Will transactions executed within the on_finalised function inside the hook undergo validation by the validators?
Deepak Chaudhary's user avatar
0 votes
0 answers
40 views

Finalization issue based on unexpected epoch change

On my rococo local relay chain, I found the unexpected epoch change when the finalized block stuck but the best block continue to generate. And when the issue happened, only one node show me this ...
Jay Pan's user avatar
  • 75
1 vote
0 answers
37 views

Replace GRANDPA finanlity

Hello can someone please help me understand all steps and all functions needed to be implemented for replacing finality gadget in experimental substrate chain?
llvm_ninja's user avatar
5 votes
0 answers
60 views

Is there any good way to keep an intermediate state for an operation between several transactions/blocks in a BABE/GRANDPA-based chain?

I know that the best practices suggest designing transactions (pallet calls) in a way that executes the operation atomically and doesn't keep any intermediate states. This guarantees, that in case a ...
Yahor Tsaryk's user avatar
0 votes
1 answer
122 views

Rococo node crashing due to beefy gadget

I am attempting to run a Rococo node from scratch. The command I am using is ./target/release/polkadot --chain=rococo --base-path /hdd/work/fat-db/rococo-actual --enable-offchain-indexing true --sync ...
Shoeb Siddiqui's user avatar
2 votes
0 answers
46 views

Cant produce new blocks with custom ChainSpec file

I was using substrate version of 4.0.0-dev-41ad4a6c9d7 and following the Add Trusted Nodes for making a custom account as a Authorites account here, I can't able to produce new blocks, I don't know ...
Mojo's user avatar
  • 95
0 votes
1 answer
101 views

Beefy justification subscription is not working

I would like to subscribe to the beefy justification stream on Rococo. The rpc for getFinalizedHead works fine, but I also require the justifications themselves. When I try to subscribe to the ...
Shoeb Siddiqui's user avatar
1 vote
1 answer
120 views

how to solve Detected prevote equivocation in the finality worker issue?

I am getting this issue after performing the solution of this issue How can we restart the chain if it becomes stuck during data migration? Tried to run the existing chain with new chain spec with bad ...
Pankaj's user avatar
  • 2,021
3 votes
0 answers
36 views

Are justifications of finalized block canonical?

Justifications are external to the signed part of the Substrate block, meaning they change after block is produced initially. However, I'm wondering if there is any assumption in Substrate (or ...
nazar-pc's user avatar
  • 551
3 votes
2 answers
140 views

How is an external observer supposed to reliably know when the GRANDPA authorities have changed?

The grandpa.proveFinality rpc provides the justification for the last block by a GRANDPA authorities set (of some set_id) and ancestry headers to prove the finality of a block within the same set_id. ...
Shoeb Siddiqui's user avatar
3 votes
1 answer
113 views

Block Finalization Issue and Recovery on Ternoa's Testnet

Over the past few days, we have encountered an issue with block finalization on the Ternoa testnet. It appears that the finalization process stopped, possibly due to one of the validators being ...
Immanuel John's user avatar
9 votes
2 answers
245 views

Grandpa stuck at "Polling"

I am trying to spin up a small BABE PoS network of four nodes and not able to get GRANDPA to start. It's hard to know what exact pieces of information to provide, here are some notes. A few notes: I ...
Justin Frevert's user avatar
4 votes
1 answer
135 views

GRANDPA finality proofs validation and equivocations

I was exploring GRANDPA verification algorithm and stumbled upon this code by the link https://github.com/paritytech/finality-grandpa/blame/master/src/lib.rs#L494 Source This is the part of method ...
Kirill Taran's user avatar
5 votes
2 answers
160 views

What's the best practice to check whether a block hash is in the canonical chain or not in Substrate?

Given a block hash that could be at any height, it's seemingly inefficient to traverse from the tip to the height and then compare if the block hash matches to see whether it's in the canonical chain. ...
xlc's user avatar
  • 71
2 votes
0 answers
69 views

Finality lagging

After about 50 blocks my block production slows down because none of the nodes are voting in the finality rounds. I'm working off a codebase that I added the grandpa pallet to, so it's possible I may ...
Víctor M. González's user avatar
4 votes
1 answer
182 views

How can I make my node generate blocks only when they receive transactions?

In substrate node template we can see that blocks are producing and finalizing if no transaction happening so how I can make my node to only generate blocks when there are transactions happening.
user avatar
0 votes
1 answer
78 views

Can a parachain experience a fork?

Under what circumstances will a parachain experience a fork where blocks later can be rearranged? Blocks are created by the collators and if one of the collators are offline and misses its turn there ...
Simson's user avatar
  • 1,201
4 votes
1 answer
133 views

Finality 502 blocks behind production on our relay testnet

After fixing stalled finality which was due to 5 of 13 valdidators broken, finality is now 502 blocks behind, but it is not catching up to production. We get this error: 2022-09-29 20:13:03 Safeguard ...
Ramsey - Decentration's user avatar
2 votes
4 answers
403 views

Cannot produce and finalize blocks with 2 node peer

I want to connect 2 nodes via custom chain specification via Internet IP public https://docs.substrate.io/tutorials/get-started/trusted-network/ I. STEP 1: Create Aura and grandpa --- NODE 01---- ...
oscar's user avatar
  • 33
3 votes
1 answer
282 views

Why are finalized blocks zero?

I've created a local live staging network with 1 bootnode and 3 validators. They all run in separate VMs. After block #52 I saw Backing off claiming new slot for block authorship: finality is lagging. ...
Burak's user avatar
  • 903
1 vote
0 answers
50 views

Can I Delete AURA and GRANDPA?

In this tutorial it is explained how to create a PoW node. Neither AURA nor GRANDPA are used throughout the tutorial. Also here it's stated that such node will not finalize produced blocks. The ...
CREESTL's user avatar
  • 484
5 votes
0 answers
151 views

Why has finalization stopped?

So I have a validator_count of 2, and 1 as minimum_validator_count. My validator is always online. I had my friend make another validator, had it enter the active validator set, and then join in as a ...
Purple_Turtle's user avatar
5 votes
1 answer
108 views

Web3 Foundation - Accountable light clients via BLS multisignature rollup

I listened to a talk at zksummit7 titled "Web3 Foundation Accountable light clients via BLS multisignature rollup" given by Alistair from web3f. My interpretation of the talk is that ...
TauLepton's user avatar
  • 107
1 vote
0 answers
47 views

How would adding more weight to grandpa voting of my initial authority at genesis affect finality?

Currently I am starting my node with one authority, and the genesis config for grandpa looks like this : grandpa: GrandpaConfig { authorities: vec![] }, Would it be possible to assign some privileged ...
Purple_Turtle's user avatar
5 votes
2 answers
372 views

How to find how many transactions are pending from address to be added to block?

In my application, I need to fire multiple transactions from same address, and want to create statusCheck() function, which will let me know how many transactions of total are still pending to be ...
pravin k's user avatar
  • 111
0 votes
2 answers
88 views

What are the various consensus mechanism and how are they best leveraged [closed]

Just looking for a further rationale around each consensus mechanism and what they aim to solve.
M Kemp's user avatar
  • 505
10 votes
1 answer
181 views

GRANDPA not finalizing with 2 of 3 nodes on network

I setup a small 3 node network that is using BABE and GRANDPA. When all 3 nodes are connected, it can produce blocks and finalize them. When 2 of the 3 nodes are connected, it can produce blocks but ...
Max's user avatar
  • 305
7 votes
2 answers
195 views

What is the internal logic of `--force-authoring` flag?

From where do I get the internal logic of --force-authoring flag? Here is my scenario: I've added a custom chain-spec that is similar to the default one where we are setting the environment for --dev ...
Pawan Bisht's user avatar
4 votes
1 answer
449 views

How to use noteStalled to recover from a finality lagging chain?

From the documentation: Grandpa: noteStalled (delay: u32, best_finalized_block_number: u32) interface: api.tx.grandpa.noteStalled summary: Note that the current authority set of the GRANDPA finality ...
Simson's user avatar
  • 1,201
8 votes
1 answer
701 views

Recovering from stalled finality (babe/grandpa)

While experimenting with a relay chain testnet, Decentration and I ran into this issue with multiple validators on the same node, stalled finality and got the chain into slow block-making mode. We ...
JelliedOwl - Paul's user avatar
12 votes
1 answer
753 views

What is the difference between Babe, Aura, and Grandpa?

Substrate supports "pluggable consensus" so a developer can choose from among several consensus algorithms. The main Substrate repository contains four algorithms: Aura Babe Proof of Work ...
JoshOrndorff's user avatar
  • 1,201