165
|
Economy / Services / Re: Nuovocard Hacking Contest - Hack Us for $3000 (Bounty) - NOW LIVE
|
on: August 16, 2014, 12:32:54 AM
|
Man, I even gave you guys a netstat example. If you know TOR, you should know default port is 9050. and bitcoind listens to 9050 and that 9050 listens to something else. How will you guys find it if you cant understand something that is already given???
My curiosity brought me back... can't wait to see the solution on how to utilize this "already given" facts. Or is the bitcoind publicly listening on 9050 and all we are supposed to do is portscan the amazon network to find a bitcoind on port 9050? Your netstat only reveals that what happens on localhost stays on localhost I'm not a tor expert but isn't the idea of a hidden tor service to be hidden? And any way to trace a hidden service would be a serious major flaw in tor?
|
|
|
170
|
Bitcoin / Bitcoin Technical Support / Re: walletnotify doesn't work
|
on: August 14, 2014, 09:22:31 PM
|
About this code: $transactions = $bitcoinrpc->listtransactions('accountname', 500); foreach ($transactions as $tx) {
if ($tx['category'] == 'receive' && $tx['confirmations'] < 10) { $id_user = $db->query('SELECT id_user FROM addresses WHERE address={$tx['address']}'); $db->query('INSERT INTO balance (txid, id_user, amount, confirmations) VALUES ({$tx['txid']}, {$id_user}, {$tx['amount']}, {$tx['confirmations']}) ON DUPLICATE KEY UPDATE confirmations={$tx['confirmations']}'); // (balance.txid must be defined as unique key of course)
if ($db->affectedRows() > 0) { // number of confirmations for $tx has changed, do any prefered action } } } Where should i write it? in the blocknotify callback page? or do you say that i shouldn't call this code right after the wallet/block notify event and just save the txid in a file and use cronjobs to collect the data every couple minutes? I actually run this in a endless loop (+sleep(5)) cause I was not aware of bitcoinds notification feature when I implemented this. If I had to refactor it, I would run this once a minute as cronjob and make a simple INSERT INTO balance (..., confirmations) VALUES (..., 0) in walletnotify.
|
|
|
|