substrate-docs icon indicating copy to clipboard operation
substrate-docs copied to clipboard

Add trusted nodes => After adding the 2nd node in , evenif I give the wrong password or no password while starting the 2nd node , the blocks are finalized

Open NadigerAmit opened this issue 2 years ago • 0 comments

Is there an existing issue?

  • [X] I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • [X] This is not a support question.

Bug report for compiling, code snippets, templates, etc.

I followed the below tutorial : https://docs.substrate.io/tutorials/build-a-blockchain/add-trusted-nodes/

In the final step 10, the nodes are being finalized , even if I give the wrong password for the keystore of 2nd node or no password .

or if the boot node is also wrong , then still blocks are finalized .

Please see below , I didnt gave any password , still nodes are finalized from block number : 33 onwards .


Below is log .

^Camit:~/OmBlockChain/substrate-node-template$./target/release/node-template --base-path /tmp/node02 --chain ./customSpecRaw.json --port 30334 --rpc-port 9946 --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --validator --rpc-methods Unsafe --name MyNode02 --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWLmrYDLoNTyTYtRdDyZLWDe1paxzxTw5RgjmHLfzW96SX 2023-08-25 16:19:54 Substrate Node 2023-08-25 16:19:54 ✌️ version 4.0.0-dev-e6bf90cfbf7 2023-08-25 16:19:54 ❤️ by Substrate DevHub https://github.com/substrate-developer-hub, 2017-2023 2023-08-25 16:19:54 📋 Chain specification: Amits Custom Testnet 2023-08-25 16:19:54 🏷 Node name: MyNode02 2023-08-25 16:19:54 👤 Role: AUTHORITY 2023-08-25 16:19:54 💾 Database: RocksDb at /tmp/node02/chains/local_testnet/db/full 2023-08-25 16:19:54 Using default protocol ID "sup" because none is configured in the chain specs 2023-08-25 16:19:54 🏷 Local node identity is: 12D3KooWRXND6wConGtzQnJeqzBtfNy8WuHNjaAPmUvnDr4xGtQS 2023-08-25 16:19:54 💻 Operating system: linux 2023-08-25 16:19:54 💻 CPU architecture: x86_64 2023-08-25 16:19:54 💻 Target environment: gnu 2023-08-25 16:19:54 💻 CPU: Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz 2023-08-25 16:19:54 💻 CPU cores: 4 2023-08-25 16:19:54 💻 Memory: 7821MB 2023-08-25 16:19:54 💻 Kernel: 5.15.90.1-microsoft-standard-WSL2 2023-08-25 16:19:54 💻 Linux distribution: Ubuntu 22.04.3 LTS 2023-08-25 16:19:54 💻 Virtual machine: yes 2023-08-25 16:19:54 📦 Highest known block at #33 2023-08-25 16:19:54 Running JSON-RPC server: addr=127.0.0.1:9946, allowed origins=["http://localhost:", "http://127.0.0.1:", "https://localhost:", "https://127.0.0.1:", "https://polkadot.js.org"] 2023-08-25 16:19:54 discovered: 12D3KooWJkAdXzbMggqwjpKoAffkFhD6wYSHuTBrhSCAmrjreqc7 /ip4/172.27.179.114/tcp/30333 2023-08-25 16:19:54 discovered: 12D3KooWJkAdXzbMggqwjpKoAffkFhD6wYSHuTBrhSCAmrjreqc7 /ip4/172.17.0.1/tcp/30333 2023-08-25 16:19:54 💔 The bootnode you want to connect to at /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWLmrYDLoNTyTYtRdDyZLWDe1paxzxTw5RgjmHLfzW96SX provided a different peer ID 12D3KooWJkAdXzbMggqwjpKoAffkFhD6wYSHuTBrhSCAmrjreqc7 than the one you expect 12D3KooWLmrYDLoNTyTYtRdDyZLWDe1paxzxTw5RgjmHLfzW96SX. 2023-08-25 16:19:59 💤 Idle (1 peers), best: #33 (0x762a…1e07), finalized #31 (0xbaab…3cce), ⬇ 1.0kiB/s ⬆ 1.0kiB/s 2023-08-25 16:20:00 ✨ Imported #34 (0xb9a0…920f) 2023-08-25 16:20:04 💤 Idle (1 peers), best: #34 (0xb9a0…920f), finalized #32 (0xc1a4…8763), ⬇ 0.7kiB/s ⬆ 0.6kiB/s 2023-08-25 16:20:06 🙌 Starting consensus session on top of parent 0xb9a0f0bb9fcee959d6a42a2dacfce1dfe65e9453722d0e6a1e6c8445ef23920f 2023-08-25 16:20:06 🎁 Prepared block for proposing at 35 (1 ms) [hash: 0x5b5d41c0061110d986371ab0c49a1593c2e8f40a15cc078b5ea8b7dad47ba0ab; parent_hash: 0xb9a0…920f; extrinsics (1): [0xa433…a9d0] 2023-08-25 16:20:06 🔖 Pre-sealed block for proposal at 35. Hash now 0x6cf5cccad50ee43742bcb90ca9dbf08ffbaeb8586bae6af51fa5255dc708b842, previously 0x5b5d41c0061110d986371ab0c49a1593c2e8f40a15cc078b5ea8b7dad47ba0ab. 2023-08-25 16:20:06 ✨ Imported #35 (0x6cf5…b842) 2023-08-25 16:20:09 💤 Idle (1 peers), best: #35 (0x6cf5…b842), finalized #33 (0x762a…1e07), ⬇ 0.6kiB/s ⬆ 0.6kiB/s 2023-08-25 16:20:12 ✨ Imported #36 (0x4a65…b593) 2023-08-25 16:20:14 💤 Idle (1 peers), best: #36 (0x4a65…b593), finalized #34 (0xb9a0…920f), ⬇ 0.6kiB/s ⬆ 0.5kiB/s 2023-08-25 16:20:18 🙌 Starting consensus session on top of parent 0x4a650d5f19249b7819b35387af3204ca1755b53026e3f688d37ff54053bdb593 2023-08-25 16:20:18 🎁 Prepared block for proposing at 37 (0 ms) [hash: 0xc2ef236934bee3394ba6f726071e41c5432e32bc0b15e9f0738d5b886d0c0a38; parent_hash: 0x4a65…b593; extrinsics (1): [0x9746…13f4] 2023-08-25 16:20:18 🔖 Pre-sealed block for proposal at 37. Hash now 0x5d951ca1fa2c132ee4a2a059137255be065b6098b68f72fec0fb0b4c35bfde64, previously 0xc2ef236934bee3394ba6f726071e41c5432e32bc0b15e9f0738d5b886d0c0a38. 2023-08-25 16:20:18 ✨ Imported #37 (0x5d95…de64) 2023-08-25 16:20:19 💤 Idle (1 peers), best: #37 (0x5d95…de64), finalized #35 (0x6cf5…b842), ⬇ 0.6kiB/s ⬆ 0.6kiB/s 2023-08-25 16:20:24 ✨ Imported #38 (0x39d9…c320) 2023-08-25 16:20:24 💤 Idle (1 peers), best: #38 (0x39d9…c320), finalized #35 (0x6cf5…b842), ⬇ 0.6kiB/s ⬆ 0.5kiB/s 2023-08-25 16:20:29 💤 Idle (1 peers), best: #38 (0x39d9…c320), finalized #36 (0x4a65…b593), ⬇ 0.6kiB/s ⬆ 0.5kiB/s 2023-08-25 16:20:30 🙌 Starting consensus session on top of parent 0x39d93ca49237ceb2f43cb72742324b490f09f8adb5e0d36228d1c74edc8dc320 2023-08-25 16:20:30 🎁 Prepared block for proposing at 39 (1 ms) [hash: 0x2d0eb6687366f42c8e8c4a0566330b32ae378e9a1cca8c3325fe454c5adcb874; parent_hash: 0x39d9…c320; extrinsics (1): [0x4745…0d0f] 2023-08-25 16:20:30 🔖 Pre-sealed block for proposal at 39. Hash now 0xd81723a71797feb7ded564fdef51bfbfcf230c62b6aa74a808414924c48c45eb, previously 0x2d0eb6687366f42c8e8c4a0566330b32ae378e9a1cca8c3325fe454c5adcb874. 2023-08-25 16:20:30 ✨ Imported #39 (0xd817…45eb) 2023-08-25 16:20:34 💤 Idle (1 peers), best: #39 (0xd817…45eb), finalized #37 (0x5d95…de64), ⬇ 0.5kiB/s ⬆ 0.5kiB/s 2023-08-25 16:20:36 ✨ Imported #40 (0x716e…782c) 2023-08-25 16:20:39 💤 Idle (1 peers), best: #40 (0x716e…782c), finalized #38 (0x39d9…c320), ⬇ 0.7kiB/s ⬆ 0.5kiB/s ^Camit:~/OmBlockChain/substrate-node-template$

Steps to reproduce the problem

Just follow the below tutorial https://docs.substrate.io/tutorials/build-a-blockchain/add-trusted-nodes/

In the step 10 : give no password or wrong password . Still blocks are finalized .

NadigerAmit avatar Aug 25 '23 10:08 NadigerAmit