Bitcoin Forum
April 25, 2024, 03:42:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23] 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 »
  Print  
Author Topic: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff  (Read 220734 times)
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
June 14, 2013, 07:18:19 PM
 #441

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

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
1714016527
Hero Member
*
Offline Offline

Posts: 1714016527

View Profile Personal Message (Offline)

Ignore
1714016527
Reply with quote  #2

1714016527
Report to moderator
1714016527
Hero Member
*
Offline Offline

Posts: 1714016527

View Profile Personal Message (Offline)

Ignore
1714016527
Reply with quote  #2

1714016527
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 14, 2013, 08:27:53 PM
 #442

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.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
June 14, 2013, 08:48:41 PM
 #443

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?

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
June 14, 2013, 08:59:06 PM
 #444

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

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 15, 2013, 06:38:53 AM
 #445

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.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 15, 2013, 06:42:37 AM
 #446

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).

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
June 15, 2013, 11:26:05 PM
 #447

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

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
June 16, 2013, 07:32:24 PM
 #448

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?

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
June 16, 2013, 08:18:28 PM
 #449

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

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 17, 2013, 12:52:42 AM
 #450

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?

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 17, 2013, 12:57:10 AM
 #451

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.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
June 17, 2013, 03:06:35 AM
 #452

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

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
diatonic
Sr. Member
****
Offline Offline

Activity: 271
Merit: 250


View Profile
June 20, 2013, 04:30:45 PM
 #453

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.

#bitcoin-otc ratings: http://bitcoin-otc.com/viewratingdetail.php?nick=diatonic | Tips: 1DiATonicgGnUcsH6NpSuCEDwRRW3wecgs
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 20, 2013, 04:58:25 PM
 #454

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 = '&nbsp;'
   512             else:
   513                 percent_destroyed = '%5g' % (
   514                     100.0 - (100.0 * ss / total_ss)) + '%'

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
MobGod
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile WWW
June 20, 2013, 05:01:31 PM
 #455

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

For security, your account has been locked. Email acctcomp15@theymos.e4ward.com
diatonic
Sr. Member
****
Offline Offline

Activity: 271
Merit: 250


View Profile
June 20, 2013, 06:07:55 PM
 #456


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!

#bitcoin-otc ratings: http://bitcoin-otc.com/viewratingdetail.php?nick=diatonic | Tips: 1DiATonicgGnUcsH6NpSuCEDwRRW3wecgs
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 20, 2013, 08:03:20 PM
 #457

Hi MobGod,

The last PM from you is about:

Code:
  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?

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 20, 2013, 08:05:57 PM
 #458

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.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
June 21, 2013, 05:58:23 AM
 #459

where you able to find out what was wrong with testnet3?

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 23, 2013, 11:23:46 PM
 #460

where you able to find out what was wrong with testnet3?
Not yet, thanks for the reminder.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23] 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!