Bitcoin Forum
May 08, 2024, 11:08:38 AM *
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 »
1741  Bitcoin / Mining / Re: A slightly more open approach to bitcoin on the GPU on: September 09, 2010, 07:18:15 PM
This new patch has been tested and is generating (at least in a test network), and the move of scratch space into thread local memory has improved performance quite a bit, from ~1880kh/s to ~3000kh/s on my system.

Did anyone succeed in building and testing on other platforms / GPUs?
1742  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: September 09, 2010, 06:50:16 PM
Ok, I'm done with Pick3, lost almost all of my coins on it... it worked out great... for other people.

So, say hello to Pick4. It's 1:65546 instead of 1:4096, maybe this way enough people will have time to bet. It's all about the number of betters,really. It seems that the bitpick didn't become the automatic success I thought it would be.

Also, I've been thinking about the lottery prizes and for the next one I'm getting rid of 1 hit prizes. 1 in 16 is just too easy and it dilutes the total pot too much... I'll run some numbers as for the new pool division percentages, but share your mind if you have an idea of what these should be.
1743  Bitcoin / Development & Technical Discussion / Re: Auto-detect for 128-bit 4-way SSE2 on: September 09, 2010, 03:39:08 PM
You should benchmark all implementations (using cpu time, not realtime) and choose the fastest and while benchmarking check whether the algorithm actually works.

Yeah, while implementing the cuda hasher I thought about this. There should be an interface to the hashing handler (or even a full miner per implementation) and we should have a simple way of giving it a known block, ask it to hash 1000 nonces and compare the result, while benchmarking at the same time. Shouldn't be too hard to implement and would help when developing new algorithms.

The interface schema would also help if we were to plug in an fpga based engine or something of the kind, having specific entry points into the code without having to tweak on the default mining schema.
1744  Bitcoin / Development & Technical Discussion / Re: So, there's also an element of chance? on: September 09, 2010, 03:29:13 PM
If you have a good application of thermal paste and the CPU clocked properly it should fail within the time of relevancy.

I have my Q6600@2.4G clocked properly at 3.2Ghz and the fan runs full speed, go figure Smiley I do crack an extra 50% hashes from it, though.
1745  Bitcoin / Development & Technical Discussion / Re: So, there's also an element of chance? on: September 09, 2010, 02:35:29 PM
Well, with Taabl you can lose, with Bitcoin mining you can't.

Well, it depends on who pays your electicity bill Wink

Yes, that's true, you can loose. I'm the one behind the wheel and I've only lost so far :p

But mining right now, on commodity hardware, is almost a certain loss. And it's not only electricity, the cpu fans are bound to fail soo too! And running at top temp certainly impacts life span of components.
1746  Bitcoin / Mining / Re: A slightly more open approach to bitcoin on the GPU on: September 09, 2010, 04:31:47 AM
I am also working on a version of the BitCoin CUDA Client and will do all that I can to help this project. It will be opensourced as well, for the same reasons nelisky stated. I will test this first version out on my GTX 460(borrowing from a friend  Grin) as soon as I can. Also, the pseudocode I've been writing up should be quite a bit faster than this currently is because it is incorporating FPGA styling and CUDA programming.

I should have something up pf my code up after the weekend.

Nice! I've wanted to get into FPGA's too, and bitcoin seems very fitting, but unfortunately time doesn't stretch that much.

BTW, the code I posted is slightly broken Wink If the cuda thread generates a valid block it will die, for where it reads in main.cpp:


          if (DEBUG || hash <= hashTarget) {
            pblock->nNonce = keep+i;
            break;
          }

it shoudl read

          if (DEBUG || hash <= hashTarget) {
            pblock->nNonce = tmp.block.nNonce = keep+i;
            break;
          }

1747  Bitcoin / Mining / Re: A slightly more open approach to bitcoin on the GPU on: September 09, 2010, 03:58:43 AM
I think the big secret thing with cuda or opencl clients is that they give one person a decisive advantage over everyone else running only a cpu. Add that with the fact that most users don't know cuda programing (me included) makes for a situation where a cuda client can be valuable to the author... For example artforz has made his own cuda client that has not been released. It has been rumored that he makes up 25% of the generation power on the network. It give him a huge advantage and one I think artforz would like to keep.

The down side to opening up a GPU client to the masses is that it completely kills CPU based generation unless you have a lot of cpus.... On my windows client I went from 4500Khash to 29000khashes.

I don't think that the bias should be towards the ones with better printers having more money Smiley The Bitcoins are a whole ecosystem, and mining for them is a small part of it, I guess. If lots of people start running GPU based mining, then the advantage that was owned by artforz and a handful of others will blend into more hands and pockets, thus making the mining less efficient for everyone. But mining is part statistics, part luck. I recently generated 3 blocks, running a machine that has been mining non stop for over a month. These 3 blocks are the only blocks it ever generated.

Of course artforz would like to keep the advantage. Heck, I could use this to my advantage too, but I'd rather take the open source business approach and say "here, take it, my treat" but expect you to do the same for me and others (yes, trust is the base for this), and if you like it, I'll take whatever you feel fair. You want me to do something specific? need suport? Well, priority and special attention comes with a cost.

I may never get as many coins as artforz created, but I hope I did my share on helping to spread them Wink

I will give this a try here in a few days or so on my 8800gtx hackintosh and see how it runs. What GPU does your mac have in it?
I have no cuda or MAC OS X programming knowledge but, I have done some c in BSD and will have a go at the code to see what I might be able to do. Thank you for your efforts!

I've got a GT330M, really basic entry level thing. And you are most welcome.
1748  Bitcoin / Mining / A slightly more open approach to bitcoin on the GPU on: September 09, 2010, 01:57:12 AM
Honestly, I can't understand all the secrecy on the CUDA / OpenCL / Whatever GPU enabled versions of bitcoin. Sure, it's nice to take advantage of the extra edge you get if you want to build an efficient mining farm, but really, what's up with everyone on this regard?

So, not really having the time to do it, I decided to take my first cup of CUDA (as all I have as hw to test is a macbook pro with a nvidia inside), and I'm attaching the initial version here. Yes, the source, for you to do as you please! Just remember the reason you got it in the first place, which was that someone didn't take it and hide! Smiley

Anyways, it's *really* crude, has static compile instructions on the makefile, only for osx and with the cuda dev sdk in the default place, compiled for x86_64. But I'm sure you can quickly tweak it to compile for your system, though...

The code that runs in the GPU is a 1:1 copy of the Cryptopp source, only slightly tweaked. There's a lot of room for improvement, I have some 20 hours total of working with CUDA so I don't have the faintest idea of what optimizations I could achieve, but at least in the memory layout there's a lot to do. I compared the resulting hashes with Cryptopp and it matches, so I'm assuming it can generate blocks. I'm tired and thus haven't tried a local network, but I will soon.

I get 1400khs from the CPU with all cores combined, and 1800khs from the GPU alone, so it's pretty nice. It does take a lot of cpu still, for some reason, so run it with cores-1 or you'll loose performance. I *think* the hashes per second calculation is correct, but may not be.

The first processor is always the cuda, it will not run if you don't have the GPU / kernel, no error handling, ugly hackish code throughout, but it serves as a start. Lets get this production grade to include in the main clients, shall we?

Now, if you want to thank me for doing this just head to http://taabl.datlatec.com and place a few bets. I'm starting to think the time I spent developing the lottery wasn't worth it, as it got too little interest so far, so it would be super if you all gave it a try.

If you want me to continue to pursue this, then toss a good amount of coins my way Smiley or send me some hardware. I have linux and windows machines, but not the GPU for them, so *wink* *wink*

Most of all, share your code!
1749  Bitcoin / Development & Technical Discussion / Re: So, there's also an element of chance? on: September 08, 2010, 09:34:24 PM
Alright, I have a cheap Pentium III 500MHz headless box running bitcoin 24/7. It's only generating 146 khashes/s. So is it correct that even though it can only process so much there is still a probability of it completing a block at anytime and I could still generate a profit through luck? How does that probability increase with more computing power?

146khash/sec means that every second your computer checks 146,000 numbers to see if they work. Think of that as 146000 lottery tickets per second. If you had more cpu power you could check more tickets each second. To give you an idea of how bad your chances are, I've generated 9 blocks in 9 weeks with an average of 3000khash. It's worse than that though because the difficulty has gone up considerable over this time. You should expect to wait 242 days of running 24/7 on average if the difficulty does not increase. Of course about 3% of time you will make one this week.

Or, in other words, you have a much better chance of getting some coins if you play on http://taabl.datlatec.com Smiley

*ducks*
1750  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: September 08, 2010, 12:04:06 PM
Why doesn't the pick3 pot update quickly? I thought it was the 6 block thing, but I think it's been longer than that now.

You can double check by looking at the details page. Under 'Total Bets' there is the count of confirmed bets, and the unconfirmed ones are gray and italic in the bet list (underlined if yours).

Right now there are 10 bets unconfirmed.
1751  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: September 08, 2010, 10:57:26 AM
And another pick went by, another chunk of bitcoins removed from my personal wealth... Come on, people, we need critical mass here! Go on and bet!

On a side note, the payment for the pick was automated and a new one should had been created on the fly, but there was a small bug preventing that... should be good for the next one.
1752  Bitcoin / Development & Technical Discussion / Re: auto backing up of wallet.dat on: September 07, 2010, 09:46:51 AM
Nice. How about being able to set <destination> as a config option and have the function called after every send(/receive?) of bitcoins?

I'm doing backups every time I create a new address and when I send btcs. Receiving should be safe? Also, I'm collecting other stuff and doing offsite scp based backups of the wallet, meaning I have the trigger embedded in my program logic, but auto backups would be great, as one can look for changes in the backup file and use that as trigger to do the offsite.

But what I *really* think would rock is some kind of event mechanism Smiley
1753  Bitcoin / Bitcoin Technical Support / Re: bitcoind as daemon in OSX on: September 06, 2010, 10:14:25 PM
Yep, that did the trick. Thank you.

Now I just need you to include the getblock and listtransactions patches and I'm a happy camper. If you still feel strongly against these, I just need parts of them, really:
- From getblock: A way to extract the hash signature from a specific block (which I use in the lottery)
- From listtransactions: Well, I need everything there, really, but mostly for housekeeping as I need a way of quickly getting a log of transactions. But not all information is important, only the address (in or out, depending on credit or debit) the type and the confirmation count. I also like to be able to see blocks generated before they mature, but that's not that important.
1754  Bitcoin / Bitcoin Technical Support / bitcoind as daemon in OSX on: September 06, 2010, 09:44:06 PM
I've been getting this from the start, and it is only a mild nuisance as I develop in OSX but then deploy on linux.

Anyway, the bitcoind process doesn't daemonize itself on my system, OSX 10.6, not with nor without -daemon. I can background it with '&' or ctrl-z bg, and it works correctly.
1755  Bitcoin / Development & Technical Discussion / Re: HTTP status codes from the JSON-RPC api on: September 06, 2010, 09:26:10 PM
This is in SVN rev 147.

This is more standard, and although json-rpc 1.0 didn't specify the format of error objects, it did specify that they would be objects not strings or other values, so we needed to change this to be correct.  The code/message members have become standard in later json-rpc specs.

If you have code that checks the error and expects a string, you'll need to change it.  When there is an error, the error member is now an object not a string.

Also in SVN rev 147:
- The command line json-rpc returns the error code as its exit code.  Exit codes can only be 0-255 on unix, so it's abs(code)%256.
- The "backupwallet <destination>" command that was discussed in another thread.  It locks the wallet and copies it, so you can be sure you get a correct copy.


Woot, double thumbs up on this. Great work, satoshi!
1756  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: September 06, 2010, 07:52:18 PM

I don't understand why you need to give back any bets.

Bets close block: 994 (any bet that is not in by this block is not in the draw.)
Winning number comes from block: 1000

Any bet in block 995-1994 gets included in the draw for block 2000

That would be annoying if someone was trying to play immediately and didn't want money locked up for a week, or if they were trying to be part of a big jackpot and the next one was small.

But that isn't what he's talking about, he means the pick 3.

Yep, exactly. No bets are returned on the lottery, as there is no wait period. Bets are not accepted within 6 blocks of draw.

I had bets canceled, does that mean it was won within 6 of my bet?

I say you turn off the wait of 6 and make only random bets accepted. Then no one can game it and you don't need refunds ever. It was not a fluke it will happen all the time if this gets big.

The reason for this is not to avoid people doing crazy things, but to prevent me, as the lottery operator, to cheat on the betters. There's a buffer of 6 blocks (roughly 1 hour) where you can download all the active bets, so if you take a snapshot of the bets every half hour (just to be safe) you can verify if I'm not putting false bets after the result block is known.

If people rather not have this wait period and just trust me, so be it, but I don't want to even have a chance of cheating, be it on purpose or due to bugs in the software. Also, if my time runs too short I may hand this over to someone else, but I'm a better myself so I'd rather be able to make sure that person will not even have the chance to cheat on me.

It's not I don't trust people, I just think that if trust is not an issue everything goes smoothly Smiley
1757  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: September 06, 2010, 01:20:34 PM
This is just getting silly Smiley

I can't automate the Pick if it closes in 6 blocks! Either this is just one of those really unlikely events that will probably not happen again, or I need to add another character to the bets...

I'm opening another one, and use this to exercise the 'give back bets that didn't get confirmation blocks'.
1758  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: September 06, 2010, 12:11:05 PM
Again, this could be wrong, but I don't think so.

Kind of bad news:

If you seed 100BTC and take .5BTC per entry you need 7 tickets to be purchased between each block in order to profit by 1BTC/cycle. This seems quite an unlikely level to reach anytime soon.

And your upside isn't that great either. If you get to 20 tickets bought between each block you will profit only 66BTC/cycle. Though the cycle length will decrease by a lot, so maybe that isn't so bad.

Actually that is a pretty large redeeming quality. When you are bleeding money cycles will take much longer than when you are raking it in.

At 20 bought per block half of your cycles will last fewer than 16 blocks and 99% will last fewer than 40. So it would be a cash cow at that point or even a bit before.

Now if you drop your seed amount to 50BTC you can profit by 5BTC/cycle while only selling 2 tickets per block.

Selling 1 ticket per block will cost you less than 10BTC (the accuracy is bad on this one because of the long tail I'm cutting off), but 10BTC is the most -EV it could be.

If there are people who buy chunks all at once early this will help you too.

Ah, I just remembered that the pot is often rounded down a tad by the increments of 10 required to bump the pot. This is in your favor of course, but I am not going to redo the calcs right now.

So all things considered putting out 50BTC is probably going to be a very small outlay compared to putting out 100BTC which will be a loss until you get quite large interest. Obviously having a small seed amount will draw fewer players too, but I can't tell by how much and that is not accounted for here.

Thank you! You saved me a bunch of number crushing, although I had the empirical feeling that the 100BTC seed was probably a bit too much. I'm not trying to get rich out of this, obviously, but I'd really rather not loose all my bitcoins to it either. As such, I'm going to seed the next few pick 3s at 50BTC, which seems like a great compromise. If we get a lot of people betting, great, if I'm in profit the seeds will increase. If I loose it all, well, tough, I'll just stick to the other lottery Smiley
1759  Economy / Marketplace / Re: We accept Bitcoins on: September 06, 2010, 09:54:34 AM
The Amazing Anonymous Bitcoin Lottery!

And it may be ready for prime time... maybe Smiley
taabl.datlatec.com
Thread at http://bitcointalk.org/index.php?topic=896

Seriously, it's like free money right now so stay away and let me collect for a while.

Hey FreeMoney, you have officially been appointed TAABL's favorit charity cause Smiley
1760  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: September 06, 2010, 08:38:40 AM
I think I won the pick 3, but I haven't been credited. If you seed the next one too I'll buy even more, it's a damn good deal right now.

Heh, congratulations! So it was you who took all my seed btcs Smiley

Yes, you haven't been paid yet, the pay script was horribly broken so I'll fix that today and then open a new one. I just hope more betters come in on this one before we get a winner or I'm better off just giving the seed money away :p

Other than the fact the house looses too easily, this Pick 3 schema seems very interesting, so I think that as long as I can afford it, I'll keep it up.
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!