Bitcoin Forum
June 25, 2024, 02:56:38 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 [88] 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 ... 154 »
1741  Economy / Gambling / Re: Coinroll.it - Dice rolling game | Instant bets | Off-the-chain | 1% House edge on: August 14, 2013, 04:05:08 PM
I lost 2.15 btc here...kind of sad. Now I will have to mine for months to get them back.
1742  Bitcoin / Bitcoin Discussion / Re: Is New York Going too far? on: August 13, 2013, 03:04:47 PM
It's laughable from a non-american standpoint how a single city can have it's own regulatory system. The whole states thing in America is probably the issue, needs merging.
1743  Bitcoin / Bitcoin Discussion / Re: What is this? on: August 13, 2013, 12:11:48 PM
Looks fake to me.

The decoded output is this

Quote
From a3a61fef43309b9fb23225df7910b03afc5465b9 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <satoshin@gmx.com> Date: Mon, 12 Aug 2013 02:28:02 -0200

Subject: [PATCH] Remove (SINGLE|DOUBLE)BYTE

 I removed this from Bitcoin in f1e1fb4bdef878c8fc1564fa418d44e7541a7e83 in Sept 7 2010, almost three years ago. Be warned that I have not actually tested this patch.

--- backends/bitcoind/deserialize.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/backends/bitcoind/deserialize.py b/backends/bitcoind/deserialize.py index 6620583..89b9b1b 100644 --- a/backends/bitcoind/deserialize.py +++ b/backends/bitcoind/deserialize.py @@ -280,10 +280,8 @@ opcodes = Enumeration("Opcodes", [ "OP_WITHIN", "OP_RIPEMD160", "OP_SHA1", "OP_SHA256", "OP_HASH160", "OP_HASH256", "OP_CODESEPARATOR", "OP_CHECKSIG", "OP_CHECKSIGVERIFY", "OP_CHECKMULTISIG", "OP_CHECKMULTISIGVERIFY", - ("OP_SINGLEBYTE_END", 0xF0), - ("OP_DOUBLEBYTE_BEGIN", 0xF000), "OP_PUBKEY", "OP_PUBKEYHASH", - ("OP_INVALIDOPCODE", 0xFFFF), + ("OP_INVALIDOPCODE", 0xFF), ]) @@ -293,10 +291,6 @@ def script_GetOp(bytes): vch = None opcode = ord(bytes) i += 1 - if opcode >= opcodes.OP_SINGLEBYTE_END and i < len(bytes): - opcode <<= 8 - opcode |= ord(bytes) - i += 1 if opcode <= opcodes.OP_PUSHDATA4: nSize = opcode -- 1.7.9.4 h
1744  Bitcoin / Development & Technical Discussion / Re: Bad signatures leading to 55.82152538 BTC theft (so far) on: August 12, 2013, 06:25:05 PM
I have to say, I'm somewhat disappointed in the devs not checking to ensure that the random number generator they use, actually works properly and assuming it's all OK, given they know how important the randomness is.
Right, because the -Qt devs ensured their PRNG was working well.
1745  Bitcoin / Bitcoin Discussion / Re: [ANNOUNCE] Android key rotation on: August 11, 2013, 07:21:29 PM
Annoyingly the Schildbach wallet seems to now enforce(!) a 0.0001 BTC default fee! Angry

Well, these issues aside - thanks for informing us.
Well what do you expect? The minimum I always pay is 0.0006 or 0.0005 on the -Qt client. Non-fee transactions usually means hours to days waiting for confirmations.
1746  Bitcoin / Development & Technical Discussion / Re: Is there a software architecture document about Bitcoin Software ? on: August 11, 2013, 07:10:28 PM
While I am no specialist, Bitcoin gets it's "data"(blocks, transactions) from it's peer-to-peer technology.
1747  Bitcoin / Development & Technical Discussion / Re: Bad signatures leading to 55.82152538 BTC theft (so far) on: August 11, 2013, 04:29:38 PM
I don't think my application is affected https://bitcointalk.org/index.php?topic=101612 as it uses OpenSSL 1.01e internally, so it should be safe I think. However if it is some Linux API that is responsible, then it might be affected too.
1748  Bitcoin / Development & Technical Discussion / Re: Alt coin for development? on: August 11, 2013, 03:22:11 PM
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?
Almost all coins with the exception of one or two re-use the Bitcoin source code, so they are identical to the Bitcoin protocol. However, as suggested use testnet.
1749  Other / Off-topic / Re: FU all you trolls and doubters where are you now??????????/ on: August 10, 2013, 11:16:56 PM
And the point of this thread is?
1750  Other / Off-topic / Re: Does Mojang accept Bitcoin for Minecraft+their other games? on: August 10, 2013, 10:44:46 PM
What? I remember I paid via PayPal to buy Minecraft in late 2010, I have free updates for life.
1751  Bitcoin / Development & Technical Discussion / Re: Python Bitcoin ECC library, supports ECDSA, Electrum, altcoins (no txes/blocks) on: August 10, 2013, 05:57:01 PM
Nice, congratulations. Though I would've suggested a different language cause simply Python ain't all that fast when it comes to these expensive operations there.
1752  Economy / Gambling / Re: What "system" is this guy using? on: August 10, 2013, 02:12:17 PM
True, but I've seen this guy do some crazy stunts. Betting at a multiplier of 80x, 40x, 10x and then 5x and adjusting his bet amount to recoup his losses if he wins, I even witnessed a loss streak of his up to 121, but he never gave up and recouped his losses.

At first I thought it was a bot, but the bets are different after he wins and it's just really weird.
1753  Economy / Gambling / What "system" is this guy using? on: August 10, 2013, 02:04:22 PM
I've been observing this guy for a while https://coinroll.it/user/abe5-b578-1fe3 and he seems to have figured out a way to profit. What system is he using, cause his initial bets after a win vary a lot.

Also, if one doubles his money after a loss on the 2x multiplier, what does he do when it's at 5x? I am rather bad at math due to my ADHD.
1754  Bitcoin / Development & Technical Discussion / Re: Is there a better way to get notified of receives with bitcoind? on: August 10, 2013, 10:25:42 AM
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 <threshold> 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 <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

int main(int argc, char *argv[])
{
    if (argc < 4) {
printf("\n Usage: %s <hostname> <port> <TxID> \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:
<?php
$txid 
= array();
$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) {
$txid[] = stream_get_contents($client);
var_dump($txid);
        
fclose($client);
    }
}
?>


Am I on the right track or have I gone crazy?
Quoting for archival purposes. But wow, you catch on quick.
1755  Bitcoin / Bitcoin Discussion / Re: freecashsoftware com scam on: August 09, 2013, 11:47:46 PM
Anything with cash in it's name is usually an indicator of a scam.
1756  Economy / Gambling / Re: mutterings from mem: Provable Results vs Provably Fair on: August 09, 2013, 04:34:17 PM
I think this discussion has been here a few times already and I completely agree with you.

http://v20.nl/primedice/
https://bitcointalk.org/index.php?topic=253144
1757  Other / Off-topic / Bored lately. on: August 08, 2013, 10:13:05 AM
I am really bored lately, I've nothing to do, and I lost 0.90BTC(my own) to gambling instead of profiting that much.

I actually had a few ideas before I turned to gambling, I wanted to make a pool, but my programming skills were not very good, so I was unable to implement the stratum protocol in pushpool, the documentation was really scarce though, anyway, I scrapped the idea.
I later wanted to create a PHP dice game for the popular Feathercoin alt-coin, but someone beat me to it, and today that dice site is pretty dead. So I had some luck with dice games and decided to play more, I profited a bit, but in the long run I lost 0.90BTC.

I really want to earn 3-4 bitcoins per month(which I need to convert to fiat for the time being till bitcoin becomes more mainstream). I can't be a programmer for hire, because my skills aren't very good, I am just a hobbyist in that regard, and my webdesign skills are less than 0.

A real job? Yeah, obviously that would work well, but I am not exactly the type to physically work.

Any ideas?
1758  Bitcoin / Bitcoin Discussion / Re: Needed: Security best practices for creating better Bitcoin services on: August 07, 2013, 06:04:00 PM
A while back I actually posted a thread regarding this, security practices for Bitcoiners.
1759  Bitcoin / Bitcoin Discussion / Re: Bitcoin is not a virtual currency! on: August 07, 2013, 04:45:04 PM
Yeah, saying virtual puts off many people, they think it's just some flick like WoW gold or something backed by a single individual, calling it digital however makes it sound better.
1760  Bitcoin / Development & Technical Discussion / Re: Get list of all addresses with a balance over x? on: August 07, 2013, 04:18:53 PM
I would recommend ABE, but with it, if you start importing from block 0, it might take a month or two to fully import the blockchain, unless of course you have an SSD and fast RAM.
Pages: « 1 ... 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 [88] 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 ... 154 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!