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 Or give a nice example of some sort, lol Thanks in advance.
|
|
|
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
|
|
|
Auction has ended with 0 bidders
|
|
|
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) <?php
function ouvrirpage($site){ //Make sure the function goes at the top of the page.... $ch = curl_init($site); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Something Must Be Here/0.1"); //MtGox seems to REQUIRE this to be short... curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //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($a, true)); $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
|
|
|
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
|
|
|
Increments of 0.1 minimum please
|
|
|
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
|
|
|
This has now gone to the Auction forum
|
|
|
I noticed that. I seem to have made as many bitcoins today as I have over the last 4 or 5 days...
|
|
|
Thanks for the suggestion I will probably do that sometime next week once I have some time off from work.
|
|
|
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.
|
|
|
Happy Birthday to the pool! lol
|
|
|
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.
|
|
|
Got just half an hour of forum browsing to go until I can escape the "Newbie" prison....
How long do you all have left?
|
|
|
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.
|
|
|
(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
|
|
|
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)
|
|
|
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)
|
|
|
Is there any mining speed increase with the newest version?
|
|
|
|