In my clique PoA private network setup I try to mine skipping empty blocks and mine only when there is transaction present. I try to follow How to make miner to mine only when there are Pending Transactions? but I cannot notice that the mining works when I load he script with -- preload followed by .js file.

Instead on starting the node, I open the ipc console and then use loadScript which works fine.

Is there a better way to load the js script while starting the node?

Also is there a way to specify inside the js script the miner gas target and miner gas limit since I need to set up a uniform block gas limit in the network. I noticed that this option is missing in RPC API definitions which could be the reason ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.