Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while syncing blocks #47

Open
jonassunandar opened this issue Mar 10, 2020 · 2 comments
Open

Error while syncing blocks #47

jonassunandar opened this issue Mar 10, 2020 · 2 comments

Comments

@jonassunandar
Copy link

Hey guys,
Love what you are doing!

But I get this error while trying to sync blocks from the existing blockchain.

block_tx 62 63
block_tx 63 64
Exception at 3388430958997887345
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 100000, 'chain_id': 1, 'loader': u'default', 'conf': None, 'dirname': u'/root/.multichain/pharmacy', 'id': 1}
Traceback (most recent call last):
  File "Mce/DataStore.py", line 2903, in catch_up
    store.catch_up_dir(dircfg)
  File "Mce/DataStore.py", line 3215, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Mce/DataStore.py", line 3337, in import_blkdat
    b = chain.ds_parse_block(ds)
  File "Mce/Chain/__init__.py", line 133, in ds_parse_block
    d['transactions'].append(chain.ds_parse_transaction(ds))
  File "Mce/Chain/__init__.py", line 126, in ds_parse_transaction
    return deserialize.parse_Transaction(ds)
  File "Mce/deserialize.py", line 90, in parse_Transaction
    d['txIn'].append(parse_TxIn(vds))
  File "Mce/deserialize.py", line 46, in parse_TxIn
    d['sequence'] = vds.read_uint32()
  File "Mce/BCDataStream.py", line 71, in read_uint32
    def read_uint32 (self): return self._read_num('<I')
  File "Mce/BCDataStream.py", line 110, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
error: unpack_from requires a buffer of at least 4 bytes

MultiChain 1.0.9 Daemon (protocol 10004-10012)
Latest multichain-explorer version.
Ubuntu 18.04.3 LTS

Any idea why?
Thanks in advance!

@gidgreen
Copy link
Contributor

We'd need to see your blockchain in order to be able to debug this. If that's an option, please stop your node, zip up your blockchain directory, then send it to multichain dot debug at gmail dot com.

@jonassunandar
Copy link
Author

I already sent you my blockchain dir via email. Please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants