Post
Topic
Board Development & Technical Discussion
Re: Bitcoin Mining Technical Details. Help
by
NotATether
on 17/10/2023, 12:16:30 UTC
On "regtest" when you try to send a block for confirmation(submitblock). I get an error. What could be the problem?

Code:
head_block: 02000000f8024dbfc207544804e79609b318eded16dc496a3d8ac37541b2f710b4baca5aede0d49252c8237598ae47f0078861c9fa1bad95a06b044228bb2fc6260fffbc633b2c65ffff7f20ceac66ad
~

I'm going to assume this is the block header, since it's exactly 160 hex characters long (= 80 bytes long, exactly matching the size)?

Code:
txs: 0300

If what I'm reading here in little-endian (3 transactions) is correct, note that according to the protocol documentation, the field for the number of transactions in the block header is always supposed to be zero. https://en.bitcoin.it/wiki/Protocol_documentation#Block_Headers