Need an EXPERT DEV to help resolve issue.
Trying to do is trying to add merged mining (AuxPow) to a code base used by bitcoin/litecoin.
However, we are running into the following error:
>> LoadExternalBlockFile: Deserialize or I/O error - Read attempted past buffer limit: iostream error
This error comes from:
>> streams.h, near line 626 in the "read" method of CBufferedFile.
When trying to read a block with AuxPow, the relevant local variables in "read" are:
>> nsize 32, nReadPos 755, nReadLimit 776
The code base where most of the changes happen related to this happen in block.h:
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or [login to view URL]
/** Nodes collect new transactions into a block, hash them into a hash tree,
* and scan through nonce values to make the block's hash satisfy proof-of-work
* requirements. When they solve the proof-of-work, they broadcast the block
* to everyone and the block is added to the block chain. The first transaction
* in the block is a special one that creates a new coin owned by the creator
* of the block.
class CAuxMerkleBranch : public CMutableTransaction
// memory only
mutable bool fMerkleVerified;