I'm trying to configure a 1-node private network to mine transactions as they come in.
I found this question which has a script that can be loaded into geth to do exactly this. However, I need to go into the Geth console and run loadScript
manually for it to work and be called, and after I close the console session, the script file has to be loaded again to run the function.
The problem I have is invoking loadScript
in Go to have it run automatically.
The following I tried with no success:
RpcClient.Call(&result, "loadScript", "./scripts/auto_mine.js")