Pages:
Author

Topic: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff - page 30. (Read 221044 times)

hero member
Activity: 532
Merit: 500
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
hero member
Activity: 481
Merit: 529
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:

Code:
   510	            if total_ss <= 0:
   511                 percent_destroyed = ' '
   512             else:
   513                 percent_destroyed = '%5g' % (
   514                     100.0 - (100.0 * ss / total_ss)) + '%'
sr. member
Activity: 271
Merit: 250
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.
hero member
Activity: 532
Merit: 500
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
hero member
Activity: 481
Merit: 529
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.
hero member
Activity: 481
Merit: 529
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?
legendary
Activity: 1792
Merit: 1008
/dev/null
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
Code:
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
legendary
Activity: 1792
Merit: 1008
/dev/null
right, i got a problem with the testnet chain:
Code:
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?
hero member
Activity: 532
Merit: 500
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
hero member
Activity: 481
Merit: 529
I've tried both ways still no good John plz look at this
http://pastebin.com/NwJWQHRv
If the coin is derived from PPCoin/Peercoin, try the "ppcoin" branch (git checkout ppcoin).
hero member
Activity: 481
Merit: 529
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 Tongue

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.
hero member
Activity: 532
Merit: 500
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
legendary
Activity: 1792
Merit: 1008
/dev/null
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 Tongue

if i change it to 4 chars in MySQL, will it work or does Abe bail out on it?
hero member
Activity: 481
Merit: 529
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.
hero member
Activity: 532
Merit: 500
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
hero member
Activity: 481
Merit: 529
PS.
Most of the people need something really simple and intuitive for browsing the block chain
Any thoughts of a really light minimalistic interface?
Well, it would be nice to separate Abe more into model/view/controller.  Maybe JSON versions of the UI pages, and implement the UI in JavaScript?

Thanks for the Testnet3 explorer!  I don't know who uses Testnet3 or how to tell them, but I'm glad to know about it.
member
Activity: 119
Merit: 112
_copy_improve_
I don't know were is the correct place to announce this

Testnet3 Blockexplorer
http://pool.qdoop.net:18331/chain/Testnet3

Thanks Tobey

PS.
Most of the people need something really simple and intuitive for browsing the block chain
Any thoughts of a really light minimalistic interface?
hero member
Activity: 481
Merit: 529
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!
sr. member
Activity: 271
Merit: 250
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.
legendary
Activity: 1792
Merit: 1008
/dev/null
can i have a Abe with sha256d chains and scrypt chains? also where is the docu for scrypt based chains?
Did you try it?  http://explorer.litecoin.net/ appears Abe based, and doesn't LTC use scrypt?  I'd suggest asking them if they had to change anything.  They should give you the explorer source.  (If not, I'd like to know...)

Abe does not (yet) contain any special code for scrypt.  That would be nice to add.

now i did, works out of the box Smiley
Pages:
Jump to: