Bitcoin Forum
November 04, 2024, 08:42:23 AM *
News: Latest Bitcoin Core release: 28.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 220959 times)
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
August 12, 2012, 12:41:29 PM
 #321

Is a /q/getdifficulty a possibility? Smiley
For you?  Done!  Please test.

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

Activity: 686
Merit: 500



View Profile
August 12, 2012, 09:39:59 PM
 #322

For you?  Done!  Please test.

I will when I get a chance, thanks!
mav
Full Member
***
Offline Offline

Activity: 169
Merit: 107


View Profile
August 13, 2012, 06:28:10 AM
 #323


By the way, I don't know if anyone has ever loaded the whole thing in SQLite.  I'll be surprised if it works and more surprised if it takes under a month.  I recommend MySQL or better for the BTC chain.  And regardless of database, an initial run with --no-serve --commit-bytes=100000 will probably speed it up.


I ran for ... about 5 days trying to populate sqlite on my i5 laptop.

It got to block 187400ish so far and is more than 5GB.

To anyone else who is considering using sqlite, it's not a good solution compared to mysql or postgres. It's possible, but not good.
ErebusBat
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500

I am the one who knocks


View Profile
August 13, 2012, 12:46:51 PM
 #324


By the way, I don't know if anyone has ever loaded the whole thing in SQLite.  I'll be surprised if it works and more surprised if it takes under a month.  I recommend MySQL or better for the BTC chain.  And regardless of database, an initial run with --no-serve --commit-bytes=100000 will probably speed it up.


I ran for ... about 5 days trying to populate sqlite on my i5 laptop.

It got to block 187400ish so far and is more than 5GB.

To anyone else who is considering using sqlite, it's not a good solution compared to mysql or postgres. It's possible, but not good.
Took me about 7.5 days, then electrum server complained about not being 64bit, I haven't ad time to look into it past there.

░▒▓█ Coinroll.it - 1% House Edge Dice Game █▓▒░ • Coinroll Thread • *FREE* 100 BTC Raffle

Signup for CEX.io BitFury exchange and get GHS Instantly!  Don't wait for shipping, mine NOW!
Eisenhower34
Legendary
*
Offline Offline

Activity: 906
Merit: 1002



View Profile
August 24, 2012, 01:44:20 AM
 #325

Regarding your two small code examples posted above, I wrote an MySQL query to get the confirmations for each block. I only wanted to crosscheck with you if I understood everything right and didnt make a misstake here:

Code:
SELECT (
    (SELECT b.block_height AS maxheight
    FROM block b
    JOIN chain c ON c.chain_last_block_id = b.block_id
    WHERE c.chain_id = 1) - chain_candidate.block_height
) AS cofirmations, chain_candidate.block_id
FROM chain_candidate
WHERE chain_candidate.chain_id = 1
    AND chain_candidate.in_longest = 1
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
August 24, 2012, 12:23:17 PM
 #326

Regarding your two small code examples posted above, I wrote an MySQL query to get the confirmations for each block. I only wanted to crosscheck with you if I understood everything right and didnt make a misstake here:

Code:
SELECT (
    (SELECT b.block_height AS maxheight
    FROM block b
    JOIN chain c ON c.chain_last_block_id = b.block_id
    WHERE c.chain_id = 1) - chain_candidate.block_height
) AS cofirmations, chain_candidate.block_id
FROM chain_candidate
WHERE chain_candidate.chain_id = 1
    AND chain_candidate.in_longest = 1
I think this is correct.

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

Activity: 249
Merit: 251



View Profile WWW
August 27, 2012, 04:42:38 PM
 #327

I have upgrade my server to 64bit. I have abe running at http://abe.bitcoinstats.org:2750 for anyone who wants to demo it. I'll list it in the wiki.

BM-GteJMPqvHRUdUHHa1u7dtYnfDaH5ogeY
Bitmessage.org - Decentralized, trustless, encrypted, authenticated messaging protocol and client.
Icoin
Hero Member
*****
Offline Offline

Activity: 585
Merit: 501



View Profile WWW
September 01, 2012, 11:05:10 PM
 #328

I had to rebuild my server with ubuntu 12.04 64bit after the switch im not able to run abe anymore. I suspect that the change from python 2.6 to 2.7 aswell as the change from mysql 5.1 to 5.5 has something to do with it, since i use the same abe.conf as before and it was running on ubuntu 10.04 32bit.
I allways end up with this error:
Code:
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/opt/abe/Abe/abe.py", line 2023, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/opt/abe/Abe/abe.py", line 1976, in main
    args, argv = readconf.parse_argv(argv, conf)
  File "Abe/readconf.py", line 57, in parse_argv
    _include(set(), val, arg_dict, config_name, strict)
  File "Abe/readconf.py", line 77, in _include
    entries = read(fp)
  File "Abe/readconf.py", line 153, in read
    js, c = scan_json(fp, c)
  File "Abe/readconf.py", line 259, in scan_json
    return _scan_json_compound(fp, c, ']')
  File "Abe/readconf.py", line 247, in _scan_json_compound
    cs, c = scan_json(fp, c)
  File "Abe/readconf.py", line 261, in scan_json
    return _scan_json_compound(fp, c, '}')
  File "Abe/readconf.py", line 247, in _scan_json_compound
    cs, c = scan_json(fp, c)
  File "Abe/readconf.py", line 264, in scan_json
    raise SyntaxError('Invalid initial JSON character: ' + c)
SyntaxError: Invalid initial JSON character: ?

Python 2.7.3
mysql  Ver 14.14 Distrib 5.5.24, for debian-linux-gnu (x86_64) using readline 6.2

i guess thats realy a python problem since i tried it with dbtype = sqlite3 and got the same result

John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
September 02, 2012, 04:26:37 AM
 #329

I had to rebuild my server with ubuntu 12.04 64bit after the switch im not able to run abe anymore. I suspect that the change from python 2.6 to 2.7 aswell as the change from mysql 5.1 to 5.5 has something to do with it, since i use the same abe.conf as before and it was running on ubuntu 10.04 32bit.
I allways end up with this error:
Code:
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/opt/abe/Abe/abe.py", line 2023, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/opt/abe/Abe/abe.py", line 1976, in main
    args, argv = readconf.parse_argv(argv, conf)
  File "Abe/readconf.py", line 57, in parse_argv
    _include(set(), val, arg_dict, config_name, strict)
  File "Abe/readconf.py", line 77, in _include
    entries = read(fp)
  File "Abe/readconf.py", line 153, in read
    js, c = scan_json(fp, c)
  File "Abe/readconf.py", line 259, in scan_json
    return _scan_json_compound(fp, c, ']')
  File "Abe/readconf.py", line 247, in _scan_json_compound
    cs, c = scan_json(fp, c)
  File "Abe/readconf.py", line 261, in scan_json
    return _scan_json_compound(fp, c, '}')
  File "Abe/readconf.py", line 247, in _scan_json_compound
    cs, c = scan_json(fp, c)
  File "Abe/readconf.py", line 264, in scan_json
    raise SyntaxError('Invalid initial JSON character: ' + c)
SyntaxError: Invalid initial JSON character: ?

Python 2.7.3
mysql  Ver 14.14 Distrib 5.5.24, for debian-linux-gnu (x86_64) using readline 6.2

i guess thats realy a python problem since i tried it with dbtype = sqlite3 and got the same result

This error has nothing to do with the database but perhaps relates to the Python version.  The error occurs while reading the config file.  Unfortunately, Abe did not report the line number where it thought the syntax was wrong.  I have committed a change to the parser that should let it report the error location in abe.conf.

Given that the invalid character is reported as '?' and no '?' occurs in the file you sent by PM, I suspect an encoding issue.

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

Activity: 585
Merit: 501



View Profile WWW
September 11, 2012, 12:19:03 PM
 #330

Thanks for the Support - Everything works Smiley

Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
September 11, 2012, 06:38:57 PM
 #331

I see that Abe is still under development, when can we expect 0.7?

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
September 11, 2012, 06:44:21 PM
 #332

I see that Abe is still under development, when can we expect 0.7?
At the moment the holdup is writing a change log.  Then I'll try to find all the pieces I need to build the Windows installer and update pypi.  Anything particular you need?

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

Activity: 284
Merit: 250



View Profile
September 12, 2012, 09:37:54 AM
 #333

I see that Abe is still under development, when can we expect 0.7?
At the moment the holdup is writing a change log.  Then I'll try to find all the pieces I need to build the Windows installer and update pypi.  Anything particular you need?

I would be glad to have the following features:

Support for multisig addresses:
===================
http://abe.bitcoinstats.org:2750/address/3JEFRC6tuXRjxG6YUDtYzEmYEphf5pb86C
https://blockchain.info/address/3JEFRC6tuXRjxG6YUDtYzEmYEphf5pb86C

Support for unspent:
============
http://blockchain.info/unspent?address=3JEFRC6tuXRjxG6YUDtYzEmYEphf5pb86C
(something in the direction on listunspent in https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list)

A tool to convert address to pubkey
=====================
http://blockchain.info/q/pubkeyaddr/12oESJ63gKmf7EtqEdrV7Xnid8dmYTBKE3

and as a bonus, it could be nice to have something like:
http://blockchain.info/multiaddr?active=3871TUSvEuHqHZZnswWtQSs31vK6LWnwcG|383TnXCdXnCkhQy4fwm6ZN2sf7XpZ4YJmp|3JEFRC6tuXRjxG6YUDtYzEmYEphf5pb86C

Since blockchain.info does not support testnet, there is currently no way to get the above data for testnet.

greetings,
Grazcoin

Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
September 15, 2012, 12:33:14 AM
 #334

I see that Abe is still under development, when can we expect 0.7?
At the moment the holdup is writing a change log.  Then I'll try to find all the pieces I need to build the Windows installer and update pypi.  Anything particular you need?

As a matter of fact there are a few things. Currently ABE doesn't gracefully handle Ctr+C and so I have to execute the queries you gave a couple of pages back AND reset the blkoffset number to either 0 or a value which I've stored for emergencies.
And though it happened a long time ago, I had a very nasty problem where the bitcoin days destroyed value was 0 every few transactions/blocks and since I could not arbitrarily delete any blocks manually I was forced to reimport the blockchain all over again and this usually takes 2 weeks for me.

And not sure if there was a workaround, but while Abe is importing blocks, the webserver is off and there is no way for me to view the chain imported thus far.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
ErebusBat
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500

I am the one who knocks


View Profile
September 15, 2012, 01:22:10 AM
 #335

I see that Abe is still under development, when can we expect 0.7?
At the moment the holdup is writing a change log.  Then I'll try to find all the pieces I need to build the Windows installer and update pypi.  Anything particular you need?

As a matter of fact there are a few things. Currently ABE doesn't gracefully handle Ctr+C and so I have to execute the queries you gave a couple of pages back AND reset the blkoffset number to either 0 or a value which I've stored for emergencies.
And though it happened a long time ago, I had a very nasty problem where the bitcoin days destroyed value was 0 every few transactions/blocks and since I could not arbitrarily delete any blocks manually I was forced to reimport the blockchain all over again and this usually takes 2 weeks for me.

And not sure if there was a workaround, but while Abe is importing blocks, the webserver is off and there is no way for me to view the chain imported thus far.

I have a query that will give you import status.  PM me if you want it.

░▒▓█ Coinroll.it - 1% House Edge Dice Game █▓▒░ • Coinroll Thread • *FREE* 100 BTC Raffle

Signup for CEX.io BitFury exchange and get GHS Instantly!  Don't wait for shipping, mine NOW!
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
September 15, 2012, 01:30:57 AM
 #336

The import status is easily viewable from the ABE import output. What I am talking about is being able to use the web interface while abe is still importing.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
September 15, 2012, 04:36:17 AM
 #337

The import status is easily viewable from the ABE import output. What I am talking about is being able to use the web interface while abe is still importing.
Two processes using slightly different abe.conf.  (Shared portions can be in a third file named by the config=FILE directive.)

  • Process 1 does not include the new/loading chain in datadir but does serve web requests.
  • Process 2 includes the chain but does not serve web requests.

Any issues?

As for Ctrl-C, I seldom have troubles that a simple restart does not solve.  Please provide details that help me reproduce the issue.

As for days destroyed, is it a feature you need?  Would the bug be detectable if we removed the days destroyed from the site?

A tool for deleting a block (or a chain) would be nice to have, I agree.


These two seem pretty simple, but I'd have to look closer.  Multisig addresses seem harder.  I'm thinking about relaxing the license terms to encourage development.  I suppose internals documentation would help too.  BTC will have to reach $50 or more before I can justify serious Abe time to my spouse.  If new features are worth money to you, feel free to PM me or start a bounty.  Frankly, while I love to see BTC succeed, my passion for Abe came more from a wish to encourage alternative chains.  Now there are several, so I am happy.

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

Activity: 266
Merit: 250


LitecoinTalk


View Profile WWW
September 15, 2012, 11:33:27 AM
 #338

Nice done!

but i have a problem

no matter what i set in abe.conf
i get
/home/bitcoin-abe# python -m Abe.abe --config abe.conf
Abe initialized.
Listening on http://localhost:2750

and i've set the port to 5000
and ip to the local lan ip, since it only me that should access it

LitecoinTalk - Sign up today!
Try out LTC-Aarade!
Buy Shares!
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
September 15, 2012, 11:42:06 AM
Last edit: September 15, 2012, 12:07:47 PM by Remember remember the 5th of November
 #339

Quote
Two processes using slightly different abe.conf.  (Shared portions can be in a third file named by the config=FILE directive.)

  • Process 1 does not include the new/loading chain in datadir but does serve web requests.
  • Process 2 includes the chain but does not serve web requests.
Would you mind sharing this config file where it does not scan the blockchain and import? I don't think I will be able to figure it out myself Smiley.
But I am using a tad bit older version, with schema_version Abe29.

EDIT: Nope, made it work myself.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
September 15, 2012, 08:40:30 PM
 #340

no matter what i set in abe.conf
i get
/home/bitcoin-abe# python -m Abe.abe --config abe.conf
Abe initialized.
Listening on http://localhost:2750

and i've set the port to 5000
and ip to the local lan ip, since it only me that should access it
Have you removed the '#' from those lines?

Quote from: abe.conf
#port 2750
#host localhost

should become

Quote
port 5000
host XX.XX.XX.XX

Which version or Git commit do you use?

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!