Bitcoin
A$ 82,078
WINkLink
A$ 0.0008243
Ethereum
A$ 5,409.0

What is a correct extranonce2 value in the stratum protocol?

I’m developing a stratum mining client. I read on stratum v1 docs on braiins.com how mining work is done on the stratum protocol and that the coinbase is done by concatenating coinb1+extranonce1+extranonce2+coinb2. At the end, mining work is submitted by sending this JSON: {"params": ["<worker>", "<job_id>", "<extranonce2>", "<ntime>", "<nonce>"], "id": 4, "method": "mining.submit"}.

It says that the extranonce2 value is generated by the miner but must be based on the extranonce2 size provided by the pool. The extranonce2_size im getting from the pool is: 4 (4 bytes). So an extranonce2 value of 00000001(in hex) can be valid.

However, when i’m trying to submit a random miner work to the pool(just testing) by throwing in random nonce and extraonce2(but of course using the current jobId and ntime provided by the response i got from the pool) i keep getting this error response: 20,incorrect size of extranonce2.

The random extranonce2 i’m sending is ‘00000002’ and random nonce is ‘b2957c02’. Shouldn’t i get a rejected share and not an incorrect extranonce2 size? I’m still new to this and don’t yet understand exactly how everything works so where’s my mistake here? or is it a pool problem? I know there’s a lot of stuff to do before sending the miner work but here i’m trying to send a random miner work here.

btw is the request id always 4 in stratum for submitting work(or id: ‘mining.submit’)?

I’m authorizing the miner before submitting.

Related Posts

Leave a Reply

Subscribe To Newsletter

For updates and exclusive offers, enter your e-mail below.

Donate To Cryptonic Australia


Donate BTC: 1MPYuHUKm3AhNivMSngqLnoEbpNEecHeEK
Donate Doge: DDYybw7H8zx8EYU74JrGW8WwmYh9AGuyMC
Donate WinK: TDiXutqKE3P17LpZMQh3SDBCGSkAC6iEjB




How do I discover my lacking bitcoin on Bitcore?
October 23, 2021
Israel on Its Method to Design Digital Shekel Primarily based on Ethereum (Report)
October 23, 2021
Analyst Places Bitcoin Backside At $50,000, Right here’s Why
October 22, 2021




How do I discover my lacking bitcoin on Bitcore?
October 23, 2021
Israel on Its Method to Design Digital Shekel Primarily based on Ethereum (Report)
October 23, 2021
Analyst Places Bitcoin Backside At $50,000, Right here’s Why
October 22, 2021


CryptoCurrencyAUDChange 1hChange 24hChange 7d
Bitcoin82,078 0.31 % 3.72 % 0.87 %
Ethereum5,409.0 0.34 % 2.88 % 3.92 %
Binance Coin646.50 0.04 % 2.54 % 1.38 %
Tether1.340 0.02 % 0.02 % 0.25 %
Cardano2.910 0.52 % 1.42 % 2.31 %
Solana271.06 0.87 % 1.25 % 24.15 %
XRP1.460 0.09 % 1.56 % 4.62 %
Polkadot59.75 0.81 % 1.85 % 2.33 %
Dogecoin0.3321 0.35 % 0.32 % 5.48 %
USD Coin1.350 0.11 % 0.04 % 0.06 %

Recent Comments

Allison wick

I was a victim of WDC Markets investment scam some months ago myself. It was...

Greatness

he is the best when it comes to recovery, he helped recover my funds without...

URL

... [Trackback] [...] There you will find 63491 more Infos: cryptonic.com.au/evaluation-suggests-bitcoin-robust-palms-are-shopping-for-this-dip/ [...]