clique-v4
Pre-release
Pre-release
thefallentree
released this
29 Jan 14:23
·
224 commits
to master
since this release
Update: 2019/1/30 , re-release with new goerli chain spec.
Update: 2019/1/29 , re-release with timestamp check fix.
clique-v4 with both validating & sealing:
example command to seal on an local chain:
target/debug/parity --chain /tmp/1.json account new
first create an account with password , then store password in password file, use following command to seal on an local chain.
target/debug/parity --chain /tmp/1.json -l engine=trace,miner=trace --force-sealing --reseal-min-period=1000 --reseal-max-period=1000 --engine-signer=0x673c228d04def98e373a504339b47c7005164c39 --password /tmp/1
Sync goerli + seal works too, however you need to be in the signer list to sign real blocks.
target/debug/parity --chain goerli -l engine=trace,miner=trace --reseal-min-period=1000 --reseal-max-period=1000 --engine-signer=0x9a66a7d5162074a0899edf2d344f1f1fd6981869 --passw
ord /tmp/1
2019-01-29 06:14:23 TRACE engine Setting the step timeout to 7s.
2019-01-29 06:14:23 main INFO parity_ethereum::run Starting Parity-Ethereum/v2.4.0-nightly-7599178a4-20190127/x86_64-linux-gnu/rustc1.32.0
2019-01-29 06:14:23 main INFO parity_ethereum::run Keys path /home/sunyc/.local/share/io.parity.ethereum/keys/goerli
2019-01-29 06:14:23 main INFO parity_ethereum::run DB path /home/sunyc/.local/share/io.parity.ethereum/chains/goerli/db/85bf29ecd024e083
2019-01-29 06:14:23 main INFO parity_ethereum::run State DB configuration: fast
2019-01-29 06:14:23 main INFO parity_ethereum::run Operating mode: active
2019-01-29 06:14:23 main TRACE engine called set_signer
2019-01-29 06:14:23 main INFO ethcore_service::service Configured for Görli using Clique engine
2019-01-29 06:14:56 main TRACE miner minimal_gas_price: recalibrating...
2019-01-29 06:14:56 main DEBUG miner minimal_gas_price: Got gas price! 0
2019-01-29 06:14:56 main WARN ethcore_sync::api Network port V4(0.0.0.0:30303) is already in use, make sure that another instance of an Ethereum client is not running or change the port using the --port option.
2019-01-29 06:14:58 IO Worker #2 TRACE miner update_sealing
2019-01-29 06:14:58 IO Worker #2 TRACE miner requires_reseal: sealing enabled
2019-01-29 06:14:58 IO Worker #2 TRACE miner requires_reseal: should_disable_sealing=false; forced=false, has_local=false, internal=Some(true), had_requests=false
2019-01-29 06:14:58 IO Worker #2 TRACE miner update_sealing: preparing a block
2019-01-29 06:14:58 IO Worker #2 TRACE miner prepare_block: No existing work - making new block
2019-01-29 06:14:58 IO Worker #2 TRACE engine populate_from_parent in sealing
2019-01-29 06:15:02 IO Worker #2 INFO engine Back-filling block state. last_checkpoint_number: 450000, target: 459822(0x252b…caf4).
2019-01-29 06:15:13 IO Worker #2 INFO engine Back-filling succeed, took 10372 ms.
2019-01-29 06:15:13 IO Worker #2 DEBUG miner Attempting to push 0 transactions.
2019-01-29 06:15:13 IO Worker #2 DEBUG miner Pushed 0 transactions in 2 ms
2019-01-29 06:15:13 IO Worker #2 TRACE miner update_sealing: engine indicates internal sealing
2019-01-29 06:15:13 IO Worker #2 TRACE miner seal_block_internally: attempting internal seal.
2019-01-29 06:15:13 IO Worker #2 TRACE engine tried to generate seal
2019-01-29 06:15:13 IO Worker #2 TRACE engine generate_seal: Not authorized to sign right now.