benjamin-wilson / public-pool

GNU General Public License v3.0
175 stars 48 forks source link

Unhandled error - getblocktemplate: Error: ESOCKETTIMEDOUT #47

Closed schneimi closed 2 months ago

schneimi commented 3 months ago

When this error happens, my Bitaxe has restarted as well as the Docker container of the pool server. Cannot tell what is first or what causes this. It happened twice within 2-3 weeks. Maybe this should be catched.

Error getblocktemplate: Error: ESOCKETTIMEDOUT
/public-pool/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js:13
            throw err;
            ^

Error: Error getblocktemplate
    at BitcoinRpcService.getBlockTemplate (/public-pool/dist/services/bitcoin-rpc.service.js:114:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.16.1
benjamin-wilson commented 2 months ago

This is caused by Bitcoin core rpc not responding in a timely manner and indicates the hardware is under powered