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?
bitcoind -walletnotify="/path/to/notify_script.sh %s"
#!/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.