Unanswered Questions
62 questions with no upvoted or accepted answers
5
votes
0
answers
62
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 ...
5
votes
0
answers
49
views
Adhering to size limit of a block
We do track weight during block creation/block import, but weight only cares about execution time and with 2D weights also about storage proof size.
We do keep track of size in propose here but only ...
5
votes
0
answers
163
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 ...
3
votes
1
answer
41
views
Could not cast prevote: previously known block 0x_ has disappeared
The finalization is blocked on our development chain and I have these logs:
2024-07-12 19:37:00 ✨ Imported #2208390 (0x85e0…1a0a)
2024-07-12 19:37:01 💤 Idle (14 peers), best: #2208390 (0x85e0…...
3
votes
0
answers
25
views
Difficulty Storing Consensus-Derived Value in Storage: Observing Value in Pallet Log but Not in Storage
I'm trying to store a value obtained from the consensus, specifically sc_consensus_babe::fn import_block. While I can observe the value in the pallet through the log, it doesn't seem to be stored in ...
3
votes
0
answers
43
views
How to assign some number to the miners in POW substrate chain?
I'm working with POW substrate chain and I want to assign some number to the miners according to the work they have done earlier. Is it possible? If yes can we fetch those numbers during the block ...
3
votes
0
answers
133
views
Unable to fully utilize block capacity when performing load testing
I'm currently running load tests on my local parachain which includes Frontier integration for EVM compatibility. During these tests, I'm sending thousands of transactions via the RPC endpoint. ...
3
votes
0
answers
38
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 ...
3
votes
1
answer
321
views
How to implement a POC for a new consensus algorithm in substrate?
I am currently working on a substrate project that uses the PoA consensus algorithm. I would like to implement a POC for a new consensus algorithm. I have some experience with substrate but I'm new to ...
2
votes
0
answers
59
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.
...
2
votes
0
answers
90
views
How should I add offchain worker(OCW) in frontier when using AccountId20?
In order to add an offchain worker with using AccountId20 as the runtime account type I did following things.
add associated type type AuthorityId: AppCrypto<Self::Public, Self::Signature>; in ...
2
votes
0
answers
46
views
Proof-of-Work Substrate Chain with Multiple Validators
I'm working on a Proof-of-Work (POW) substrate chain. Assuming we have four validators, all of which have enabled on-chain workers (OCW), is it accurate to state that each validator's OCW fetches data ...
2
votes
0
answers
48
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 ...
2
votes
0
answers
47
views
hybrid consensus
I try to implement the hybrid consensus from the substrate recipes book but it keeps failing. I tried to use the sha3 algorithm for PoW but I keep getting this error:
"the trait PowAlgorithm<...
2
votes
0
answers
61
views
Frontier: What is trait LinearCostPrecompile about?
So it's often seen in Precompile implementations as a trait bound :
impl<T: LinearCostPrecompile> Precompile for T {
and the trait itself :
pub trait LinearCostPrecompile {
const BASE: u64;
...