Pages:
Author

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

donator
Activity: 2772
Merit: 1019
Is this code stable?

been using it rather heavily (also for alt-chains), seems rock-solid to me.
sr. member
Activity: 462
Merit: 250
OT there's this programming language C and it's author username was mrb. he died. r from k&r

It was dmr, not mrb.

oh, what a mistake I made! now I stand corrected, thank you.
k
sr. member
Activity: 451
Merit: 250
Why is the number of outstanding bitcoins not a multiple of 50?
At block 149439 it say 7471999.91789992 outstanding.
The number is below the expected value.  Sometimes (just once?) a miner claims less than the allowed amount in coinbase transaction outputs.  Abe adjusts the outstanding amount by subtracting a block's inputs from its outputs, not by assuming 50 per block.  This is convenient for multi-chain support, since alternative chains have their own inflation formulas, which Abe knows nothing about.


thanks John for that explanation.
mrb
legendary
Activity: 1512
Merit: 1028
OT there's this programming language C and it's author username was mrb. he died. r from k&r

It was dmr, not mrb.
hero member
Activity: 481
Merit: 529
Why is the number of outstanding bitcoins not a multiple of 50?
At block 149439 it say 7471999.91789992 outstanding.
The number is below the expected value.  Sometimes (just once?) a miner claims less than the allowed amount in coinbase transaction outputs.  Abe adjusts the outstanding amount by subtracting a block's inputs from its outputs, not by assuming 50 per block.  This is convenient for multi-chain support, since alternative chains have their own inflation formulas, which Abe knows nothing about.

Also, sometimes people send coins to pseudo-addresses, which have the form of an address but are not generated in the normal way as the public part of a key pair.  These are lost coins.  Abe recognizes one pseudo-address (pubkey_hash zero) and uses it internally as the destination of namecoin network fees.  A few bitcoins have gone there, and as a side-effect of namecoin accounting, Abe subtracts them from the outstanding value.

There are other ways coins can be proven lost, which Abe may someday implement, driving the reported outstanding amount even lower.  But it will stay close to the maximum as long as people follow the incentives to save bitcoins.
k
sr. member
Activity: 451
Merit: 250
I was looking at the ABE at this site http://blockexplorer.sytes.net/chain/Bitcoin

Why is the number of outstanding bitcoins not a multiple of 50?
At block 149439 it says 7471999.91789992 outstanding.
sr. member
Activity: 462
Merit: 250
OT but didn't you die recently, or something?

I think a "lolwut?" is appropriate here.

OT there's this programming language C and it's author username was mrb. he died. r from k&r
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Is this code stable?
mrb
legendary
Activity: 1512
Merit: 1028
OT but didn't you die recently, or something?

I think a "lolwut?" is appropriate here.
hero member
Activity: 481
Merit: 529
Still breathing, thanks.  Grin  Any special requests?
sr. member
Activity: 462
Merit: 250
Abe is fast; good work John! It took barely 90 minutes to import the chain on my cheap laptop.

OT but didn't you die recently, or something?

OBE is awesome. donated
mrb
legendary
Activity: 1512
Merit: 1028
Abe is fast; good work John! It took barely 90 minutes to import the chain on my cheap laptop.
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Oh, yes, I recall Daemontools from qmail. But now that you mention it I could just use an upstart conf file and then start/stop as a service in Ubuntu. This is nicer than using the full cmd anyway.

And... here's mine, it works.
/etc/init/abe.conf
Code:
description     "Start Abe - Alternative Block Explorer"

# uncomment if you want autostart
#start on runlevel [2345]
#stop on runlevel [016]

respawn
exec su -c '/usr/bin/python -m Abe.abe --config=/home//.bitcoin/abe.conf 2>>/var/log/abe.log'

Of course, change the or paths to suit. I start it as my user name because I think that's safer than running as root. Also note that I set the database path in abe.conf so it gets found. I added the "2>>/var/log/abe.log" so activity gets logged but if you run as you will need to create the log file with write perms.

Now you can start Abe with,
sudo start abe

and stop it with
sudo stop abe

It's kind of nice looking up block chain events on my own notebook and I like the compact concise format of Abe output.
hero member
Activity: 481
Merit: 529
I use Ctrl-C and tolerate the keyboard exception backtrace.  Once I had a good use for the trace, when I was optimising the initial load time.  I can imagine this happening again, so I would probably keep an option to show it, perhaps the existing --debug option.

On the website, I use Daemontools (similar to /etc/init.d/ scripts or Windows services) to stop and start, and that uses a different signal, which Python does not translate into an exception, so it doesn't log backtraces.

Feel free to post patches here or on github.  Even if I'm slow to respond, someone else may want the feature.
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Is there a correct way to terminate the Abe server? I've been using Ctrl-C but notice it spits out an ugly Keyboard exception. If I wrote a small patch to catch the exception and gracefully close would that be useful and accepted? Or maybe I'm just doing it wrong?
donator
Activity: 2772
Merit: 1019
There's certainly room for optimization in the schema, especially if you have plenty of disk, which I don't.  But before I go that route, I'd like to know what's possible with a server with 1GB+ RAM.

Well, it seems my server wouldn't cut it. Only 512MB memory. No swapspace (!!).

I'll probably setup bitcoin chain on it anyways, because I want to make my coin-age graphs live, so then I could do some manual benchmarking to see if it could make sense at all.
hero member
Activity: 481
Merit: 529
I've taken down abe.john-edwin-tobey.org due to heavy load.  Email me or post here if you have server space and want help setting up!

Backpedaling... log showed 90% of requests from Googlebot.  I'm attempting to solve this with robots.txt.  Site is up for now.

Just rented a VPS for solidcoin.kicks-ass.org. Using bitcoin-abe there already for solidcoin. Want to add bitcoin anyways.

I'm not sure if that thing (it's a virtual, of course) would be up to the task.

Could you provide some traffic stats from prior to taking your server down so we can have a rough estimate?

It wasn't getting a lot of hits, roughly 4 address or tx requests per minute.  The VPS's swap space was chronically all used, though, causing the kernel to kill processes roughly once per hour, despite my cron job that bounced Apache and bitcoind every hour.  So it was thrashing, and Postgres must have had to read from disk for most queries.

There's certainly room for optimization in the schema, especially if you have plenty of disk, which I don't.  But before I go that route, I'd like to know what's possible with a server with 1GB+ RAM.

By the way, if you want to hide the "empty" currencies from the homepage, you could delete the respective rows from the chain table or upgrade to the latest 0.7pre.

If you set up an instance with BTC, at least one alt chain, and better uptime than mine, and if you are willing, I will advertise it as the demo site.
donator
Activity: 2772
Merit: 1019
I've taken down abe.john-edwin-tobey.org due to heavy load.  Email me or post here if you have server space and want help setting up!


Just rented a VPS for solidcoin.kicks-ass.org. Using bitcoin-abe there already for solidcoin. Want to add bitcoin anyways.

I'm not sure if that thing (it's a virtual, of course) would be up to the task.

Could you provide some traffic stats from prior to taking your server down so we can have a rough estimate?
hero member
Activity: 481
Merit: 529
I've taken down abe.john-edwin-tobey.org due to heavy load.  Email me or post here if you have server space and want help setting up!
hero member
Activity: 481
Merit: 529
BTW it's working great now, keep up the good work.

Great.  Let me know if you try the Windows installer how it goes: http://pypi.python.org/pypi/Abe/0.6

PGP key: https://raw.github.com/jtobey/bitcoin-abe/master/doc/jtobey.pubkey
Key fingerprint: 413D 2920 B776 08D1 A867  232A 3CB0 B139 6A71 5348
Pages:
Jump to: