Skip to main content

Questions tagged [grandpa]

Any questions relating to the Grandpa pallet or block finality in Substrate chains.

Filter by
Sorted by
Tagged with
2 votes
0 answers
53 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
71 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
0 votes
0 answers
9 views

grandpa: maximum length of finalized blocks

In Grandpa finality protocol, blocks are finalized in chunks. Is there a limit of how many blocks can be in 1 array of blocks. Is there a way to estimate this amount?
cocokick's user avatar
  • 165
2 votes
0 answers
19 views

How to add validators node on running chain in pow substrate chain with grandpa?

I'm working on pow substrate chain with grandpa. How can i add the grandpa validators in the running chain?
Deepak Chaudhary's user avatar
0 votes
1 answer
85 views

Solochain mainnet experiencing problems finalizing blocks after a few months

We are operating a custom Solochain NPOS blockchain with Substrate. After running a stable testnet for months, we promoted to mainnet version 1. Initially the mainnet was operating normally, with ...
Lucas Cardeal's user avatar
1 vote
0 answers
23 views

How do I disable grandpa in polkadot-parachain?

There is a flag that you can add when running polkadot-parachain --no-grandpa Disable GRANDPA. Disables voter when running in validator mode, otherwise disable the ...
forgetso's user avatar
  • 1,502
3 votes
0 answers
35 views

Why does Grandpa not use sr25519?

I note that Grandpa uses ed25519 keys rather than the substrate standard of sr25519. Is it because sr25519 signatures are non-deterministic? ( Why are sr25519 signatures non-deterministic? ) or is ...
Squirrel's user avatar
  • 3,849
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
1 vote
1 answer
65 views

thread 'tokio-runtime-worker' has overflowed its stack fatal runtime error: stack overflow Aborted (core dumped)

we are running a stand alone Blockchain network by using POA consensus mechanism. The chain was working fine and after producing 8 Lac Blocks the nodes we down and now i have tried to re-execute same ...
BlockBird's user avatar
0 votes
1 answer
51 views

Can we use AccountId20 with babe and other pallets?

As frontier now integrate natively the AccountId20 type, I wonder if it is compatible with all other pallets like BABE, Staking, ... Is there a place where we can check it or do we know some ...
Dubs's user avatar
  • 294
1 vote
1 answer
47 views

Grandpa AuthorityWeights

There's code in Grandpa to have different "Authority Weights" assigned to each validator. It doesn't appear to be accessible beyond in a genesis block. Does someone know the intended purpose ...
blakeb's user avatar
  • 35
0 votes
0 answers
14 views

What's the trusting/trusted period of GRANDPA client?

For what period of time it's safe for a GRANDPA light-client to trust a specific header without the need for full validation? Is it the same as the unbonding one?
Vlad Markushin's user avatar
1 vote
1 answer
117 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
2 votes
2 answers
230 views

Block finalization stalled

I have been running a testing network recently and they have encountered a very strange situation: the finalized has stopped at # 107379 and cannot be further confirmed. The logs of each consensus ...
Yang Elden's user avatar
3 votes
2 answers
138 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
5 votes
1 answer
169 views

Local Relay Stops Finalizing

I've been working on getting a test relay up and running in the cloud (Docker containers running on Debian virtual machines) for remote testing, and we've got everything running. The relay chain is ...
Romulus10's user avatar
  • 121
9 votes
2 answers
242 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
131 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
6 votes
0 answers
66 views

How to achieve instant finality with substrate?

Ideally, I would like to build a chain with Substrate but using Tendermint as the consensus engine. The problem is that it's a lot of work to implement it correctly. But what if I use AURA (round ...
Timothée Delabrouille's user avatar
11 votes
1 answer
149 views

Understanding service.rs in substrate-node-template

Recently, I have been trying to understand the block import for Aura and Grandpa but I don't understand some parts in substrate-node-template/node/service.rs: 1- In the new_partial() method when ...
dadzerlaze's user avatar
  • 1,083
2 votes
0 answers
66 views

Switching from `Aura` to `Babe` consensus causes error "Incomplete block import pipeline" on genesis block

I am trying to switch from Aura to Babe consensus. After successful building and node start I am getting an error "Block import error: Incomplete block import pipeline.". This happens with ...
bis rkharisov's user avatar
2 votes
2 answers
94 views

No authoring in network using custom keys, a local Rococo chain specification, and a modified substrate-parachain-template

I have read through the documentation on Substrate.io and have created a network of nodes in both a relay and parachain with custom keys. The network is running in Kubernetes (I would like to have ...
Niels Vistisen's user avatar
1 vote
1 answer
85 views

How to start a GRANDPA blockchain without any initial voters?

I've tried modifying the repository so initial voters for the grandpa pallet. In doing so, I noticed there are many checks to prevent that modification. The reason why we do not want any initial ...
Kofi's user avatar
  • 143
3 votes
1 answer
85 views

The flow of a GRANDPA round

I am curious about some details regarding a GRANDPA round (explained in detail). An elected validator that is designated as the primary broadcasts the highest block that it thinks could be final from ...
Daan van der Plas's user avatar
0 votes
1 answer
91 views

How to list waiting validators?

We can list the active set with session::validators() and/or babe::authorities() How to list waiting validators though?
user1813's user avatar
  • 103
0 votes
1 answer
27 views

Node template based network runs with multiple peers using the same identity

I noticed some interesting behavior while running a local test net on my machine. I booted up a network between the default Alice and Bob accounts that are used in all the tutorials, and they ...
domoarigato's user avatar
1 vote
1 answer
193 views

Is it possible to start a substrate BABE blockchain with no Grandpa authorities and BABE validators?

I'm trying to implement a PoS network on substrate using substrate provided pallets - pallet_session, pallet_staking, pallet_babe, etc. The current Runtime and chain spec implementation is similar to ...
Kofi's user avatar
  • 143
2 votes
0 answers
67 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
3 votes
1 answer
251 views

are justification in the Block the actual votes cast by validators in GRANDPA?

Correct me if i'm wrong: In GRANDPA, validators cast votes for the next finalized Block, which is as far as i understand the Block hash signed + metadata(round number,...etc). My questions are: Are ...
dadzerlaze's user avatar
  • 1,083
2 votes
1 answer
27 views

Equivocations error causing some nodes to crash (Follow up question)

We've been investigating an issue that's most likely related to this post, and this issue. But unsure if the underlying cause is the same, I'm looking for some help to confirm my understanding of this ...
Mo Elshami's user avatar
0 votes
1 answer
38 views

Are Periodic Grandpa Voter Errors To Be Expected?

We have been losing anywhere from one to three nodes at a time with Grandpa Voter Errors at random block numbers ranging from 1600 to over 183K. Thus far we have not found any configuration in the ...
KathrynColleen's user avatar
0 votes
1 answer
134 views

How To Prevent "Grandpa Voter Error" And Randomly Deleted Keystore

We have been experimenting with lots of different configurations to avoid this error, with no luck. Eventually, this error takes the entire network down. The most interesting part is that the ...
KathrynColleen's user avatar
1 vote
1 answer
206 views

Is the random number generation safe for pallet_lottery?

I read this post of Shawn https://substrate.stackexchange.com/a/128/2484 and found out, that random numbers for lotteries are not reliable, even with VRF on GRANDPA since the validators could earn ...
Chralt's user avatar
  • 543
2 votes
1 answer
124 views

Where the GRANDPA round state stored at?

I'm writing a tool to build a fork-off chain. But the new chain can not get finalized. I've skipped the Babe/Grandpa/Session's storage. I also check the chain state, that no historical storage under ...
AurevoirXavier's user avatar
  • 10.4k
2 votes
1 answer
59 views

Currently, does substrate/polkadot make use of PrimaryProposal stage?

While observing the GRANDPA communication between 2 Substrates nodes and 1 Gossamer node I notice that only Prevotes and Precommmits were being exchanged. Currently, are the PrimaryProposal messages ...
eclesiomelo's user avatar
0 votes
1 answer
112 views

Essential task failed [closed]

2022-08-02 18:53:10 〽️ Prometheus exporter started at 127.0.0.1:9616 2022-08-02 18:53:10 🥩 run BEEFY worker, best grandpa: #13709439. 2022-08-02 18:53:10 creating instance on iface 65.21.88.129 2022-...
AurevoirXavier's user avatar
  • 10.4k
2 votes
1 answer
89 views

How to benchmark pallet Grandpa?

at the moment I struggle a bit with the question of "How to benchmark the Grandpa pallet". Like it seems it's not possible to auto-generate weights at the moment (see here: https://github....
Janislav's user avatar
  • 319
0 votes
1 answer
189 views

NPoS with Aura - no planned era

UPDATE: The election always finalizes with Election Fallback and set of validators doesnt't and neither does the Era, but sessions keep increasing. I understand that an era is just a couple of ...
Muhammad Talha Dar's user avatar
1 vote
1 answer
97 views

Why is App_Crypto not building in frame system runtime [closed]

When building I am running into this error: error: cannot find macro `format` in this scope --> /Users/jackson/.cargo/git/checkouts/substrate-7e08433d4c370a21/22d40c7/primitives/finality-...
Jacgoldberg's user avatar
3 votes
1 answer
52 views

manually creating new blocks with Babe

Currently my consensus engine is Babe, and my finality gadget is Grandpa. But for testing environments I'm wondering if that there is a way to manually force the engine to produce a new block when I ...
Alex Won's user avatar
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
2 votes
1 answer
71 views

Is it possible to have multiple GRANDPA Pause/Resume for one fork?

While reading the spec polkadot-host-spec_v0.1.1.pdf is not clear if the host should track multiple or just one GRANDPA Pause/Resume consensus message per fork until the target block is finalized/...
eclesiomelo's user avatar
10 votes
1 answer
184 views

Are Offences ever pruned?

In our runtime we have a custom implementation of offence reporting. I want to write an adapter for grandpa equivocation offences (implementing the ReportOffence trait), and have been using the ...
dan_chainflip's user avatar
5 votes
0 answers
147 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
1 vote
2 answers
120 views

Grandpa + Babe finality issues

Starting with the node-template, I switched my chains block authoring from Aura to Babe, which compiles fine but does not manage to finalize any blocks. I suspect it's a wrong genesis configuration. ...
Mathis Wellmann's user avatar
4 votes
1 answer
64 views

In substrate, does the genesis block get finalised the same way as the subsequent blocks?

In substrate, does the genesis block get finalised the same way as the subsequent blocks, or is finalisation of the genesis block a special case?
kishan sagathiya's user avatar
2 votes
0 answers
28 views

Grandpa authorities in the context of pallet-staking

In pallet-staking's genesis config there are two items : pub validator_count: u32, pub minimum_validator_count: u32, Question : How are we to interpret them in the context of Grandpa finality? I know ...
Purple_Turtle's user avatar
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
6 votes
2 answers
176 views

Advantages of BABE/GRANDPA over Aura for sovereign chains when weights are equal

I've read through various documentation on consensus algorithms, along with the fellow SE post What is the difference between Babe, Aura, and Grandpa?. I'm unsure what the posited advantage of BABE/...
Kayaba's user avatar
  • 125