Started by Bitcoin, Feb 25, 2022, 03:59 pm
0 Members and 1 Guest are viewing this topic.
I'm creating an altcoin for research proposal based on bitcoin v0.21.I added two fields to the block header:
Both fields are string type.
I'm creating new blocks by using cpuminer (solo mining). The mining is done by calling submitblock RPC call.During the mining I'm getting the exception: Block decode failed which means that the server cannot deserialize the block.When I'm calling submitblock RPC call, the new fields are empty.
Block decode failed
When I'm creating a block by calling generatetoaddress RPC call, the block is accepted to the blockchain.
When I'm printing the exception at DecodehexBlk the error that printed is: CDataStream::read(): end of data: iostream error
CDataStream::read(): end of data: iostream error
Page created in 0.274 seconds with 18 queries.