1

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

2
  • Did you try redirecting the output to a file or /dev/null?
    – Ismael
    Commented Mar 23, 2023 at 16:13
  • that's not an output, this is a console Commented May 10, 2023 at 4:17

1 Answer 1

1

Looks like this is not possible for now
https://github.com/ethereum/go-ethereum/issues/26893

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.