Post
Topic
Board Development & Technical Discussion
Re: How to generate hashes/getwork from .NET?
by
just_someguy
on 03/06/2011, 22:12:54 UTC
Hi all! I've built a simple client that works against the JSON-RPC HTTP endpoint, it works OK. Built it using the HttpClient of Microsoft.Net.Http.dll and extensions in the http://wcf.codeplex.com/ release.

Now the question is, what do I do with the results I get from getwork? Is there are good description on the basics of just building a miner? I'm building this on .NET (C#).

Thanks in advance for any help, I did some searching on the forum but couldn't easily find what I was looking for.

It would probably be best not to try to build one in C# if you want to be mining for profit.
You will be competing with miners running against bare metal gpus.

Second, you would need to port the whole protocol to c# first if you want to actually mine directly from the network.
This is a huge undertaking. Bitcoinj is still working on it and thats being done by people who understand the protocol.

If you really want to see how the mining works you can look at this piece of code from bitcoinj:
http://code.google.com/p/bitcoinj/source/browse/trunk/src/com/google/bitcoin/core/Block.java#203
That part is easy.... its everything going on around it that you have to implement first that will make you pull your hair out.