Post
Topic
Board Pools
Re: [200GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool
by
Proofer
on 10/02/2012, 20:23:56 UTC
Here's a great command to list found blocks:
Code:
bitcoind listtransactions

For Linux and/or bash users:  here's a bash function I wrote yesterday -- it omits the txid lines from listtransactions, but more important (to me) it adds a human-readable time to the time of each one:

Code:
btx () {
    bitcoind listtransactions $* | while read name colon value
        do
            if [ $colon ] ; then
                if [ $name != '"txid"' ] ; then # omit txid line
                    if [ $name = '"time"' ] ; then  # provide a readable version of time
                        echo '"time"' : $value = `date -d "1970-01-01 $value seconds UTC" +"%Y-%m-%d %T %z"`
                    else
                        echo "$name : $value"
                    fi
                fi
            else
                echo $name
            fi
        done
}

Thus, this...

Code:
        "txid" : "aca39f64e4f71f984b9693fe1dbd6dc9361162d94db10b1b814121cf3da44a9f",
        "time" : 1328894325

is replaced by....

Code:
"time" : 1328894325 = 2012-02-10 09:18:45 -0800

(The UTC offset is specific to your local system's time zone setting.)