We were using the
js together with a --preload to run geth in a private network using docker.
The main use-case was to mine blocks only when a transaction exists
(Similar to this How to make miner to mine only when there are Pending Transactions? and this https://github.com/niksmac/ethereum-scripts/blob/master/src/mining-only-new-txs.js).
But now that the
js is deprecated how can we achieve the same?
The only option we found so far, was to run
console and use --preload.
Unfortunately, this requires us to also allow tty+std_open in docker which we would like to avoid.
Is there any way to do this?
This is very similar issue like this How to make miner to mine only when there are Pending Transactions? the question is how to achieve the same without a deprecated js option