-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Hi,
I have followed this tutoriel to build my quorum blockchain with ibft consensus : https://docs.goquorum.consensys.io/tutorials/private-network/create-ibft-network
but it wasn't successful .
System information
Geth version: 1.10.3-stable(quorum-v24.4.1)
OS & Version: Linux ubuntu 20.04
Steps
I created all the environemnt: the folders, genesis.json with quorum-genesis-tool : npx quorum-genesis-tool --consensus ibft --chainID 254 --blockperiod 5 --requestTimeout 10 --epochLength 30000 --difficulty 1 --gasLimit '0xFFFFFF' --coinbase '0x0000000000000000000000000000000000000000' --validators 5 --members 0 --bootnodes 0 --outputPath 'artifacts'
Also I set up the static-nodes.json
then I run : geth --datadir data init data/genesis.json and it worked
When starting the node 0 with :
geth --datadir data --networkid 254 --nodiscover --verbosity 5 --syncmode full --istanbul.blockperiod 5 --mine --miner.threads 1 --miner.gasprice 0 --emitcheckpoints --http --http.addr 127.0.0.1 --http.port 22000 --http.corsdomain "*" --http.vhosts "*" --ws --ws.addr 127.0.0.1 --ws.port 32000 --ws.origins "*" --http.api admin,eth,debug,miner,net,txpool,personal,web3,istanbul --ws.api admin,eth,debug,miner,net,txpool,personal,web3,istanbul --unlock ${ADDRESS} --allow-insecure-unlock --password ./data/keystore/accountPassword --port 30300
i get this error :
INFO [10-30|11:52:37.022] Running with private transaction manager disabled - quorum private transactions will not be supported
INFO [10-30|11:52:37.024] Maximum peer count ETH=50 LES=0 total=50
INFO [10-30|11:52:37.024] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
DEBUG[10-30|11:52:37.025] FS scan times list="82.455µs" set="8.766µs" diff="5.681µs"
DEBUG[10-30|11:52:37.025] Failed to decode keystore key path=ibftNetwork/node0/data/keystore/accountPassword err=EOF
DEBUG[10-30|11:52:37.025] Failed to decode keystore key path=ibftNetwork/node0/data/keystore/accountPrivateKey err="json: cannot unmarshal number into Go value of type struct { Address string "json:\"address\"" }"
DEBUG[10-30|11:52:37.025] Failed to decode keystore key path=ibftNetwork/node0/data/keystore/accountAddress err="json: cannot unmarshal number into Go value of type struct { Address string "json:\"address\"" }"
TRACE[10-30|11:52:37.025] Handled keystore changes time="229.28µs"
TRACE[10-30|11:52:37.025] Started watching keystore folder path=ibftNetwork/node0/data/keystore
WARN [10-30|11:52:37.025] Using deprecated resource file ibftNetwork/node0/data/nodekey, please move this file to the 'geth' subdirectory of datadir.
WARN [10-30|11:52:37.025] Found deprecated node list fileibftNetwork/node0/data/static-nodes.json, please use the TOML config file instead.
DEBUG[10-30|11:52:37.026] Sanitizing Go's GC trigger percent=100
WARN [10-30|11:52:37.026] WARNING: The flag --istanbul.blockperiod is deprecated and will be removed in the future, please use ibft.blockperiodseconds on genesis file
INFO [10-30|11:52:37.026] Enabling recording of key preimages since archive mode is used
INFO [10-30|11:52:37.027] Set global gas cap cap=25,000,000
INFO [10-30|11:52:37.027] Running with private transaction manager disabled - quorum private transactions will not be supported
WARN [10-30|11:52:37.027] Sanitizing invalid miner gas price provided=0 updated=0
INFO [10-30|11:52:37.027] Allocated trie memory caches clean=154.00MiB dirty=256.00MiB
INFO [10-30|11:52:37.027] Allocated cache and file handles database=ibftNetwork/node0/data/geth/chaindata cache=768.00MiB handles=524,288
DEBUG[10-30|11:52:37.043] Chain freezer table opened database=ibftNetwork/node0/data/geth/chaindata/ancient table=headers items=0 size=0.00B
DEBUG[10-30|11:52:37.043] Chain freezer table opened database=ibftNetwork/node0/data/geth/chaindata/ancient table=hashes items=0 size=0.00B
DEBUG[10-30|11:52:37.043] Chain freezer table opened database=ibftNetwork/node0/data/geth/chaindata/ancient table=bodies items=0 size=0.00B
DEBUG[10-30|11:52:37.044] Chain freezer table opened database=ibftNetwork/node0/data/geth/chaindata/ancient table=receipts items=0 size=0.00B
DEBUG[10-30|11:52:37.044] Chain freezer table opened database=ibftNetwork/node0/data/geth/chaindata/ancient table=diffs items=0 size=0.00B
INFO [10-30|11:52:37.044] Opened ancient database database=ibftNetwork/node0/data/geth/chaindata/ancient readonly=false
DEBUG[10-30|11:52:37.044] Current full block not old enough number=0 hash=d4e567..cb8fa3 delay=3,162,240
DEBUG[10-30|11:52:37.045] Account Extra Data root hash=000000..000000
INFO [10-30|11:52:37.046] Initialised chain configuration config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 IsQuorum: false Constantinople: 7280000 TransactionSizeLimit: 0 MaxCodeSize: 0 Petersburg: 7280000 Istanbul: 9069000, Muir Glacier: 9200000, Berlin: 12244000 Catalyst: YOLO v3: PrivacyEnhancements: PrivacyPrecompile: EnableGasPriceBlock: Engine: ethash}"
INFO [10-30|11:52:37.046] Initialising Ethereum protocol network=254 dbversion=8
INFO [10-30|11:52:37.047] Using SegregatedCacheProvider.
DEBUG[10-30|11:52:37.048] Account Extra Data root hash=000000..000000
INFO [10-30|11:52:37.049] Loaded most recent local header number=0 hash=d4e567..cb8fa3 td=17,179,869,184 age=55y7mo2w
INFO [10-30|11:52:37.049] Loaded most recent local full block number=0 hash=d4e567..cb8fa3 td=17,179,869,184 age=55y7mo2w
INFO [10-30|11:52:37.049] Loaded most recent local fast block number=0 hash=d4e567..cb8fa3 td=17,179,869,184 age=55y7mo2w
DEBUG[10-30|11:52:37.050] Account Extra Data root hash=000000..000000
DEBUG[10-30|11:52:37.050] Account Extra Data root hash=000000..000000
WARN [10-30|11:52:37.054] Loaded snapshot journal diskroot=d7f897..0f0544 diffs=missing
DEBUG[10-30|11:52:37.054] Account Extra Data root hash=000000..000000
DEBUG[10-30|11:52:37.054] Account Extra Data root hash=000000..000000
DEBUG[10-30|11:52:37.054] Reinjecting stale transactions count=0
INFO [10-30|11:52:37.055] Loaded local transaction journal transactions=0 dropped=0
INFO [10-30|11:52:37.055] Regenerated local transaction journal transactions=0 accounts=0
DEBUG[10-30|11:52:37.055] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s
DEBUG[10-30|11:52:37.056] Account Extra Data root hash=000000..000000
DEBUG[10-30|11:52:37.056] Account Extra Data root hash=000000..000000
TRACE[10-30|11:52:37.056] header data not found in ancient or level db hash=000000..000000
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-29T17:19:17+0100 age=18h33m20s
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-30T10:29:12+0100 age=1h23m25s
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-30T10:30:53+0100 age=1h21m44s
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-30T10:31:38+0100 age=1h20m59s
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-30T10:38:01+0100 age=1h14m36s
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-30T10:59:00+0100 age=53m37s
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-30T10:59:24+0100 age=53m13s
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-30T11:10:12+0100 age=42m25s
WARN [10-30|11:52:37.056] Unclean shutdown detected booted=2024-10-30T11:14:24+0100 age=38m13s
WARN [10-30|11:52:37.057] permission-config.json file is missing. Smart-contract-based permission service will be disabled error="stat data/permission-config.json: no such file or directory"
INFO [10-30|11:52:37.057] No plugins to initialise
INFO [10-30|11:52:37.057] Starting peer-to-peer node instance=Geth/v1.10.3-stable(quorum-v24.4.1)/linux-amd64/go1.21.3
TRACE[10-30|11:52:37.067] Adding static node id=77628cdb48a08b2b ip=127.0.0.1 added=true
TRACE[10-30|11:52:37.067] Adding static node id=c3f3aba38933e9e8 ip=127.0.0.1 added=true
TRACE[10-30|11:52:37.067] Starting p2p dial id=c3f3aba38933e9e8 ip=127.0.0.1 flag=staticdial
TRACE[10-30|11:52:37.067] Adding static node id=efbe4980a9188237 ip=127.0.0.1 added=true
TRACE[10-30|11:52:37.067] Starting p2p dial id=efbe4980a9188237 ip=127.0.0.1 flag=staticdial
DEBUG[10-30|11:52:37.067] TCP listener up addr=[::]:30300
TRACE[10-30|11:52:37.067] Adding static node id=c330783480533e7d ip=127.0.0.1 added=true
TRACE[10-30|11:52:37.067] Starting p2p dial id=c330783480533e7d ip=127.0.0.1 flag=staticdial
TRACE[10-30|11:52:37.068] Dial error id=efbe4980a9188237 addr=127.0.0.1:30302 conn=staticdial err="connect: connection refused"
TRACE[10-30|11:52:37.068] Adding static node id=dcd67bd586d8a55e ip=127.0.0.1 added=true
TRACE[10-30|11:52:37.068] Starting p2p dial id=dcd67bd586d8a55e ip=127.0.0.1 flag=staticdial
TRACE[10-30|11:52:37.068] Dial error id=dcd67bd586d8a55e addr=127.0.0.1:30304 conn=staticdial err="connect: connection refused"
TRACE[10-30|11:52:37.068] Dial error id=c330783480533e7d addr=127.0.0.1:30303 conn=staticdial err="connect: connection refused"
TRACE[10-30|11:52:37.068] Dial error id=c3f3aba38933e9e8 addr=127.0.0.1:30301 conn=staticdial err="connect: connection refused"
INFO [10-30|11:52:37.068] New local node record seq=10 id=77628cdb48a08b2b ip=127.0.0.1 udp=0 tcp=30300
INFO [10-30|11:52:37.069] Started P2P networking self="enode://2a316e12b80b3b1a377e03d81971bc11d395258feca974c9d08e978ecb9a3171e9c9ce50275a05ebb96a0f1998ece38b77ef4e0eee7fb23c9f0e01a1c5856331@127.0.0.1:30300?discport=0"
DEBUG[10-30|11:52:37.070] IPCs registered namespaces=admin,debug,web3,eth,txpool,personal,ethash,miner,net
INFO [10-30|11:52:37.070] IPC endpoint opened url= ibftNetwork/node0/data/geth.ipc isMultitenant=false
INFO [10-30|11:52:37.070] Security Plugin is not enabled
ERROR[10-30|11:52:37.070] Unavailable modules in HTTP API list unavailable=[istanbul] available="[admin debug web3 eth txpool personal ethash miner net]"
ERROR[10-30|11:52:37.071] Unavailable modules in HTTP API list unavailable=[istanbul] available="[admin debug web3 eth txpool personal ethash miner net]"
DEBUG[10-30|11:52:37.071] Allowed origin(s) for WS RPC interface []
INFO [10-30|11:52:37.071] Security: TLS not enabled endpoint=127.0.0.1:22000 reason="no TLSConfigurationSource found"
INFO [10-30|11:52:37.072] HTTP server started endpoint=127.0.0.1:22000 prefix= cors= vhosts=* isTls=false
INFO [10-30|11:52:37.072] Security: TLS not enabled endpoint=127.0.0.1:32000 reason="no TLSConfigurationSource found"
INFO [10-30|11:52:37.072] WebSocket enabled url=ws://127.0.0.1:32000
INFO [10-30|11:52:38.456] Unlocked account address=0x2C2413d51F322db4204778e0076f9b46e9Bdd60F
INFO [10-30|11:52:38.456] Transaction pool price threshold updated price=0
INFO [10-30|11:52:38.456] Updated mining threads threads=1
INFO [10-30|11:52:38.456] Transaction pool price threshold updated price=0
INFO [10-30|11:52:38.456] Etherbase automatically configured address=0x2C2413d51F322db4204778e0076f9b46e9Bdd60F
Fatal: Consensus not specified. Exiting!!
I found some suggestions to remove istanbul from the --http.api and --ws.api but always Fatal: Consensus not specified. Exiting!
thanks