@diatonic Please try the latest code and report back.
The errors I posted above happen when I try to load Litecoin, CHNCoin or GameCoin. I've got about 27 chains loaded now I think at
http://altcha.in .
I am working on a fix for this
old bug.
Thanks John, I really appreciate the time you've put in to this. I was able to load litecoin by itself in a fresh database, so I dropped the abe database and loaded from scratch. CHNcoin loaded, but I got errors when litecoin loaded. Perhaps they share a genesis block or something that is leading to the duplicate key error I'm seeing:
failed to load /home/diatonic/.litecoin/bitcoin.conf: [Errno 2] No such file or directory: u'/home/diatonic/.litecoin/bitcoin.conf'
catch_up_rpc: abort
Opened /home/diatonic/.litecoin/blk0001.dat
Exception at 8
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': Decimal('19'), 'loader': None, 'dirname': u'/home/diatonic/.litecoin', 'id': 33L}
Traceback (most recent call last):
File "Abe/DataStore.py", line 2632, in catch_up
store.catch_up_dir(dircfg)
File "Abe/DataStore.py", line 2890, in catch_up_dir
store.import_blkdat(dircfg, ds, blkfile['name'])
File "Abe/DataStore.py", line 3014, in import_blkdat
if not store.offer_existing_block(hash, chain_id):
File "Abe/DataStore.py", line 2501, in offer_existing_block
store.offer_block_to_chains(b, frozenset([chain_id]))
File "Abe/DataStore.py", line 2383, in offer_block_to_chains
b['top'] = store.adopt_orphans(b, 0, chain_ids, chain_ids)
File "Abe/DataStore.py", line 1970, in adopt_orphans
stack.pop()()
File "Abe/DataStore.py", line 1975, in doit
store._adopt_orphans_1(stack)
File "Abe/DataStore.py", line 2086, in _adopt_orphans_1
store._populate_block_txin(int(next_id))
File "Abe/DataStore.py", line 1919, in _populate_block_txin
(block_id, txin_id, oblock_id))
File "Abe/DataStore.py", line 508, in sql
store._execute(cached, params)
File "Abe/DataStore.py", line 485, in _execute
store.cursor.execute(stmt, params)
File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
IntegrityError: (1062, "Duplicate entry '577171-1214092' for key 'PRIMARY'")
I'll probably just pick one of those chains. I didn't suspect trying to get 30 chains loaded in Abe would require you to fix a bunch of stuff