-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yacoin support #29
Comments
It looks like either yacoind is not up and running yet, it does not know how to do getblocktemplate, or its just returning some garbage/non default input.
So please try the following command and let me know what the output is.
That is what it is failing on in the code. |
this is the output |
I tried again from the beginning and it works at least till the moment I am trying to connect yacminer through stratum. If I put in yacminer options stratum+tc://... then nothing is happening. When I dont specify protocol I've got this in debug window:
but then in yacminer log I've got this:
Any help in debugging the problem is appreciated |
Nice catch. The most telling line is this one.
Something is sending HTTP requests instead of stratum requests. Does yacminer do stratum? It looks like it is looking for getwork. Can you try with stratum-proxy in front of yacminer? |
heh - indeed - it is confirming shares now with stratum proxy :) - I will test it more and let you know |
through stratum proxy shares are not really transferred to server... I think this is because it use scrypt not scrypt-jane... |
Next update - yacminer do support stratum... but something is still wrong:
|
What do you have on like 224 of template_registry.py?
Basically what that stack trace is saying is that the function that does the PoW is expecting 2 arguments instead of 1. I am guessing that you changed the default line to be something with scrypt-jane:
Check the scrypt-jane function to see what it requires. It could also be the stratum-mining-proxy. It looks like it does not work with yacoin? http://yacointalk.com/index.php?topic=64.0. It could also be that their pool did not work for yacoin. I have not investigated it. |
there is yac_scrypt which was compiled from here: https://github.com/cctvsmg/yacoin-p2pool/tree/master/yac_scrypt And here is the code of function:
|
Whats the line on 224? It is sending in self, but it does not look to be sending anything else in. Can you print out the hash hex if you put it above that line? |
This is my line 224:
but sorry for my ignorance but how can I "print out the hash hex"? |
I figured out how to do some debugging and i put this code just before above line:
and result is:
EDIT: I checked how it is implemented in p2pool (python as well) and here is the function:
maybe this can help to provide some help |
Good catch. It does look like it takes two arguments. It needs the timestamp as well. Can you change the line to:
|
@feeleep75 Any update on this? |
yep - here is the code I used:
|
@feeleep75 Thank you for sharing. I'll try to get this integrated into the master branch |
hash_bin = yac_scrypt.getPoWHash (''. join ([header_bin [i * 4: i * 4 +4] [:: -1] for i in range (0, 20)]), int (ntime, 16)); |
Looks like the python formatting is wrong. Check the indentations.
|
225 lines of code: |
Check that line for the incorrect indent. It is a good idea to use spaces instead of tabs with python as different interpreters can use 4 or 8 spaces for a tab. Can you verify that the line has spaces and is indented correctly? |
@ kczuse const unsigned char minNfactor = 6; ......... unsigned char GetNfactor(int nTimestamp) {
..... |
Collided with the same task. You would not be able to share a file configuration for stratum. I am a newbie and would very grateful for your help. |
added support in https://github.com/ahmedbodi/stratum-mining |
I am trying to run it for Yacoin but I've got initial error message:
Any help appreciated
The text was updated successfully, but these errors were encountered: