New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basic-pow node doesn't mine new Blocks?! #432
Comments
The same behavior for the older version: Node Name: basic-pow Cargo Version: cargo 1.48.0-nightly (05c611ae3 2020-09-23) |
Hi @Mhnd3 I was surprised to hear this about v3.0, but considering it was recently updated I figured some bugs could have slipped in. I'm even surprised to hear it on 2.0 though. Could you please share a little more context.
Also could you tell us how familiar with substrate you are in general? |
Hi @JoshOrndorff, thanks for the replay Recipes Version 2.0
about my familiarity with substrate, i wrote a couple of pallets to explore the runtime and FRAME framework, now i'm trying to dive in into the client, consensus and networking, i have a good understanding about substrate's components, still in the learning phase though |
I confirm this is broken. I believe it was first broken in #385 I guess we will need to add some code similar to https://github.com/kulupu/kulupu/blob/master/src/service.rs#L330-L377 although I haven't fully understood that code yet. |
Awesome work @Mhnd3 I guess you found a good place to dive into the consensus layer :) Could you make a PR with these changes? |
Thanks @JoshOrndorff! |
@Mhnd3 - I hope you do 🥳 !! I would love to see it, and happy to review when it's ready! 😀 |
@nukemandan Thanks mate! |
@Mhnd3 If you're interested in bitcoin, have you seen the UTXO workshop? https://github.com/substrate-developer-hub/utxo-workshop? It has difficulty adjustment (different algorithm than botcoin) and UTXO tokens in the runtime. |
Thanks @JoshOrndorff for the reference! I've saw the youtube videos about the UTXO but didn't pay attention to the difficulty adjustment algorithm there. pretty helpful, though i was planning to create it in the client (delegate it to OCW) not in the runtime to reduce the Block execution time, i'm now wondering if that would make any difference actually?! |
This is closed by #433 |
Hi everyone,
after successfully compiling the node, i started it but it cannot mine new Blocks, it prepared an new Block but never imported it, any idea how to further debug that issue?!
Node Name: basic-pow
Node Version: 3.0.0
Commit: commit 53f7ce1 (HEAD -> master, origin/master, origin/HEAD) Author: Joshy Orndorff JoshOrndorff@users.noreply.github.com Date: Wed Apr 14 23:53:04 2021 -0400
Cargo Version: cargo 1.49.0-nightly (dd83ae55c 2020-10-20)
Rustup: rustc 1.49.0-nightly (ffa2e7ae8 2020-10-24)
OS: Ubuntu 20.04.2 LTS
The text was updated successfully, but these errors were encountered: