Help RESOLVE Error! LoadExternalBlockFile: Deserialize or I/O error Bitcoin Code Error
$10-30 USD
Closed
Posted over 6 years ago
$10-30 USD
Paid on delivery
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:
Code:
// 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]
#ifndef BITCOIN_PRIMITIVES_BLOCK_H
#define BITCOIN_PRIMITIVES_BLOCK_H
#include "primitives/transaction.h"
#include "serialize.h"
#include "uint256.h"
/** 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
{
public:
uint256 hashBlock;
std::vector<uint256> vMerkleBranch;
int nIndex;
// memory only
mutable bool fMerkleVerified;
CAuxMerkleBranch()
{
Init();