Author

Topic: [SOLVED] walletnotify not working on Windows (Read 2300 times)

legendary
Activity: 1161
Merit: 1004
December 08, 2015, 04:27:31 AM
#6
I've now completed my scripts and everything is working like a charm, closed.
legendary
Activity: 1161
Merit: 1004
November 28, 2015, 08:56:12 AM
#5
If you solved the problem you should lock this thread to avoid more posts on this thread.
You can find the link to lock this thread at the bottom of this page.

Thanks for the tip but I know it already.
Anyways, I left the thread open because I've got another question for you: what does happen if bitcoind eg. crashes? Will walletnotify seek for new/missing transactions at launch?
Still didn't try (sorry  Embarrassed) but I hope it won't skip them lol

Any idea? Explanation? I wanna make sure walletnotify it's a safe and stable way to fetch ~50/100 transactions (send/receive) a day.
legendary
Activity: 1161
Merit: 1004
November 24, 2015, 04:58:01 PM
#4
If you solved the problem you should lock this thread to avoid more posts on this thread.
You can find the link to lock this thread at the bottom of this page.

Thanks for the tip but I know it already.
Anyways, I left the thread open because I've got another question for you: what does happen if bitcoind eg. crashes? Will walletnotify seek for new/missing transactions at launch?
Still didn't try (sorry  Embarrassed) but I hope it won't skip them lol
legendary
Activity: 1232
Merit: 1017
November 22, 2015, 03:36:44 PM
#3
If you solved the problem you should lock this thread to avoid more posts on this thread.
You can find the link to lock this thread at the bottom of this page.
Lol, why are you explaining a sr member where the lock button is located, I think that he knows where it is.

@supermonkey, such litlle details are very i portant one small mistake and then it is not working. Good that you have fixed it!
sr. member
Activity: 318
Merit: 250
November 22, 2015, 03:34:30 PM
#2
If you solved the problem you should lock this thread to avoid more posts on this thread.
You can find the link to lock this thread at the bottom of this page.
legendary
Activity: 1161
Merit: 1004
November 22, 2015, 05:57:15 AM
#1
Hello guys, months ago I was writing a PHP script using walletnotify for storing transactions in a database. Now bitcoind at notify pop ups the system console for a second but it doesn't execute any...
After many tests I ended up using a very simple script for testing purposes:

test.php
Code:
$fp=fopen("C:/test.txt","a");
$out=$argv[1]."\n";
fwrite($fp,$out);
?>

bitcoin.conf
Code:
walletnotify = C:/php/php.exe -f C:/test.php %s

debug.log
Code:
2015-11-22 12:30:56 AddToWallet e20f0f5eb3b1d68fc1f33440cfc419a7e03719f645b292fec07211a56e6c185b  new
2015-11-22 12:30:56 runCommand error: system(C:/php/php.exe -f C:/test.php e20f0f5eb3b1d68fc1f33440cfc419a7e03719f645b292fec07211a56e6c185b) returned 1

Which actually works if ran manually through cmd but not by bitcoind when gets new transactions, just the console flashes and then byebye... Is my walletnotify cmd string correct?

SOLVED: had to use '\' instead of '/' damn it  Roll Eyes
Jump to: