Title: bitcoind double launch walletnotify Post by: booggyman on November 30, 2014, 07:47:17 PM Hi guys!
My bitcoind daemon something strange is happening, after the discovery of a transaction script is executed twice! Actually here is the script: Code: # cat walletnotify.sh This file bitcoin.conf: Code: # cat bitcoin.conf So I start the daemon: Code: # bitcoind -regtest Then I give one coin: Code: # bitcoin-cli -regtest sendtoaddress mgyzVE3XiVDHPCnMzQPg6Wgwicp8KDYrU8 1 And here's what I see in the file ~/.bitcoin/transaction.log: Quote # cat transaction.log "account" : "test", "address" : "mgyzVE3XiVDHPCnMzQPg6Wgwicp8KDYrU8", "category" : "receive", "amount" : 1.00000000 "account" : "test", "address" : "mgyzVE3XiVDHPCnMzQPg6Wgwicp8KDYrU8", "category" : "receive", "amount" : 1.00000000 -------------------------------------------------------------------- -------------------------------------------------------------------- That is in fact double the execution of the script! Version of bitcoind - 0.9.3 , taken from here: https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin The package building on debian wheezy Title: Re: bitcoind double launch walletnotify Post by: bitsta on December 17, 2014, 11:29:31 AM Hi guys! My bitcoind daemon something strange is happening, after the discovery of a transaction script is executed twice! Actually here is the script: Code: # cat walletnotify.sh This file bitcoin.conf: Code: # cat bitcoin.conf So I start the daemon: Code: # bitcoind -regtest Then I give one coin: Code: # bitcoin-cli -regtest sendtoaddress mgyzVE3XiVDHPCnMzQPg6Wgwicp8KDYrU8 1 And here's what I see in the file ~/.bitcoin/transaction.log: Quote # cat transaction.log "account" : "test", "address" : "mgyzVE3XiVDHPCnMzQPg6Wgwicp8KDYrU8", "category" : "receive", "amount" : 1.00000000 "account" : "test", "address" : "mgyzVE3XiVDHPCnMzQPg6Wgwicp8KDYrU8", "category" : "receive", "amount" : 1.00000000 -------------------------------------------------------------------- -------------------------------------------------------------------- That is in fact double the execution of the script! Version of bitcoind - 0.9.3 , taken from here: https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin The package building on debian wheezy please post the whole walletnotify.sh because for some reason the gettx() gets called two times before the echo() gets called two times. i am sure it s something within the script. |