Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
878 views
in Technique[技术] by (71.8m points)

blockchain - Why blocks dont finalized

We have substrate node with babe + grandpa consensus. We tried to run it on different computers and create a network. Everything works if we use the pre-installed accounts of Alice and Bob. We are trying to create our own config with our own keys. using subkey, 2 pairs of 4 keys were generated. 2 in sr25519 format (account address and account stash address), then a key in ed25519 format (used for GrandpaId). We took a seed-phrase from him and created a sr25519 key (for Babe). That is, we have 2 validators. We launched the nodes and using rpc requests inserted keys for both validators (babe + gran)

Nodes see each other on the network, create blocks, but do not finalize blocks. With what it can be connected? The screenshots show the config that we use when starting the network photo and second photo

question from:https://stackoverflow.com/questions/65934347/why-blocks-dont-finalized

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I found the error myself, you need to remove the -tmp flag before starting, create your folders with the command -d / node / node1, and after inserting the keys, restart the nodes


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...