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

Abe and testnet3 #133

Closed
yhaenggi opened this issue Jul 22, 2014 · 4 comments
Closed

Abe and testnet3 #133

yhaenggi opened this issue Jul 22, 2014 · 4 comments

Comments

@yhaenggi
Copy link

Im running abe (darkgamex.ch:2751) with bitcoind testnet3 and i have this error since some time:

Opened /home/k1773r/.bitcoin/testnet3/blocks/blk00008.dat
Exception at 10934906470982756971
Failed to catch up {'blkfile_offset': 55889898, 'blkfile_number': 100008, 'chain_id': 13, 'loader': 'blkfile', 'dirname': '/home/k1773r/.bitcoin/testnet3/', 'id': Decimal('37')}
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Abe/DataStore.py", line 2633, in catch_up
    store.catch_up_dir(dircfg)
  File "/usr/local/lib/python2.7/dist-packages/Abe/DataStore.py", line 2897, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "/usr/local/lib/python2.7/dist-packages/Abe/DataStore.py", line 3024, in import_blkdat
    b = store.parse_block(ds, chain_id, magic, length)
  File "/usr/local/lib/python2.7/dist-packages/Abe/DataStore.py", line 3055, in parse_block
    d['transactions'].append(deserialize.parse_Transaction(ds))
  File "/usr/local/lib/python2.7/dist-packages/Abe/deserialize.py", line 88, in parse_Transaction
    d['txIn'].append(parse_TxIn(vds))
  File "/usr/local/lib/python2.7/dist-packages/Abe/deserialize.py", line 46, in parse_TxIn
    d['sequence'] = vds.read_uint32()
  File "/usr/local/lib/python2.7/dist-packages/Abe/BCDataStream.py", line 71, in read_uint32
    def read_uint32 (self): return self._read_num('<I')
  File "/usr/local/lib/python2.7/dist-packages/Abe/BCDataStream.py", line 110, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
OverflowError: Python int too large to convert to C long

The problematic block is 265322 (it fetched upto 265321).

@jtobey
Copy link
Member

jtobey commented Aug 5, 2014

I would like to see the raw block. Can you run this command and post the resulting b265322.dat file?

dd if=/home/k1773r/.bitcoin/testnet3/blocks/blk00008.dat bs=1 count=2000 skip=55889898 of=b265322.dat

I may need you to increase count=2000 if the block is large.

@yhaenggi
Copy link
Author

yhaenggi commented Aug 5, 2014

ive done it with count=10^6, as a block can be max 1MB to save some time if needed.

http://darkgamex.ch/upload/08Qd4LXFV9eJt5ndPVwJ/b265322.dat

@jtobey
Copy link
Member

jtobey commented Aug 6, 2014

The block has an unusual version number, and Abe interprets bit 8 of it as a Namecoin merge mining flag. This is fixed in the latest code, but for your version this might work:

ignore-bit8-chains = ["Bitcoin", "Testnet", "Testnet3"]

(replace "Testnet3" with whatever you named the chain.)

@yhaenggi
Copy link
Author

yhaenggi commented Aug 8, 2014

Thanks, the hotfix works.
Ignored bit8 in version 0x075bcd15 of chain_id 13

@yhaenggi yhaenggi closed this as completed Aug 8, 2014
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