Bitcoin Forum
November 07, 2024, 05:01:09 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Block failed to accept after changing block header  (Read 79 times)
liorko87 (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 6


View Profile
February 28, 2022, 10:10:06 AM
 #1

I'm creating an altcoin for research proposal based on bitcoin v0.21. I added two fields to the block header:

1. Address ID (bech32/base58)
2. Signature
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 printing the exception at DecodehexBlk the error that printed is
Code:
CDataStream::read(): end of data: iostream error

When I'm creating a block by calling generatetoaddress RPC call, the block is accepted to the blockchain.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!