MobGod
|
|
June 14, 2013, 07:18:19 PM |
|
Hello John can you tell me how to fix this error i'm getting?
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': 11, 'loader': None, 'dirname': u'/home/mobgod/.bitgem/', 'id': 4} Traceback (most recent call last): File "Abe/DataStore.py", line 2592, in catch_up if not store.catch_up_rpc(dircfg): File "Abe/DataStore.py", line 2753, in catch_up_rpc raise InvalidBlock('block hash mismatch') InvalidBlock: block hash mismatch
|
|
|
|
John Tobey (OP)
|
|
June 14, 2013, 08:27:53 PM |
|
Hello John can you tell me how to fix this error i'm getting?
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': 11, 'loader': None, 'dirname': u'/home/mobgod/.bitgem/', 'id': 4} Traceback (most recent call last): File "Abe/DataStore.py", line 2592, in catch_up if not store.catch_up_rpc(dircfg): File "Abe/DataStore.py", line 2753, in catch_up_rpc raise InvalidBlock('block hash mismatch') InvalidBlock: block hash mismatch
Please try with "default-loader=blkfile" in your abe.conf, or try the workaround I just pushed to GitHub. To make RPC work, we will have to find out how this coin hashes its blocks.
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
June 14, 2013, 08:48:41 PM |
|
is it possible to have a 4 char code3, for example TBTC for Testnet Bitcoin? (according to README not, is this just a "you shouldnt do this" or a "this wont work and fucksup everything") dislike to try it out on my finally synced Abe and screw it up if i change it to 4 chars in MySQL, will it work or does Abe bail out on it?
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
MobGod
|
|
June 14, 2013, 08:59:06 PM |
|
Hello John can you tell me how to fix this error i'm getting?
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': 11, 'loader': None, 'dirname': u'/home/mobgod/.bitgem/', 'id': 4} Traceback (most recent call last): File "Abe/DataStore.py", line 2592, in catch_up if not store.catch_up_rpc(dircfg): File "Abe/DataStore.py", line 2753, in catch_up_rpc raise InvalidBlock('block hash mismatch') InvalidBlock: block hash mismatch
Please try with "default-loader=blkfile" in your abe.conf, or try the workaround I just pushed to GitHub. To make RPC work, we will have to find out how this coin hashes its blocks. I've tried both ways still no good John plz look at this http://pastebin.com/NwJWQHRv
|
|
|
|
John Tobey (OP)
|
|
June 15, 2013, 06:38:53 AM |
|
is it possible to have a 4 char code3, for example TBTC for Testnet Bitcoin? (according to README not, is this just a "you shouldnt do this" or a "this wont work and fucksup everything") dislike to try it out on my finally synced Abe and screw it up if i change it to 4 chars in MySQL, will it work or does Abe bail out on it? Well, I don't think it will cause any big problem within Abe. Currencies traditionally have 3-character codes, so I named it char3 and made the column 3 wide. If you widen the column and put in 4 chars, it will not break the database.
|
|
|
|
John Tobey (OP)
|
|
June 15, 2013, 06:42:37 AM |
|
If the coin is derived from PPCoin/Peercoin, try the "ppcoin" branch (git checkout ppcoin).
|
|
|
|
MobGod
|
|
June 15, 2013, 11:26:05 PM |
|
Hello John again i'm getting errors i've tried what you told me it just skips the blocks not sure why than this
block_tx 8470 8734 Skipped 72 bytes at block end block_tx 8471 8735 Skipped 72 bytes at block end block_tx 8472 8736 Skipped 71 bytes at block end block_tx 8473 8737 Skipped 71 bytes at block end block_tx 8474 8738 Skipped 71 bytes at block end commit
Mega uses scrypt as well. The main difference between mega and the other ltc clones that have come out is Mega uses the new 0.8.2 bitcoin code while litecoin and others use an older code base.
Scrypt is just the proof of work algorithm. Bitcoin uses sha-256 while bitgem, litecoin and most other new coins use scrypt. the main differance from ppc and novacoin are that nvc uses scrypt. Novacoin also has a pos roi which is calculated by the pos difficutly but yes basically ppc
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
June 16, 2013, 07:32:24 PM |
|
right, i got a problem with the testnet chain: k1773r@AltcoinVM:~$ ./abe-cron.sh Opened /home/k1773r/.bitcoin/testnet3/blocks/blk00000.dat Exception at 132197174 Failed to catch up {'blkfile_offset': 132196921, 'blkfile_number': 100000, 'chain_id': 14, 'loader': 'blkfile', 'dirname': '/home/k1773r/.bitcoin/testnet3/', 'id': Decimal('8')} Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Abe/DataStore.py", line 2590, in catch_up store.catch_up_dir(dircfg) File "/usr/local/lib/python2.6/dist-packages/Abe/DataStore.py", line 2850, in catch_up_dir store.import_blkdat(dircfg, ds, blkfile['name']) File "/usr/local/lib/python2.6/dist-packages/Abe/DataStore.py", line 2958, in import_blkdat store.import_block(b, chain_ids = chain_ids) File "/usr/local/lib/python2.6/dist-packages/Abe/DataStore.py", line 1750, in import_block raise MerkleRootMismatch(b['hash'], tx_hash_array) MerkleRootMismatch: Block header Merkle root does not match its transactions. block hash=fa4fb65d121f5bea686f01c8a9db922d9555e3554d306a8abd0a7eec00ab986d what should i do to fix it? redownload chain and running with --rescan?
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
June 16, 2013, 08:18:28 PM |
|
i deleted the chain and let it run with --rescan, it imported more blocks but it fails once again! same error, look at the crazby block file count Opened /home/k1773r/.bitcoin/testnet3/blocks/blk00001.dat Exception at 622305 Failed to catch up {'blkfile_offset': 622216, 'blkfile_number': 100001, 'chain_id': 14, 'loader': 'blkfile', 'dirname': '/home/k1773r/.bitcoin/testnet3/', 'id': Decimal('8')} Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Abe/DataStore.py", line 2590, in catch_up store.catch_up_dir(dircfg) File "/usr/local/lib/python2.6/dist-packages/Abe/DataStore.py", line 2850, in catch_up_dir store.import_blkdat(dircfg, ds, blkfile['name']) File "/usr/local/lib/python2.6/dist-packages/Abe/DataStore.py", line 2958, in import_blkdat store.import_block(b, chain_ids = chain_ids) File "/usr/local/lib/python2.6/dist-packages/Abe/DataStore.py", line 1750, in import_block raise MerkleRootMismatch(b['hash'], tx_hash_array) MerkleRootMismatch: Block header Merkle root does not match its transactions. block hash=0ad4ccdc9a0b56f3d04f65dfdc1a88daf93134252bf6620e59f7487ed873a095
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
John Tobey (OP)
|
|
June 17, 2013, 12:52:42 AM |
|
Hello John again i'm getting errors i've tried what you told me it just skips the blocks not sure why than this
block_tx 8470 8734 Skipped 72 bytes at block end block_tx 8471 8735 Skipped 72 bytes at block end
This is not an error, just a warning. This coin puts some extra data at the end of each block beyond what Bitcoin puts. Abe does not know what it is for, so it skips it. Can you browse the site?
|
|
|
|
John Tobey (OP)
|
|
June 17, 2013, 12:57:10 AM |
|
i deleted the chain and let it run with --rescan, it imported more blocks but it fails once again! same error, look at the crazby block file count
The block file number 100001 is okay, it just means blocks/blk00001.dat as opposed to the pre-0.8 ./blk0001.dat. As for the Merkle Root Mismatch, I would guess that Testnet3 is trying some new block format. I would be curious to see the raw data between offset 622216 and 622305 in your blk00001.dat file.
|
|
|
|
MobGod
|
|
June 17, 2013, 03:06:35 AM |
|
Hello John again i'm getting errors i've tried what you told me it just skips the blocks not sure why than this
block_tx 8470 8734 Skipped 72 bytes at block end block_tx 8471 8735 Skipped 72 bytes at block end
This is not an error, just a warning. This coin puts some extra data at the end of each block beyond what Bitcoin puts. Abe does not know what it is for, so it skips it. Can you browse the site? No the page does not work, I've been going crazy with this
|
|
|
|
diatonic
|
|
June 20, 2013, 04:30:45 PM |
|
If I click the >> link to browse to the beginning of the block chain, python barfs a big purple "division by zero" screen. Happened on a few of the abe installs I looked at. I'm testing mine for Doubloons at http://explorer.doubloons.net/chain/Doubloons. Any help to identify the problem would be appreciated. Interesting. Please update and see if this fixes it. The genesis block has zero output value, first time I've seen that. No premining there! I updated, but it still occurs. I've been setting up block explorers for a few alt coins. Some work fine, like this one for Xencoin (also, holy shit look at that pre-mine!) but this one for Noirbits fails. It appears to trap the error at line 511 in abe.py 509 else: 510 percent_destroyed = '%5g' % ( => 511 100.0 - (100.0 * ss / total_ss)) + '%' 512 513 body += [
I really appreciate your help trying to figure it out.
|
|
|
|
John Tobey (OP)
|
|
June 20, 2013, 04:58:25 PM |
|
this one for Noirbits fails. It appears to trap the error at line 511 in abe.py 509 else: 510 percent_destroyed = '%5g' % ( => 511 100.0 - (100.0 * ss / total_ss)) + '%' 512 513 body += [
I really appreciate your help trying to figure it out. This does not look like the latest version. Please update and try again. The current version has this at that part of the code: 510 if total_ss <= 0: 511 percent_destroyed = ' ' 512 else: 513 percent_destroyed = '%5g' % ( 514 100.0 - (100.0 * ss / total_ss)) + '%'
|
|
|
|
MobGod
|
|
June 20, 2013, 05:01:31 PM |
|
John can you help me out with the explorers i'm trying to get going i'vew sent you a couple msgs but not sure what to do to fix this
|
|
|
|
diatonic
|
|
June 20, 2013, 06:07:55 PM |
|
This does not look like the latest version. Please update and try again. The current version has this at that part of the code:
THANK YOU! I haven't worked with fastcgi much and just realized it was actually running an old version I installed from /usr/local/lib/python2.7/dist-packages/Abe/ instead of where I thought it was running from. All is working well now. Thanks!
|
|
|
|
John Tobey (OP)
|
|
June 20, 2013, 08:03:20 PM |
|
Hi MobGod, The last PM from you is about: File "/home/mobgod/abe_test/Abe/abe.py", line 354, in handle_chains 100.0 - (100.0 * (ss + more) / (total_ss + more))) ZeroDivisionError: float division by zero
I fixed that. What happens when you pull/merge the latest code and try again?
|
|
|
|
John Tobey (OP)
|
|
June 20, 2013, 08:05:57 PM |
|
THANK YOU! I haven't worked with fastcgi much and just realized it was actually running an old version I installed from /usr/local/lib/python2.7/dist-packages/Abe/ instead of where I thought it was running from. All is working well now. Thanks!
Good point. While troubleshooting, it's better to leave FastCGI out of the picture, if possible.
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
June 21, 2013, 05:58:23 AM |
|
where you able to find out what was wrong with testnet3?
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
John Tobey (OP)
|
|
June 23, 2013, 11:23:46 PM |
|
where you able to find out what was wrong with testnet3?
Not yet, thanks for the reminder.
|
|
|
|
|