Search content
Sort by

Showing 20 of 34 results by freeloader247
Post
Topic
Board Scam Accusations
Re: BTC Stolen?
by
freeloader247
on 23/11/2013, 02:08:04 UTC
Mods you may close / delete this thread. This was user error and all coins have been recovered and stored on a paper wallet.
Post
Topic
Board Scam Accusations
Topic OP
BTC Stolen?
by
freeloader247
on 08/11/2013, 07:07:22 UTC
Today I looked at my wallet on block explorer and noticed some strange transactions. Someone withdrew 37 Bitcoins almost completely emptying the wallet, but then 30 Bitcoins were redeposited has my wallet been compromised, or am I missing something? https://blockchain.info/address/1M6ZizRUDEzJVDJ3pYDBHdbL3ugwdZS2f9
Post
Topic
Board Development & Technical Discussion
Re: Is there a better way to get notified of receives with bitcoind?
by
freeloader247
on 13/08/2013, 05:15:38 UTC
[deleted]
Post
Topic
Board Bitcoin Discussion
Re: Bitcoin processing on my adult website
by
freeloader247
on 13/08/2013, 05:09:50 UTC
If you're coding from scratch this will save you some time:
https://bitcointalk.org/index.php?topic=269886.0
Post
Topic
Board Development & Technical Discussion
Re: Alt coin for development?
by
freeloader247
on 12/08/2013, 03:20:17 UTC
Thanks,. But now I have a problem of no connections i have port 18333 open. Any advise?
Nevermind fixed it.
Damn the testnet is slow, "check you code twice, wait once"
Post
Topic
Board Development & Technical Discussion
Re: Alt coin for development?
by
freeloader247
on 12/08/2013, 03:08:23 UTC
I feel bad for asking but can someone send some testnet coins to: ms4ZVRmASRnrBdzoWTQpvnr4HVxfQppq9j. Or is there an testnet faucet?
Post
Topic
Board Development & Technical Discussion
Topic OP
Alt coin for development?
by
freeloader247
on 11/08/2013, 06:25:26 UTC
Hello everyone, I just wanted to know if there is an alt coin that is identical(RPC calls, transactions, etc...) to Bitcoin that I can use specifically for testing various transaction systems?
Post
Topic
Board Development & Technical Discussion
Re: Is there a better way to get notified of receives with bitcoind?
by
freeloader247
on 10/08/2013, 17:34:27 UTC
[deleted]
Post
Topic
Board Development & Technical Discussion
Re: Is there a better way to get notified of receives with bitcoind?
by
freeloader247
on 10/08/2013, 06:32:52 UTC
Also what is a proper transaction flow? Currently I have things set up like this, but as it is advised to avoid both accounts and getbalance this is clearly wrong.

  • Registration: getnewaddress for user setaccount to user ID.
  • Transaction: getbalance of users account and confirm that is larger than purchase price.

Post
Topic
Board Development & Technical Discussion
Re: Is there a better way to get notified of receives with bitcoind?
by
freeloader247
on 09/08/2013, 06:53:47 UTC
Yeah, don't do that unless you are sure that your transaction volume will be extremely low.

You want the process run by -walletnotify to be very fast.  Ideally, it should spit out a line into a pipe (or file or socket) and end promptly.

You should then have a different process, either a daemon or a cron job, read that stream and gather whatever information you need.  You should be checking the confirmation count of the transactions, not the balance of the account.  For that matter, using accounts can get you into trouble.  Make sure you know what you are doing if you are going to use them at all.

-walletnotify will trigger when a transaction is included in a block, but it might also trigger if the transaction shows up over the network as a loose transaction.  So, you should check the confirmation count each time -walletnotify hits, until you see at least one confirmation.  After that, you should check it every time you see a block to make sure the count has reached your threshold.  You could optimize that a bit by skipping the slow RPC calls until number of blocks have been seen after the transaction was first included.

To be honest when I read your comment a few hours ago I had no clue what a pipeline, socket and cron job was, but after much googling, coffee and Wu Tang later I have come up with something like this.
Code:
walletnotify=/home/btcdev/walletnotifyclient 127.0.0.1 1337 %s

walletnotifyclient.c
Code:
#include
#include
#include
#include
#include
#include
#include
#include

int main(int argc, char *argv[])
{
    if (argc < 4) {
printf("\n Usage: %s \n",argv[0]);
exit(0);
    }

    int sockfd, portno, n;
    struct sockaddr_in serv_addr;
    struct hostent *server;

    char buffer[256];

    portno = atoi(argv[2]);
    sockfd = socket(AF_INET, SOCK_STREAM, 0);
    if (sockfd < 0) {
fprintf(stderr,"ERROR, opening socket\n");
exit(0);
    }
    server = gethostbyname(argv[1]);
    if (server == NULL) {
        fprintf(stderr,"ERROR, no such host\n");
        exit(0);
    }
    bzero((char *) &serv_addr, sizeof(serv_addr));
    serv_addr.sin_family = AF_INET;
    bcopy((char *)server->h_addr,
         (char *)&serv_addr.sin_addr.s_addr,
         server->h_length);
    serv_addr.sin_port = htons(portno);
    if (connect(sockfd,(struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0) {
fprintf(stderr,"ERROR, connecting\n");
exit(0);
    }
    snprintf(buffer, sizeof(buffer), "%s",argv[3]);
    n = write(sockfd, buffer, strlen(buffer));
    if (n < 0) {
fprintf(stderr,"ERROR, writing to socket\n");
exit(0);
    }
    close(sockfd);
    return 0;
    exit(0);
}

Server,php
Code:
include 'bitcoin_lib.php';
$bitcoin = new bitcoin('http://user:pass@127.0.0.1:8332/');

$txid = array(
    
'unconfirmed' => array(),
    
'confirmed' => array()
);

$currentBlock 0//the current block
$minConfirmation 3//minimum tansaction confirmations
$blockThreshold 3//blocks to wait checking transaction for confirmations

$server stream_socket_server("tcp://127.0.0.1:1337"$errno$errorMessage);
if (
$server === false) {
throw new UnexpectedValueException("Could not bind to socket: $errorMessage");
}

for (;;) {
$client = @stream_socket_accept($server);
if ($client) {
$message stream_get_contents($client);
if (strlen($message) == 64) { //recived a TXID
echo 'New tx:'.$message."\n";
$txid['unconfirmed'][] = array(
    'onBlock' => $currentBlock $blockThreshold,
    'txid' => $message
);
}
else { //recived the current block
$currentBlock $bitcoin->getblockcount();
echo 'New Block:'.$currentBlock."\n";
//loop through unconfirmed transactions on new block
foreach ($txid['unconfirmed'] as $key => $unconfirmedTX) {
if($currentBlock >= $unconfirmedTX['onBlock']) {
echo $unconfirmedTX['txid'].' : reached blockThreshold'."\n";
$gettransaction $bitcoin->gettransaction($unconfirmedTX['txid']);
if($gettransaction['confirmations'] >= $minConfirmation) { //transaction has been confirmed
echo $unconfirmedTX['txid'].' : confirmed'."\n";
unset($txid['unconfirmed'][$key]);
$txid['confirmed'][] = $gettransaction;
}
else { //Transaction does not have min confirmations
echo $unconfirmedTX['txid'].' : unconfirmed wait '.$unconfirmedTX['confirmations'].' blocks'."\n";
$blockstowait $minConfirmation $unconfirmedTX['confirmations']; //set blocks to wait before rechecking transaction
$gettransaction['onBlock'] = $currentBlock $blockstowait
$txid['unconfirmed'][$key] = $gettransaction;
}
}
else {
$blockstowait $unconfirmedTX['onBlock'] - $currentBlock;
echo $unconfirmedTX['txid'].' : has not reached blockThreshold, wait '.$blockstowait.' blocks'."\n";
}
}
}
fclose($client);
}

}
?>


Am I on the right track or have I gone crazy?
Post
Topic
Board Development & Technical Discussion
Re: Is there a better way to get notified of receives with bitcoind?
by
freeloader247
on 09/08/2013, 03:44:37 UTC
Is there any example implementation of  -walletnotify in PHP? Right now my code look something like this

Code:
$bitcoin = new bitcoin(jsoncredentials);

$bitcoin->getbalance(  account  );

if ($balance >= get_Price( id )) {
}

and it feels very sloppy/hackish.
Post
Topic
Board Digital goods
Re: [WTS] Mass Effect 3, Batman: Arkham City Cd key
by
freeloader247
on 09/06/2013, 22:52:27 UTC
bump
Post
Topic
Board Development & Technical Discussion
Re: ECDSA questions
by
freeloader247
on 24/04/2013, 02:30:07 UTC
Quote
My second question is related to bitcoin

From wikipedia:

Quote
In December 2010, a group calling itself fail0verflow announced recovery of the ECDSA private key used by Sony to sign software for the PlayStation 3 game console. However, this attack can be considered invalid against ECDSA because it is Sony who failed to implement valid signature(s). That is, the attack was made possible because Sony failed to generate a new random k for each signature.

I suppose bitcoin is not vulnerable to this attack? When I try to sign a transaction for multiple times, I find that the signatures are different. Is it related to this vulnerability?

Not sure if this is what you mean, meant but Sony vulnerability came from them using the same "random" number every time they signed anything.
http://images.eurogamer.net/articles//a/1/3/1/3/9/2/5/equation2.jpg.jpg
Post
Topic
Board Project Development
Re: W.I.P Music Distribution Platform
by
freeloader247
on 24/04/2013, 00:06:53 UTC
Will this be in collaboration with artists or will payments go directly to the owner?

Will there be a mobile app for streaming music?

Looks pretty neat!

Artist can make an account and directly upload all their music, profits go directly into artists wallets minus our 10% fee. There is no mobile app planned yet.
Post
Topic
Board Project Development
Topic OP
W.I.P Music Distribution Platform
by
freeloader247
on 23/04/2013, 23:39:06 UTC
I've been working on this site for awhile now, so i thought i would post some screen shots. This site allows independent artist upload and sell their music for bitcoins. What do you guys think? (The albums shown are just used as place holders)
http://imageshack.us/a/img832/1980/uploadn.png
http://imageshack.us/a/img46/633/playlistr.png
http://imageshack.us/a/img547/5292/musicx.png
http://imageshack.us/a/img823/6066/mosaic.png
http://imageshack.us/a/img28/8612/desktopeb.png
http://imageshack.us/a/img692/6936/addtocartm.png
Post
Topic
Board Digital goods
Re: [WTS] Modern Warfare 3, BattleFeild 3, Mass Effect 3, Batman: Arkham City Cd key
by
freeloader247
on 15/04/2013, 21:21:21 UTC
I offer BTC0.0675 for BF3(it is a Origin Key, right?)

I was hoping to get at least $9 for battlefield 3.
Post
Topic
Board Digital goods
Re: [WTS] Modern Warfare 3, BattleFeild 3, Mass Effect 3, Batman: Arkham City Cd key
by
freeloader247
on 15/04/2013, 18:35:37 UTC
Not sure if my PM is working but yes the key works in steam.
Post
Topic
Board Digital goods
Re: [WTS] Modern Warfare 3, BattleFeild 3, Mass Effect 3, Batman: Arkham City Cd key
by
freeloader247
on 15/04/2013, 18:20:46 UTC
You know what, i've been following bitcoin for 2-3 years and have never made a transaction so what the heck. BTC0.06 it is. PM me were to send the key.
Post
Topic
Board Digital goods
Re: [WTS] Modern Warfare 3, BattleFeild 3, Mass Effect 3, Batman: Arkham City Cd key
by
freeloader247
on 15/04/2013, 18:06:32 UTC
0.05 BTC for Modern Warfare 3.

Counter offer at BTC0.1? Plus you have been more active than me so I will send you the Cd key first.
Post
Topic
Board Digital goods
Topic OP
[WTS] Mass Effect 3, Batman: Arkham City Cd key
by
freeloader247
on 15/04/2013, 17:53:17 UTC
I have the following unused CD keys for sale:
  Modern Warfare 3 [SOLD]
   BattleFeild 3 [SOLD]

   Mass Effect 3
   Batman: Arkham City
You can name your price in BTC, I am willing to send the keys to a trusted third party to confirm they are real. PM me if your interested.