So, I was working on my own mining client which it works on some ubiq pools, now im trying to make it work with Ethereum on ethermine.org pool which uses stratum, how do I handle the data recieved on the mining.notify message from the stratum protocol?

This is what I am currently getting:


On the pool that I started to work with the result from GetWork calls were three parameters, HeaderHash, SeedHash and Boundary which allowed me to build my Block header object like:

    public BlockHeader(string header, string seed, string boundary)
        this.HeaderString = header;
        this.BoundaryString = boundary;
        this.SeedString = seed;
        this.HeaderHash = BlockHeader.StringToByteArray(header.Replace("0x", string.Empty));
        this.SeedBytes = BlockHeader.StringToByteArray(seed.Replace("0x", string.Empty));
        this.BoundaryBytes = BlockHeader.StringToByteArray(boundary.Replace("0x", string.Empty));

How do I get headerhash, seedhash and boundary from the stratum resposne which has 5 elements?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.