MultiversX Tracker is Live!

Block failed to accept after changing block header [closed]

Bitcoin Stack Exchange

Bitcoin News / Bitcoin Stack Exchange 152 Views

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 calling submitblock RPC call, the new fields are empty.

When I'm creating a block by calling generatetoaddress RPC call, the block is accepted to the blockchain.

EDIT

When I'm printing the exception at DecodehexBlk the error that printed is: CDataStream::read(): end of data: iostream error


Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments