node-stratum-pool icon indicating copy to clipboard operation
node-stratum-pool copied to clipboard

x13 and timetravel support

Open kiahmed opened this issue 8 years ago • 35 comments

hi, i am new to pool and nomp configuration and stuff. i somehow managed to configure and run it for ltc. I wonder how can i add support for coins that didn't ship with the bundle like marucoin/x13 and timetravel 10 algorithm?

thanks for any help..

kiahmed avatar Oct 11 '17 03:10 kiahmed

I was able to implement the Bitcore currency that works in timetravel10, but I can not solve the problem of rejected shares. 100% of the shares are rejected.

hardx4 avatar Nov 24 '17 23:11 hardx4

@hardx4 could you shed some more light on where to get a the algorithm files for each coin that this stratum pool would understand and work with? For bitcore, did you have to download timetravel10 file from anywhere or created your own or something?

kiahmed avatar Nov 24 '17 23:11 kiahmed

@kiahmed See my repository. Well, I downloaded the timetravel of a pool that supports the coin in your stratum. I downloaded it here: https://github.com/tpruvot/yiimp. It seems to work fine, but it does not accept the shares.

My issue: https://github.com/zone117x/node-stratum-pool/issues/132

hardx4 avatar Nov 25 '17 00:11 hardx4

yup. i looked into that repo too..he has wide range of coins setup and entire package. So, why wouldn't you rather use that stratum service see if it doesn't has the sharing problem or you already have infrastructure running on this repo? Thats exactly my concern is how do you make sure the stratum is all happy with the newly incorporated algo. I think I tried marucoin with this one and it had some issues.

kiahmed avatar Nov 25 '17 00:11 kiahmed

I recently added this algo to my pool (I use node-stratum), mining seems working, mulitplier at "algoProperties" I set multiplier: Math.pow(2, 8),

startsts avatar Dec 01 '17 19:12 startsts

@startsts, Timetravel10 or Timetravel?

hardx4 avatar Dec 01 '17 20:12 hardx4

My something is factor equal to 1, I'm going to try to change it, it might solve my problems.

hardx4 avatar Dec 01 '17 20:12 hardx4

In my case is Timetravel, but I think Timetravel10 has same multiplier.
Btw: do you have polytimos working at your multi-hashing?

startsts avatar Dec 01 '17 20:12 startsts

@startsts yes i have.

hardx4 avatar Dec 01 '17 21:12 hardx4

@startsts I will try to change the timetravel10 multiplier and I will test, I believe it will work!

hardx4 avatar Dec 01 '17 21:12 hardx4

I have seen your code for timetravel10 https://github.com/hardx4/node-multi-hashing/blob/master/timetravel10.c and wonder it has only 7 algos instead of 10, from where is that code?

startsts avatar Dec 01 '17 21:12 startsts

This version is one of many that I tested, I will return to a version with 9 cases instead of 7

hardx4 avatar Dec 01 '17 21:12 hardx4

And yes... I was working on timetravel10 and got same problem with reject shares and it was not depend on multiplier. Now I have taken some code from cpuminer-multi, it seems working, I pulled to my repository, I hope this help https://github.com/startsts/multi-hashing/blob/master/bitcore.c

startsts avatar Dec 02 '17 05:12 startsts

@startsts I tested the code but continued to reject the shares. So I put in multiplier: Math.pow (2, 8) and the shares were accepted. But I still do not know if this is correct.

hardx4 avatar Dec 10 '17 01:12 hardx4

@hardx4 yes, i was talking about Math.pow (2, 8) above. To know if wallet will accept block we can try to use testnet or some coin with low difficulty and try mining it. I never created testnet so I don't know how to do it. I recently added Bitcore coin to my pool, but there are no miners yet, so nobody checked . Any other coin with timetravel10?

startsts avatar Dec 11 '17 01:12 startsts

@startsts I do not know the same way. I tried to start in testnet, but apparently there are no nodes available. What is your pool?

hardx4 avatar Dec 11 '17 20:12 hardx4

my pool is https://cryptohub.online/pools/, any ideas? Surely there are no nodes for testnet, you should launch 2 wallet instances on the same computer and connect one to another

startsts avatar Dec 11 '17 23:12 startsts

I have bitcore installed on the server, I can start in testnet with your added node and you in the same way with my added node. Would that solve it? How can we communicate more easily? skype, slack, discord ...

hardx4 avatar Dec 12 '17 01:12 hardx4

I don't have broadband connection these days so I can't help. How I say you can launch 2 daemon instances in one PC, just use different -datadir. I used this way when was checking tribus algo

startsts avatar Dec 12 '17 01:12 startsts

@startsts I have just tested in testnet and the daemon refuses the generated blocks ...

hardx4 avatar Dec 12 '17 07:12 hardx4

Can you see in debug.log what the reason?

startsts avatar Dec 12 '17 17:12 startsts

I tried testnet and everything is ok, daemon accepts blocks, screenshot screenshot at 2017-12-13 01-54-13

startsts avatar Dec 13 '17 04:12 startsts

@startsts Here the blocks are not accepted =/

hardx4 avatar Dec 13 '17 04:12 hardx4

Look at debug.log

startsts avatar Dec 13 '17 05:12 startsts

@startsts How's your shareMultiplier for the algorithm? I'll give you the log, one minute

hardx4 avatar Dec 13 '17 05:12 hardx4

bitcore: { multiplier: Math.pow(2, 8), hash: function(){ return function(){ return multiHashing.bitcore.apply(this, arguments); } } },

startsts avatar Dec 13 '17 05:12 startsts

Let me compile again

hardx4 avatar Dec 13 '17 05:12 hardx4

@startsts look image

hardx4 avatar Dec 13 '17 05:12 hardx4

@startsts If Daemon rejects the block, why does it add the block to the chain, this I do not understand ...

hardx4 avatar Dec 13 '17 05:12 hardx4

daemon accepts block, but your stratum thinks that it doesn't since it return different block hash .. maybe need some changes to node-stratum-pool, I already did a lot of changes in code of node-stratum-pool to support more coins... when I will be able I publish my node-stratum-pool repository

startsts avatar Dec 13 '17 05:12 startsts