Post
Topic
Board Pools
Re: [24 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool
by
nonlinear
on 23/10/2013, 03:25:03 UTC
Hello all,

I'm new to p2pool and one thing I miss from previous pools is an email notification when I get a payout.

Anyone know if this will work?

Code:
bitcoind -walletnotify="/path/to/notify_script.sh %s"

Code:
#!/bin/sh
#notify_script.sh
#snarfs the transaction passed in from bitcoind and emails the generated amount

amount=`bitcoind gettransaction $1 | grep -A 12 generated | grep amount | awk '{print $3}'`

if [ -n "$amount" ]
then
  echo "Mined $amount" | mail -s "Yay! Mined new block on p2pool" my@email.addy
fi

Edit: nevermind...answered my own question just now! For those interested it does work.