Bitcoin Forum
May 08, 2024, 05:28:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 [8] 9 »
141  Bitcoin / Bitcoin Technical Support / Getwork/Mining, I sorta get it.... on: December 22, 2011, 01:12:15 AM
Maybe I'm being stupid (and it's a high probability) or maybe I'm just tired...

I'm sat here writing a simple bitcoin miner to teach myself about how it all works...

This things I understand:

You "getwork" from the server, which gives you a message with midstate, data, hash1 and target in it.
I know that "data" is the important one.
Data splits up into Version, Previous Hash, Merkle Root, Timestamp, target/"bits", Nonce.
I know that you then do the SHA256 hashing bit (and I know about the double hashing) then increment the nonce and rehash and repeat until you find the "answer"


What I don't get is that when the nonce overflows you need to increment "extraNonce" and reset the nonce back to 0... WHERE is the extra nonce and HOW do you do it? Or is it just a case of sending another getwork request? Also, does this method change if you're solo mining or on a pool...

I did a search of the forums, but I didn't really understand what I was reading... Please put it in terms that idiots would understand Smiley Or give a nice example of some sort, lol

Thanks in advance.
142  Economy / Goods / SOLD: 750GB SATAII Hard Drives on: December 21, 2011, 12:33:52 PM
NOW SOLD

I have for sale 3x 750GB hard drives.

They have seen about 6 months use in a domain controller which has now been "upgraded" to SAS.

They have all has a full format and a scandisk and they are all fine.

Looking for 10BTC each, this includes UK postage.

These are also up on ebay should you want to spend GBP instead :p

I doubt there's many people from the UK are on here (and if they'd even be interested in hard drives) but it's worth a shot.
All 3 drives are the same. The specs are as follows:

Brand: Seagate
Model: Barracuda 7200.10
MPN: ST3750640AS

Key Features

Capacity: 750 GB
Buffer Size: 16 MB
Spindle Speed: 7200 RPM
Interface: SATA II

Technical Details

External Data Transfer Rate: 300 Mbps
Form Factor: 3.5" Internal
Seek Time: 8.5 ms
Weight: 0.72 kg
143  Economy / Auctions / Re: Auction: Steam game Portal on: December 21, 2011, 10:53:03 AM
Auction has ended with 0 bidders
144  Bitcoin / Project Development / Re: Having trouble grabbing bitcoin price on: December 20, 2011, 11:08:23 PM
I have a solution for you.

Here is your code that I have updated:

This was tested under php 5.2.5 (Windows - IIS) and 5.3.8 (Ubuntu - Apache)

Code:
<?php

function ouvrirpage($site){  //Make sure the function goes at the top of the page....
 $ch curl_init($site);
 curl_setopt($chCURLOPT_RETURNTRANSFER1);
 curl_setopt($chCURLOPT_USERAGENT"Something Must Be Here/0.1"); //MtGox seems to REQUIRE this to be short...
 curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);  //This was missing

 $res curl_exec($ch);
 curl_close($ch);
 return $res;
}


$a=ouvrirpage("https://mtgox.com/api/0/data/ticker.php");  ///updated to https
$res=(json_decode($atrue));
$last round($res['ticker']['sell'], 2);

echo 
$last;
?>


Edit: The "MtGox seems to REQUIRE this to be short..." only seems to be true for some versions of php (5.3.6 was fine with the original user agent string), bit of an unusual one that... But you could put whatever you wanted in there, e.g. "Your Web Site MtGox Module/1.0" or whatever
145  Bitcoin / Project Development / Re: Having trouble grabbing bitcoin price on: December 20, 2011, 07:15:00 PM
Weirdly enough I've been having problems getting a php script to get the mtgox api information, but it works fine for all other sites... Possibly there's some kind of extra header in there that's upsetting the php curl implementation?

Edit:

I suspect it's because mtgox are sending the header
Content-Type: application/json

and most other places seem to send
Content-Type: text/html
146  Economy / Auctions / Re: Auction: Steam game Portal on: December 19, 2011, 10:55:18 AM
Increments of 0.1 minimum please
147  Economy / Auctions / Auction: Steam game Portal on: December 19, 2011, 10:53:44 AM
1 copy of Portal on Steam (Retails for £6.99)

Item will be sent to the winning bidder via Steam's "Send to email" function.
Alternatively I can add you as a Steam friend and send directly.

Auction ends 21st December 10:00am UTC

Bidding starts at 0.1 BTC
148  Economy / Goods / Re: WTS Steam Game: Portal on: December 19, 2011, 10:51:43 AM
This has now gone to the Auction forum
149  Bitcoin / Pools / Re: [1000 GH/s] Slush's Pool (mining.bitcoin.cz); Pool back in action! on: December 18, 2011, 11:34:34 AM
I noticed that. I seem to have made as many bitcoins today as I have over the last 4 or 5 days...
150  Economy / Goods / Re: WTS Steam Game: Portal on: December 17, 2011, 07:15:03 PM
Thanks for the suggestion Smiley I will probably do that sometime next week once I have some time off from work.
151  Economy / Goods / Re: WTS Steam Game: Portal on: December 17, 2011, 10:08:21 AM
I know it's not going to be easy to sell, I'm just trying to get my first full bitcoin to be honest

Terms are negotiable. If someone with a high(ish) post count wants it there's no need to pay first. I just don't wanna get screwed over on my 1st transaction.
152  Bitcoin / Pools / Re: [1000 GH/s] Slush's Pool (mining.bitcoin.cz); Pool back in action! on: December 16, 2011, 11:01:24 PM
Happy Birthday to the pool! lol
153  Economy / Goods / WTS Steam Game: Portal on: December 16, 2011, 10:19:01 PM
As per title,

I have for sale 1 copy of Portal (Retails for £6.99)... Looking for 1.25 BTC

If you want to trade please PM me. I should reply within 12 hours. Game will be sent using Steam's "Send to email" options, or I will add you as a steam friend and trade directly if you'd rather.

Trade will be made after 6 confirmations.

Edit: This is no longer for sale. There is an auction for this in the Auction forum.
154  Other / Beginners & Help / How long do you have to go? on: December 16, 2011, 02:14:20 PM
Got just half an hour of forum browsing to go until I can escape the "Newbie" prison....

How long do you all have left?
155  Other / Beginners & Help / Re: Newbies Hangout on: December 16, 2011, 12:13:04 PM
*loiters conspicuously*
156  Other / Beginners & Help / Re: Wallet Backups on: December 16, 2011, 12:41:38 AM
Thanks for the quick answers.

I had a feeling that behaviour for "duplicate" wallets running at once would be "undefined". Wasn't planning to try it, I was just curious.

Thanks again.
157  Other / Beginners & Help / Ufasoft Miner 0.22 on: December 16, 2011, 12:15:43 AM
(Posting here 'cause I'm still trapped in "Newbies")
According to the ufasoft miner webpage, compiling is now supported on 64-bit linux

After trying and failing with the previous release I downloaded the latest source and tried to get it built...

I get the following errors:

In file included from ./el/libext/ext-cpp.h:92,
                 from ./el/libext.h:1523,
                 from ./el/ext.h:23,
                 from src/bitcoin-miner.cpp:14:
./el/libext/exthelpers.h:914: error: only declarations of constructors can be âexplicitâ
In file included from ./el/libext/ext-cpp.h:906,
                 from ./el/libext.h:1523,
                 from ./el/ext.h:23,
                 from src/bitcoin-miner.cpp:14:
./el/libext/ext-base.h:450: error: only declarations of constructors can be âexplicitâ
In file included from ./el/libext/ext-cpp.h:920,
                 from ./el/libext.h:1523,
                 from ./el/ext.h:23,
                 from src/bitcoin-miner.cpp:14:
./el/libext/ext-fw.h:1093: error: only declarations of constructors can be âexplicitâ
In file included from src/bitcoin-miner.cpp:20:
src/miner.h:54: error: only declarations of constructors can be âexplicitâ


I'm using Ubuntu Server 10.04 64bit
158  Other / Beginners & Help / Wallet Backups on: December 16, 2011, 12:02:42 AM
Is all that's needed to backup a wallet a copy of the wallet.dat file? And to restore it to a new machine do you just install bitcoin again and copy the wallet.dat back?

Also, what would happen if you put the same wallet.dat on 2 machines at once?

(Those questions were probably answered elsewhere but I never have any luck finding answers)
159  Other / Beginners & Help / Re: 100%CPU bug on ATI on: December 15, 2011, 11:56:11 PM
I'll stick with the high CPU usage then... it's not causing that much of a temperature increase for me and I don't use the machines for anything other than mining except the occasional test web server config, but even that's rare... (They're built from spare parts I had laying around and a couple of cheap 5830s from ebay)
160  Other / Beginners & Help / Re: 100%CPU bug on ATI on: December 15, 2011, 11:48:31 PM
Is there any mining speed increase with the newest version?
Pages: « 1 2 3 4 5 6 7 [8] 9 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!