JoshOrndorff / recipes

A Hands-On Cookbook for Aspiring Blockchain Chefs
GNU General Public License v3.0
378 stars 186 forks source link

kitchen-node not finalizing blocks #477

Closed Are10 closed 2 years ago

Are10 commented 2 years ago

The latest build of the kitchen-node recipe build successfully ( but with a warning: "unused manifest key: workspace.librocksdb-sys" )

cargo build --release -p kitchen-node

Running the resulting artifact results in the following output:

./target/release/kitchen-node --dev
2022-03-14 08:08:15 Running in --dev mode, RPC CORS has been disabled.
2022-03-14 08:08:15 Kitchen Node
2022-03-14 08:08:15 ✌️  version 3.0.0-03b7a06-x86_64-linux-gnu
2022-03-14 08:08:15 ❤️  by Substrate DevHub <https://github.com/substrate-developer-hub>, 2019-2022
2022-03-14 08:08:15 📋 Chain specification: Development
2022-03-14 08:08:15 🏷 Node name: macabre-writer-1589
2022-03-14 08:08:15 👤 Role: AUTHORITY
2022-03-14 08:08:15 💾 Database: RocksDb at /home/xxxxxxx/.local/share/kitchen-node/chains/dev/db
2022-03-14 08:08:15 ⛓  Native runtime: super-runtime-1 (super-runtime-1.tx1.au1)
2022-03-14 08:08:15 Using default protocol ID "sup" because none is configured in the chain specs
2022-03-14 08:08:15 🏷 Local node identity is: 12D3KooWQPdf3fEuTHminm3iJsGJ3eCZuwfKUR5XVc2dGs8TN7fM
2022-03-14 08:08:15 📦 Highest known block at #0
2022-03-14 08:08:15 〽️ Prometheus server started at 127.0.0.1:9615
2022-03-14 08:08:15 Listening for new connections on 127.0.0.1:9944.
2022-03-14 08:08:20 💤 Idle (0 peers), best: #0 (0x71c1…3686), finalized #0 (0x71c1…3686), ⬇ 0 ⬆ 0
2022-03-14 08:08:25 💤 Idle (0 peers), best: #0 (0x71c1…3686), finalized #0 (0x71c1…3686), ⬇ 0 ⬆ 0
2022-03-14 08:08:30 💤 Idle (0 peers), best: #0 (0x71c1…3686), finalized #0 (0x71c1…3686), ⬇ 0 ⬆ 0
JoshOrndorff commented 2 years ago

This is the expected behavior. The kitchen node uses "instant seal" which means that blocks will only be authored when transactions are sent. Open up Polkadot JS and try to send some tokens or make some other transaction. You should see blocks authored immediately.

Are10 commented 2 years ago

Yes, of course. I understand now, "Idle" means "I'm synced and waiting for something to do".. The confusion started because in the original seminar video, the console showed different feedback. Thank you for your time.