Bitcoin Forum
April 27, 2024, 07:15:08 PM *
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)
Jouke
Sr. Member
****
Offline Offline

Activity: 426
Merit: 250



View Profile WWW
May 06, 2013, 11:02:08 AM
Last edit: May 06, 2013, 01:06:41 PM by Jouke
 #421

Cool. If it would be possible to connect to multiple nodes, I guess it wouldn't be that hard to build some rudimentary double spent check. If only I had the time Sad

Koop en verkoop snel en veilig bitcoins via iDeal op Bitonic.nl
1714245308
Hero Member
*
Offline Offline

Posts: 1714245308

View Profile Personal Message (Offline)

Ignore
1714245308
Reply with quote  #2

1714245308
Report to moderator
1714245308
Hero Member
*
Offline Offline

Posts: 1714245308

View Profile Personal Message (Offline)

Ignore
1714245308
Reply with quote  #2

1714245308
Report to moderator
1714245308
Hero Member
*
Offline Offline

Posts: 1714245308

View Profile Personal Message (Offline)

Ignore
1714245308
Reply with quote  #2

1714245308
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714245308
Hero Member
*
Offline Offline

Posts: 1714245308

View Profile Personal Message (Offline)

Ignore
1714245308
Reply with quote  #2

1714245308
Report to moderator
1714245308
Hero Member
*
Offline Offline

Posts: 1714245308

View Profile Personal Message (Offline)

Ignore
1714245308
Reply with quote  #2

1714245308
Report to moderator
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
May 10, 2013, 01:15:22 AM
Last edit: May 10, 2013, 01:40:19 AM by John Tobey
 #422

The latest commit supports a very crude SVG rendering of the logarithmic hash rate chart.  I do not expect to have time to add basic stuff like grid lines, axis values, and difficulty for a while, but I do hope to see the basic shape of various alt chains someday. Smiley

Trying to look like Sipa's famous chart: http://bitcoin.sipa.be/speed-ever.png

Snapshot taken just now: http://john-edwin-tobey.org/images/nethash.png

Live location: http://abe.john-edwin-tobey.org/chain/Bitcoin/q/nethash?format=svg

The implementation uses the nethash API code and should not burden the server any more than /q/nethash.  There is also JSONP support via /q/nethash?jsonp=<function>.

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

Activity: 8
Merit: 0


View Profile
May 14, 2013, 06:27:34 PM
 #423

Hi.
I am getting this error:

Code:
[2013-05-14 10:42:53] >> Opened /opt/litecoin/.litecoin/blk0001.dat
[2013-05-14 10:42:53] >> Exception at 1034257218
[2013-05-14 10:42:53] >> Failed to catch up {'blkfile_offset': 1034252127, 'blkfile_number': 1, 'chain_id': 8, 'loader': None, 'dirname': '/opt/litecoin/.litecoin', 'id': Decimal('1')}
[2013-05-14 10:42:53] >> Traceback (most recent call last):
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 2549, in catch_up
[2013-05-14 10:42:53] >>     store.catch_up_dir(dircfg)
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 2809, in catch_up_dir
[2013-05-14 10:42:53] >>     store.import_blkdat(dircfg, ds, blkfile['name'])
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 2917, in import_blkdat
[2013-05-14 10:42:53] >>     store.import_block(b, chain_ids = chain_ids)
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 1692, in import_block
[2013-05-14 10:42:53] >>     tx['tx_id'] = store.import_tx(tx, pos == 0)
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 2146, in import_tx
[2013-05-14 10:42:53] >>     txin['prevout_hash'], txin['prevout_n'])
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 2470, in lookup_txout
[2013-05-14 10:42:53] >>     (store.hashin(tx_hash), txout_pos))
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 605, in selectrow
[2013-05-14 10:42:53] >>     store.sql(stmt, params)
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 481, in sql
[2013-05-14 10:42:53] >>     store.cursor.execute(cached, params)
[2013-05-14 10:42:53] >> InternalError: invalid page header in block 61022 of relation base/17556/17801

Do you know what's happening? Did my DB get corrupted?
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
May 14, 2013, 06:41:26 PM
 #424

Code:
[2013-05-14 10:42:53] >>   File "Abe/DataStore.py", line 481, in sql
[2013-05-14 10:42:53] >>     store.cursor.execute(cached, params)
[2013-05-14 10:42:53] >> InternalError: invalid page header in block 61022 of relation base/17556/17801

Do you know what's happening? Did my DB get corrupted?

Offhand, it appears to be internal to the database system.  I don't think "block 61022" refers to the blockchain.  I'd try to dump and reload the database, and if that doesn't do it, search the web for "invalid page header in block".

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

Activity: 42
Merit: 0


View Profile
May 17, 2013, 11:12:47 PM
 #425

Hi! I'm trying to get Abe working through RPC instead of reading my blockchain files directly and I'm having problems. I believe I've met all the requirements listed at the end of abe.conf regarding RPC, but when I try to start Abe, I get this:

Code:
$ python -m Abe.abe --config abe.conf
no chain_id
Failed to catch up {'blkfile_offset': 77633101, 'blkfile_number': 100060, 'chain_id': None, 'loader': None, 'dirname': u'/home/user/.bitcoin', 'id': 1}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2553, in catch_up
    raise Exception("RPC load failed")
Exception: RPC load failed
Abe initialized.
Listening on http://192.168.1.2:2750

I see almost no references in the documentation to "chain_id" so I'm really not sure what to do. Google has been no help. I tried renaming abe.sqlite and hoping it would just rebuild the entire database from scratch using RPC and in that case I get this:

Code:
$ python -m Abe.abe --config abe.conf
ddl_implicit_commit=true
create_table_epilogue=''
max_varchar=4294967295
clob_type=CLOB
binary_type=buffer
int_type=str
Created silly table abe_dual
sequence_type=update
limit_style=native
commit
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': 1, 'loader': u'rpc', 'dirname': u'/home/user/.bitcoin', 'id': 1}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2551, in catch_up
    if not store.catch_up_rpc(dircfg):
  File "Abe/DataStore.py", line 2716, in catch_up_rpc
    format = "binary")
  File "Abe/DataStore.py", line 2254, in export_tx
    'prevout_hash': store.hashout(prevout_hash),
  File "Abe/DataStore.py", line 319, in rev
    return x[::-1]
TypeError: 'NoneType' object has no attribute '__getitem__'
Abe initialized.
Listening on http://192.168.1.2:2750

Any ideas?
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
May 18, 2013, 02:28:22 AM
 #426

Hi! I'm trying to get Abe working through RPC instead of reading my blockchain files directly and I'm having problems. I believe I've met all the requirements listed at the end of abe.conf regarding RPC, but when I try to start Abe, I get this:

Code:
$ python -m Abe.abe --config abe.conf
no chain_id

Hi!  Thanks for trying, and my apologies for the rough edges.  If using an already loaded database, issue the following SQL before restarting:

Code:
$ sqlite3 abe.sqlite
sqlite> UPDATE datadir SET chain_id = 1 WHERE dirname='/home/user/.bitcoin';
sqlite> .quit

I see almost no references in the documentation to "chain_id" so I'm really not sure what to do. Google has been no help. I tried renaming abe.sqlite and hoping it would just rebuild the entire database from scratch using RPC and in that case I get this:

Code:
$ python -m Abe.abe --config abe.conf
ddl_implicit_commit=true
create_table_epilogue=''
max_varchar=4294967295
clob_type=CLOB
binary_type=buffer
int_type=str
Created silly table abe_dual
sequence_type=update
limit_style=native
commit
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': 1, 'loader': u'rpc', 'dirname': u'/home/user/.bitcoin', 'id': 1}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2551, in catch_up
    if not store.catch_up_rpc(dircfg):
  File "Abe/DataStore.py", line 2716, in catch_up_rpc
    format = "binary")
  File "Abe/DataStore.py", line 2254, in export_tx
    'prevout_hash': store.hashout(prevout_hash),
  File "Abe/DataStore.py", line 319, in rev
    return x[::-1]
TypeError: 'NoneType' object has no attribute '__getitem__'
Abe initialized.
Listening on http://192.168.1.2:2750

Any ideas?

Thanks for this, it is a bug that I may be able to fix.  But try the update statement.

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

Activity: 42
Merit: 0


View Profile
May 18, 2013, 10:49:40 AM
 #427

Manually setting the chain_id with sqlite3 seems to have worked! Thanks!
pizzaman1337
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
May 20, 2013, 10:18:40 PM
 #428

Is there a way to get a list of transactions to/from an address in JSON format? If not, that would be an awesome feature to have.

blockchain.info has an API like this: https://blockchain.info/address/1dice7fUkz5h4z2wPc1wLMPWgB5mDwKDx?format=json
vongesell
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 31, 2013, 05:29:31 PM
 #429

Getting this error on first import

Code:
> python -m Abe.abe --upgrade --dbtype=sqlite3  --connect-args=abe.sqlite --port 2750 --datadir=../
no chain_id
catch_up_rpc: abort
Opened ../blocks/blk00000.dat
...
...
block_tx 2260 2290
commit
Exception at 521845
Failed to catch up {'blkfile_offset': 521621, 'blkfile_number': 100000, 'chain_id': None, 'loader': None, 'dirname': '../', 'id': 3}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2596, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe/DataStore.py", line 2850, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Abe/DataStore.py", line 2958, in import_blkdat
    store.import_block(b, chain_ids = chain_ids)
  File "Abe/DataStore.py", line 1811, in import_block
    len(b['transactions']), b['search_block_id']))
  File "Abe/DataStore.py", line 507, in sql
    store._execute(cached, params)
  File "Abe/DataStore.py", line 484, in _execute
    store.cursor.execute(stmt, params)
OverflowError: long too big to convert

.... thats what she said
vongesell
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 31, 2013, 05:48:54 PM
 #430

Getting this error on first import

Code:
> python -m Abe.abe --upgrade --dbtype=sqlite3  --connect-args=abe.sqlite --port 2750 --datadir=../
no chain_id
...
OverflowError: long too big to convert

As suggested at https://github.com/jtobey/bitcoin-abe/issues/16 RTFM. the README-SQLITE suggests making int's strings and this fixes it:

Code:
python -m Abe.abe --upgrade --dbtype=sqlite3  --connect-args=abe.sqlite --port 2750 --datadir=../ --int-type=str
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
June 07, 2013, 07:57:27 PM
 #431

can i have a Abe with sha256d chains and scrypt chains? also where is the docu for scrypt based chains?

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

Activity: 42
Merit: 0


View Profile
June 07, 2013, 10:31:07 PM
 #432

Is there any way for Abe to not update the database with the latest transactions? Running in FastCGI mode, most requests take a long time to return a result because Abe is reading the most recent transactions and inserting them into the database. I know I can start in standalone mode, but then what's the point of FastCGI mode at all? Ideally what I'd like to do is have a process that runs in the background loading new transactions, sleeping for a few seconds or minutes, and loading again, forever. And the FastCGI side of things would just be a user interface to the back-end database, basically. Is that possible? Am I missing something obvious?
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 07, 2013, 10:41:57 PM
 #433

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.

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 07, 2013, 10:46:38 PM
 #434

Is there any way for Abe to not update the database with the latest transactions? Running in FastCGI mode, most requests take a long time to return a result because Abe is reading the most recent transactions and inserting them into the database. I know I can start in standalone mode, but then what's the point of FastCGI mode at all? Ideally what I'd like to do is have a process that runs in the background loading new transactions, sleeping for a few seconds or minutes, and loading again, forever. And the FastCGI side of things would just be a user interface to the back-end database, basically. Is that possible? Am I missing something obvious?

You are on the right track.  I ought to be typing this into a new "readme-server.txt" file.  Try "datadir=[]" in your FastCGI config to disable loading, and "no-serve" in the loader config to disable serving.

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

Activity: 42
Merit: 0


View Profile
June 07, 2013, 11:18:09 PM
 #435

Thanks, that worked perfectly! Now the only weirdness is that this keeps showing up in my Apache error log every time I search by Bitcoin address (address redacted in example below):

Code:
/usr/local/lib/python2.7/dist-packages/Abe/DataStore.py:484: Warning: Truncated incorrect INTEGER value: '1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
  store.cursor.execute(stmt, params)

Everything still works just fine, though. Thanks again!
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
June 09, 2013, 02:38:16 PM
 #436

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

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

Activity: 271
Merit: 250


View Profile
June 10, 2013, 09:48:48 PM
 #437

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.

#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 11, 2013, 06:37:51 PM
 #438

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!

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

Activity: 119
Merit: 112


_copy_improve_


View Profile WWW
June 11, 2013, 07:12:25 PM
 #439

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?

_copy_improve_
news flow http://www.qdoop.org/
(offline) The simple bitcoin game  http://qdoop.net Testnet3 block explorer   http://pool.qdoop.net:18331/chain/Testnet3
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 11, 2013, 07:36:35 PM
 #440

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.

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!