Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clique not mining any txs, block author is 0x00 #1097

Closed
nolash opened this issue May 21, 2022 · 2 comments
Closed

clique not mining any txs, block author is 0x00 #1097

nolash opened this issue May 21, 2022 · 2 comments
Labels
RPC JSON-RPC over HTTP/websocket

Comments

@nolash
Copy link

nolash commented May 21, 2022

Running the following command (private key matches address)

build/nimbus --rpc=true --log-level=TRACE --custom-network=/home/lash/tmp/noconfig.json --data-dir=/home/lash/tmp/n --engine-signer=0xeb3907ecad74a0013c259d5874ae7f22dcbcc95c --import-key=/home/lash/tmp/n/pk.txt

Genesis config is https://g33k.holbrook.no/67f69a5f

Maybe I've messed up the config somehow, but I send transactions to the node, eg:

{"jsonrpc": "2.0", "id": "aee5964c-7438-4a59-80ef-51e737fb0d94", "method": "eth_sendRawTransaction", "params": ["0xf86580843b9aca008252089449aa013a7e3dee25e9032c3dec5c1a582bbaed940a80820119a0fe52cb0f505be80f194a76ce001447a6c2a2249d7b240f9553c4a59ef609eb94a072998ebea4c2eb7b9f488f5e5954c8cde5c691f54fc8736d7644985c2cf07f70"]}

{"jsonrpc":"2.0","id":"aee5964c-7438-4a59-80ef-51e737fb0d94","result":"0xf5e4daa21ecba8f7643f6c214dcf7d8c5433dec92b7bef37a1aa9c318f74e223"}

but then:

{"jsonrpc": "2.0", "id": "c7c29ddc-77ef-4532-9f7b-4a83348da5bd", "method": "eth_getTransactionByHash", "params": ["0xf5e4daa21ecba8f7643f6c214dcf7d8c5433dec92b7bef37a1aa9c318f74e223"]}

{"jsonrpc":"2.0","id":"c7c29ddc-77ef-4532-9f7b-4a83348da5bd","result":null}

The following block is empty, and has the zero-address as "author":

{"jsonrpc": "2.0", "id": "15f62cc0-3e85-4dab-8d72-f10ccb7a216c", "method": "eth_getBlockByNumber", "params": ["0xc", false]}

{"jsonrpc":"2.0","id":"15f62cc0-3e85-4dab-8d72-f10ccb7a216c","result":{"number":"0xc","hash":"0xb6036746975c52cd1cee49992c96e2e6ec780bc74c0a1b30a08edcf955854a4f","parentHash":"0x118d06b582127b8c6d4519979423d9e39d6aed5f7650d1152f70ac6d4506fe08","nonce":"0x0000000000000000","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","logsBloom":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","stateRoot":"0x12b31427d9900f523071c84f461870d27383e5c1955251e8f318ec4fa2382627","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","miner":"0x0000000000000000000000000000000000000000","difficulty":"0x2","totalDifficulty":"0x19","extraData":"0x0000000000000000000000000000000000000000000000000000000000000000953566f89e7186c126133fb94892bad9c5919697833b53429855e0898d0a5a1d5e59e8d40c0ffe82839d30d6641217da74866b3a6c30eeb5ac98807a8b3b099001","size":"0x2C9","gasLimit":"0x7A1200","gasUsed":"0x0","timestamp":"0x62894DFF","transactions":[],"uncles":[]}}


$ git rev-parse HEAD
137eb97766e9ecbda2f2e1375ae3b51b4c346ad7
$ nim --version
Nim Compiler Version 1.6.6 [Linux: amd64]
@jangko
Copy link
Contributor

jangko commented May 29, 2022

{"jsonrpc": "2.0", "id": "15f62cc0-3e85-4dab-8d72-f10ccb7a216c", "method": "eth_getBlockByNumber", "params": ["0xc", false]}

["0xc", true] if you want to get transaction from a block.

zero-address as "author"

Clique only use miner field if the protocol want to vote-in or vote-out a signer. otherwise it should be zero.

eth_getTransactionByHash return null

not sure why

@jangko jangko added the RPC JSON-RPC over HTTP/websocket label Dec 25, 2022
@tersec
Copy link
Contributor

tersec commented May 25, 2024

nimbus-eth1 does not support clique anymore: #2219

@tersec tersec closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RPC JSON-RPC over HTTP/websocket
Projects
None yet
Development

No branches or pull requests

3 participants