Skip to content

json call for getWork returns 404 not found error when solo mining #21508

@scoscmil

Description

@scoscmil

System information

Geth version: 1.9.20-stable
OS & Version: Ubuntu 19.10
Commit hash : N/A

Expected behaviour

HTTP POST with JSON call for {"id":1,"jsonrpc":"2.0","method":"eth_getWork"} returns the most recent block

Actual behaviour

Geth HTTP RPC returns 404 not found.

Steps to reproduce the behaviour

Launch geth with the following parameters: geth --http --http.addr 0.0.0.0 --http.vhosts '*' --http.api eth,net,web3,ethash,miner ---mine

Solo mine with parity miner with the http://:8545 and see returned 404 error

Packet capture

--- REQUEST--- 
POST /0x000<<walletaddress>> HTTP/1.1
Host: 192.168.155.150:8545
Accept: */*
Content-Type: application/json
charsets: utf-8
Content-Length: 48

{"id":1,"jsonrpc":"2.0","method":"eth_getWork"}

--- RESPONSE ---
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Tue, 01 Sep 2020 18:24:44 GMT
Content-Length: 19

404 page not found


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions