Author

Topic: walletnotify issue (Read 174 times)

HCP
legendary
Activity: 2086
Merit: 4361
March 29, 2020, 03:32:46 PM
#4
NeuroticFish is correct... walletnotify should trigger twice for each transaction... once on initial receipt of (unconfirmed) transaction and once when the transaction gets it's first confirmation.

If you're getting the 1st update, but not the 2nd "in your shop", then most likely your code at the shop end is to blame. You can check that walletnotify itself is working correctly by simply using a simple shell script that just appends to a local text file... check to see that you're getting each transactionID twice.

This example from an old thread should work quite well:
Code: (https://bitcointalksearch.org/topic/m.2134545)
#!/bin/bash
F=/home/btcdev/wallet_transaction_log
D=`date +"%Y%m%d%H%M%S"`
echo ${D} - ${1} >> ${F}

Once you have confirmed that it is indeed triggering twice, you'll just need to try and find out where the break in your chain is... I'd guess in the processing on the server of the "http://myoniondomainname.onion/transactions/btc" call.
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
March 28, 2020, 04:59:55 AM
#3
From what I know walletnotify should come twice for a transaction (when it hits mempool and at first confirmation).
I've read that's better chance that you processing of the second call is faulty (for example expecting it hits at 3 or 6 confirmations) than that it didn't come.
(You may have checked that, but a double check, maybe without ToR, never hurts.)

If you don't find the problem, maybe (also) using blocknotify could help you out.

copper member
Activity: 2268
Merit: 539
DGbet.fun - Crypto Sportsbook
March 28, 2020, 02:45:15 AM
#2

Here is code of my btc.php and bitcoin.conf
Code:
https://pastebin.com/H3pjqZhc
copper member
Activity: 2268
Merit: 539
DGbet.fun - Crypto Sportsbook
March 28, 2020, 02:40:48 AM
#1
Hello i am getting issue in walletnotify

when we receive any transaction in our shop its change transaction status to pending but after confirmation not sending any status update to our shop script

we are sending request on tor 

here is code in my wallet notify



anyhere who can help me to fix this
Jump to: