Bitcoin Forum
April 28, 2024, 09:53:09 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)
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
June 29, 2011, 02:13:32 AM
 #21

Oh, I don't need a permissive license, I'd be happy with GPL. Smiley

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714297989
Hero Member
*
Offline Offline

Posts: 1714297989

View Profile Personal Message (Offline)

Ignore
1714297989
Reply with quote  #2

1714297989
Report to moderator
1714297989
Hero Member
*
Offline Offline

Posts: 1714297989

View Profile Personal Message (Offline)

Ignore
1714297989
Reply with quote  #2

1714297989
Report to moderator
1714297989
Hero Member
*
Offline Offline

Posts: 1714297989

View Profile Personal Message (Offline)

Ignore
1714297989
Reply with quote  #2

1714297989
Report to moderator
kseistrup
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


Unselfish actions pay back better


View Profile WWW
June 29, 2011, 09:04:37 AM
 #22

Following this thread…

Klaus Alexander Seistrup
just_someguy
Full Member
***
Offline Offline

Activity: 125
Merit: 100


View Profile
June 29, 2011, 11:41:58 AM
 #23

How big is the database + indexes at the moment?
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 29, 2011, 12:45:23 PM
 #24

2.7GB under /var/lib/postgresql/8.4/main

 pg_database_size
------------------
       2737561892

-rw-r----- 1 bitcoin  bitcoin  328428819 Jun 29 08:33 /home/bitcoin/.bitcoin/blk0001.dat
-rw-r--r-- 1 namecoin namecoin  11748764 Jun 29 08:11 /home/namecoin/.namecoin/blk0001.dat

This is with hashes and scripts stored as hex.  With a little work, I'm sure I could store them as binary.  And I hope to make the "coin-days destroyed" feature optional, which would save a bit of space for those who don't use it.  On the other hand, I plan to cache data in tables (optionally) for rendering web pages.  And I am considering storing addresses (rather than just public key hashes) for substring search.  So it could go up or down.

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 29, 2011, 04:04:30 PM
 #25

Oh, I don't need a permissive license, I'd be happy with GPL. Smiley

Tell me your specific needs, and I will amend the license to meet them if compatible with my goals.  Want to change the CSS?  No problem.  Put in banner ads or change the donation address?  Sure.  Those things will be configurable when I get around to it.  But I'll have to be careful to exclude stuff that interacts with the data in ways that extend functionality, unless of course you are willing to fork the Github project or otherwise keep your changes public under the AGPL.

Or you could keep your site private and not worry.

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

Activity: 588
Merit: 500



View Profile
June 29, 2011, 05:13:51 PM
 #26

Oh, I don't need a permissive license, I'd be happy with GPL. Smiley

Tell me your specific needs, and I will amend the license to meet them if compatible with my goals.  Want to change the CSS?  No problem.  Put in banner ads or change the donation address?  Sure.  Those things will be configurable when I get around to it.  But I'll have to be careful to exclude stuff that interacts with the data in ways that extend functionality, unless of course you are willing to fork the Github project or otherwise keep your changes public under the AGPL.

Or you could keep your site private and not worry.

It's the front end stuff (HTML, CSS, images, etc.) that I really want to customize.

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

Activity: 481
Merit: 529



View Profile WWW
June 29, 2011, 06:24:23 PM
Last edit: June 29, 2011, 07:34:10 PM by John Tobey
 #27

It's the front end stuff (HTML, CSS, images, etc.) that I really want to customize.

Would you prefer to change things server-side (e.g., through templating) or would client-side scripting work?  If you can do it client-side, and you serve your scripts in unprocessed source form with an AGPL-compatible license notice, I won't object.  In fact, I'll adjust the output format to suit the task, e.g., XML for Ajax or HTML with data-centric class attributes.  And I'll add an optional <script> element to load your code.  I just want developers using your site to find it easy to grab your scripts, style sheets, etc., replicate their functionality by simply rehosting them, and extend them by editing them.

If you want to work server-side, I'd like to draw a line between functionality and presentation.  I'll be happy to include configurable static fragments at various points in the output, so long as these don't bring in proprietary applications that process chain data or scripts that fail to meet the above conditions.

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

Activity: 70
Merit: 10


View Profile
June 29, 2011, 07:01:48 PM
 #28

Donated and following.
Confucius
Newbie
*
Offline Offline

Activity: 46
Merit: 0



View Profile
June 30, 2011, 03:13:02 AM
 #29

Great to see more open source efforts!

Will be using your site for now on Smiley
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
June 30, 2011, 01:27:56 PM
 #30

n0m4d, thank you.

Confucius, you are welcome to use the URL in the OP, but do not expect as consistent service as you would get from BlockExplorer.com.  I run the service for demonstration purposes, the server can not handle BBE's load, the code is not yet as optimal as BBE's, and I will probably move the site to another host/port soon.

Cheers,
John

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 30, 2011, 05:50:48 PM
Last edit: June 30, 2011, 06:01:06 PM by John Tobey
 #31

error, I look forward to your GPL competitor. Smiley  Meanwhile, for anyone who wants to customise a public Abe instance without using a Github fork, I've added the following To-Do item:

 * Optionally add a link to each page allowing the user to download the
   source code and supporting files as a tarfile created on the fly to
   satisfy the AGPL.

I won't make this automatic due to security concerns, but I intend to make the new link simply tar up the directory containing abe.py, minus *.pyc and .git, and stream it to the browser as application/x-gtar-compressed or similar.  By turning this on and keeping your changes in the directory, you will satisfy the AGPL.  [Edit: or I will weaken Abe's license so this satisfies it.]  If you implement this before I get to it, feel free to submit a patch or pull request.

I'll also allow config file nesting so that secret configuration such as a database password can be left out.

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

Activity: 3431
Merit: 1233



View Profile
July 02, 2011, 01:27:51 PM
 #32

Abe or another competing open source, it is a much needed service. Following this thread...
lemonginger
Full Member
***
Offline Offline

Activity: 210
Merit: 100


firstbits: 121vnq


View Profile
July 02, 2011, 05:35:04 PM
 #33

much thanks to OP for the open source alternative! Happy to see this flourish and watch the closed source alternatives die off (they were useful for awhile, but really think that where open source alternatives can exist they should)

donation sent
Ryland R. Taylor-Almanza
Legendary
*
Offline Offline

Activity: 882
Merit: 1001



View Profile
July 02, 2011, 07:23:54 PM
 #34

n0m4d, thank you.

Confucius, you are welcome to use the URL in the OP, but do not expect as consistent service as you would get from BlockExplorer.com.  I run the service for demonstration purposes, the server can not handle BBE's load, the code is not yet as optimal as BBE's, and I will probably move the site to another host/port soon.

Cheers,
John

I could donate some space on my 4GB linode for you if you'd like.

.BITSLER.                 ▄███
               ▄████▀
             ▄████▀
           ▄████▀  ▄██▄
         ▄████▀    ▀████▄
       ▄████▀        ▀████▄
     ▄████▀            ▀████▄
   ▄████▀                ▀████▄
 ▄████▀ ▄████▄      ▄████▄ ▀████▄
█████   ██████      ██████   █████
 ▀████▄ ▀████▀      ▀████▀ ▄████▀
   ▀████▄                ▄████▀
     ▀████▄            ▄████▀
       ▀████▄        ▄████▀
         ▀████▄    ▄████▀
           ▀████▄▄████▀
             ▀██████▀
               ▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄            
▄▄▄▄▀▀▀▀    ▄▄█▄▄ ▀▀▄         
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄      
█  ▀▄▄  ▀█▀▀ ▄      ▀████   ▀▀▄   
█ █▄  ▀▄   ▀████       ▀▀ ▄██▄ ▀▀▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█  ▀▀       ▀▄▄ ▀████      ▄▄▄▀▀▀  █
█            ▄ ▀▄    ▄▄▄▀▀▀   ▄▄  █
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ ▄▄   ███   ▀██  █           ▀▀  █ 
█ ███  ▀██       █        ▄▄      █ 
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  
▀▄            █        ▀▀      █  
▀▀▄   ███▄  █   ▄▄          █   
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀    
▀▀▄   █   ▀▀▄▄▄▀▀▀         
▄▄▄▄▄▄▄▄▄▄▄█▄▄▀▀▀▀              
              ▄▄▄██████▄▄▄
          ▄▄████████████████▄▄
        ▄██████▀▀▀▀▀▀▀▀▀▀██████▄
▄     ▄█████▀             ▀█████▄
██▄▄ █████▀                ▀█████
 ████████            ▄██      █████
  ████████▄         ███▀       ████▄
  █████████▀▀     ▄███▀        █████
   █▀▀▀          █████         █████
     ▄▄▄         ████          █████
   █████          ▀▀           ████▀
    █████                     █████
     █████▄                 ▄█████
      ▀█████▄             ▄█████▀
        ▀██████▄▄▄▄▄▄▄▄▄▄██████▀
          ▀▀████████████████▀▀
              ▀▀▀██████▀▀▀
            ▄▄▄███████▄▄▄
         ▄█▀▀▀ ▄▄▄▄▄▄▄ ▀▀▀█▄
       █▀▀ ▄█████████████▄ ▀▀█
     █▀▀ ███████████████████ ▀▀█
    █▀ ███████████████████████ ▀█
   █▀ ███████████████▀▀ ███████ ▀█
 ▄█▀ ██████████████▀      ▀█████ ▀█▄
███ ███████████▀▀            ▀▀██ ███
███ ███████▀▀                     ███
███ ▀▀▀▀                          ███
▀██▄                             ▄██▀
  ▀█▄                            ▀▀
    █▄       █▄▄▄▄▄▄▄▄▄█
     █▄      ▀█████████▀
      ▀█▄      ▀▀▀▀▀▀▀
        ▀▀█▄▄  ▄▄▄
            ▀▀█████
[]
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
July 02, 2011, 11:40:31 PM
 #35

I could donate some space on my 4GB linode for you if you'd like.

I'd appreciate it.  PM or email me with details.

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

Activity: 42
Merit: 0


View Profile WWW
July 03, 2011, 03:05:12 AM
 #36

I have to ask - how in the heck did you acquire enough knowledge about the block chain in order to do this?  I have been looking everywhere and can't seem to find much about it. 
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
July 03, 2011, 01:08:54 PM
 #37

I have to ask - how in the heck did you acquire enough knowledge about the block chain in order to do this?  I have been looking everywhere and can't seem to find much about it. 

The block chain is just a sequence of "blocks" whose format is described here: https://en.bitcoin.it/wiki/Protocol_specification

I figured out that the blk0001.dat file is just a concatenation of blocks in wire format, each preceded by two four-byte words: the chain's "magic value" and the block length.  I probably checked the C++ code to verify this.  The Bitcointools project contains code to parse the blocks.  Abe uses that code, only slightly modified to obtain each transaction's hash.

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

Activity: 451
Merit: 250


View Profile
July 03, 2011, 01:31:48 PM
 #38

excellent work. Just sent a small tip.

I really like the extra stats Average Coin Age, Cumulative Coin-days Destroyed etc.
I don't know how difficult it would be but something like the nethash query on BBE which produces a csv would be great - or if it was something similar (i.e. giving a csv of average stats for 100 blocks or whatever) but gave stats for Average Coin Age, Cumulative Coin-days Destroyed, average tx fee that would be super.

keep up the good work. will be following with interest.
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
July 05, 2011, 04:57:35 AM
 #39

AGPL? Shit. Guess I'll go back to coding my own.
I'm curious what your main complaints are about AGPL? It does guarantee is will be free forever but does limit the code it can be integrated in...if he keeps all the copyright I'm sure if someone gave him the right price he'd offer it under different terms while keeping the community one as is!  Wink

With the software as is, it means (among other things) that I have to publish the source code to any changes made to it, such as changes to the site design. I'm not concerned about publishing any changes I make that fix bugs or add features; these I would just send in a pull request anyway even if it wasn't AGPL. But the license requires me to have a whole source code publishing infrastructure if I change a single byte, which is unavoidable.

This is now automated, as described in README.txt:

Quote
The Affero General Public License requires whoever modifies this code
and runs it on a server to make the modified code available to users
of the server.  You may do this by forking the Github project (if you
received this code from Github.com), keeping your modifications in the
new project, and linking to it in the page template.  Or you may wish
to satisfy the requirement by simply passing "--auto-agpl" to
"abe.py".  This option makes all files in the directory containing
abe.py and its subdirectories available to clients.  See the comments
in abe.conf for more information.

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

Activity: 98
Merit: 10


View Profile
July 05, 2011, 08:47:45 PM
 #40

Congrats, ABE processed block #134917 correctly: http://john-edwin-tobey.org:2750/block/0000000000000789fe6e014f62a3c32466e53abde8db62517b30e0648d9835c5
While blockexplorer shows "Transactions: " and "Fees: " without any numbers next to it: http://blockexplorer.com/block/0000000000000789fe6e014f62a3c32466e53abde8db62517b30e0648d9835c5

It was a 162 transactions block with lots of fees.

1HNjbHnpu7S3UUNMF6J9yWTD597LgtUCxb
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!