Questions tagged [substrate-recipes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
59 views

How to fetch data through api?

I want to fetch the data through an api in our chain. More specifically, I have an api which gives me the latest news. How can i implement this in our substrate chain? can we have any doc or resources ...
2 votes
0 answers
41 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
1 answer
75 views

Hybrid Pow/Pos Consensus Node Blocks are not being finalized?

i am following this tutorial https://substrate.recipes/hybrid-consensus.html trying to make a Hybrid pow/pos based consensus node i also watched Joshy Orndorff demonstration on hybrid consensus with ...
1 vote
1 answer
48 views

Error while compiling substrate recipes

While compiling substrate recipes, I encounter the following error (error message copied below as well as the screenshot is attached. error: duplicate lang item in crate `std` (which `serde` depends ...
0 votes
0 answers
33 views

Compile errors building Substrate Recipes out of the box

I'm trying to get started with substrate by looking at Substrate Recipes. I installed rust using curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh with WSL with default configuration (...
1 vote
1 answer
148 views

Confused on terminology - Module/Pallet vs Crate vs Package

My elementary understanding is that a Crate is a collection of modules or pallets, and a Package is a collection of Crates. But I came across this "pallet" in crates.io and am now unsure why ...
0 votes
0 answers
29 views

Tests failed on expected event for simple-map pallet in the substrate-node-template

I tried to incorporate the simple-map pallet from the substrate.recipes to the substrate-node-template with the updated mocks.rs and tests.rs. When I run with cargo test, I see the following test ...
0 votes
1 answer
79 views

PoW Rewards for Mining

In this Substrate Recipe it says nothing about the rewards miners get for including blocks into the chain in the PoW consensus. But I found that Kulupu uses a rewards pallet which, at first glance, ...
0 votes
0 answers
137 views

Node Does not Produce Blocks

I've been trying to implement a PoW consensus for my node. It was based on node template, the recipe and Kulupu's implementation of PoW. So I did quite a lot of changes to the node template and thus I'...
3 votes
1 answer
273 views

How to Build a Light Client?

In this part of Substrate Recipe it says that I have to create a new_light function to build a light client. But there are no details at all. So I took a look at node template and found that there is ...