vagabondan / CoiniumServ

NOTE: No plans to return to this project because I've switched to more convenient and stable NOMP pool (https://github.com/vagabondan/ric-nomp) and recommend you to do the same.
Other
10 stars 6 forks source link

No able to find blocks mining with x11 algo #17

Closed mario1987 closed 7 years ago

mario1987 commented 7 years ago

Made this issue instead of https://github.com/bonesoul/CoiniumServ/issues/837 which in not on finding no blocks

@vagabondan As I am thinking now the coin that I am mining does not use SIGWIT as LTC does maybe that is the problem. The logs that I am going to upload now is from the standard cs

Coin Wallet with found block CoinWallet-debug.TXT

CS Logs of standard CoiniumServ not recognizing and displaying the found block Standard-CS-debug.TXT Standard-CS-packet-20170823.TXT Standard-CS-server.TXT

vagabondan commented 7 years ago

@mario1987 as I wrote earlier https://github.com/bonesoul/CoiniumServ/issues/837#issuecomment-324231909 the problem is with your proof-of-work function: it produces too large hash, twice larger than it should be. So, I asked you to show me your config/coins/reddbytecoin.json because it is absent in this repository.

P.S. As I saw in your packet.log there is proof of stake part for this coin. I'll check the appropriate code section.

mario1987 commented 7 years ago

@vagabondan That kind of weird because when I use the same config files In the standard CS I am finding blocks so the POW function works but not with this version and I did not changed any thing in the src I only downloaded and build it.

Yes there is a POS but I disabled it. In the coins config file I will include that one to then

This is the coin config json file in the pool folder of CS reddbyteCoin.TXT

This config file in in the coins folder of CS reddbytecoin.TXT

This is the file of the deamon config in AppData folder AppData-ReddByte.TXT

vagabondan commented 7 years ago

@mario1987 Excuse me if I'm wrong and missed something important, but I haven't found the log where it was stated that you had found the block. Only such messages appears:

We thought a block was found but it was rejected by the coin daemon; [2aca6279fe7c7e5abee7376cdb44ffaa71bf706912471eb7556c6546de247b31] - reason; Block not found But this is the consequence of the incorrect conversion of byte array into big SIGNED integer. Nearly one half of all shares are became negative big integers during incorrect conversion and generate false positive triggering being compared with targets. Here is my fix for this bug: https://github.com/vagabondan/CoiniumServ/commit/89b448cdad0627557546eb1de8e6e6be6a40a588#diff-eb8c3ff8516f5e586fec335ab34e8702

If I'm wrong, please, point to message that reads about block generated by CS is accepted.

I believe that real root cause of this problem is incorrect conversion of target into BIGUINT32 while it should be converted into BIGUINT64 actually for RBC.

mario1987 commented 7 years ago

Those config files are from the standard CS not your version. and yes i found blocks with it even if it says

We thought a block was found but it was rejected by the coin daemon; [2aca6279fe7c7e5abee7376cdb44ffaa71bf706912471eb7556c6546de247b31] - reason; Block not found

This is proof of the latest block that I have found with the Standard CS block-found-proof

NotifyTransactionChanged e7e0c400489792f27af2b3f23c4409778bc37651ceb15e076c3d4200ac53e152 status=1 ProcessBlock: ACCEPTED updateWallet e7e0c400489792f27af2b3f23c4409778bc37651ceb15e076c3d4200ac53e152 1

The block found in the pic can be found in the Wallet log with bonesoul version.

note that this in with the version of bonesoul not your version with your version I don't get that and also not finding any blocks

I think i will gather all logs in to 1 comment to avoid confusion so it will be complete

Coin's config file for both versions is the same

reddbyteCoin.TXT reddbytecoin.TXT AppData-ReddByte.TXT

bonesoul CS version

Standard-CS-server.TXT Standard-CS-packet-20170823.TXT Standard-CS-debug.TXT

Wallet Debug Log with this version CoinWallet-debug.TXT

vagabondan CS version

CS-server.TXT CS-packet-20170823.TXT CS-debug.TXT

Wallet Debug Log with this version Wallet-debug.TXT

The version that I want to use is vagabondan version. So your version but the problem that I am facing is I am not finding any blocks with it. The logs of the bonesoul version was only to show that I was able to find blocks with the coin config can been seen in the pic not for solving problems that the version have.

Your version is giving me a POW function problem as you said "@mario1987 Thank you! Something is definetly wrong with Proof Of Work function: POW: 6b33f25bf896d6b102ae236f6c055e63f33b3e24f3320e74b8def9640681880ef1e4a3b75b677aa75770d2e9c23157dcd463ef35bed26db6b9d538161fc0a48d TGT: 128e8400000000000000000000000000000000000000000000000000"

This is my main problem because if the POW function is not working I am not going to find any blocks.

vagabondan commented 7 years ago

Ok, I believe, I know what's going on:) I will create special branch for you with some special modification. Please, download it, compile and run. If I'm right, you will get blocks twice faster than in bonesoul version. Ok?

mario1987 commented 7 years ago

@vagabondan Ok that would be great. I really appreciate it. But I am not planning to online mine x11 algo's also the other ones which is stated for CS.

again I really appreciate it tnx for the hard work.

mario1987 commented 7 years ago

I downloaded it and going to test it soon tnx again.

vagabondan commented 7 years ago

@mario1987 It's just an attempt. I hope it will help. https://github.com/vagabondan/CoiniumServ/tree/mario-x11-special_edition

mario1987 commented 7 years ago

@vagabondan I have not found any blocks yet but I have some debug log's I will run the miner on the pool for the night. If i find a block I will let you know.

Here are the log's till now.

debug.TXT packet-20170823.TXT server.TXT debug With CS X11.TXT

vagabondan commented 7 years ago

@mario1987 Did you download this branch?: https://github.com/vagabondan/CoiniumServ/tree/mario-x11-special_edition You should use exactly this one. Please check, that you have latest commits changes for this branch.

You should see the following phrase in debug.log: "Job.Target is greater than or equal HeaderValue" and much more additional output.

mario1987 commented 7 years ago

@vagabondan Yes i did

vagabondan commented 7 years ago

@mario1987 But I don't see this phrase in your log.

mario1987 commented 7 years ago

naamloos

vagabondan commented 7 years ago

@mario1987 Please download once again, I think you've done it before my last commits.

mario1987 commented 7 years ago

Ok

mario1987 commented 7 years ago

@vagabondan I have downloaded and compiled the special version but I am getting a lot of rejections.

debug.TXT debugCS.TXT packet-20170824.TXT server.TXT

mario1987 commented 7 years ago

@vagabondan I also get this when compiling

1>------ Build started: Project: CoiniumServ, Configuration: Debug Any CPU ------ 1>C:\Users\Mario\Desktop\Nieuwe map (10)\CoiniumServ-mario-x11-special_edition\src\CoiniumServ\Overpool\OverpoolClient.cs(100,4,100,7): warning CS0162: Unreachable code detected 1>C:\Users\Mario\Desktop\Nieuwe map (10)\CoiniumServ-mario-x11-special_edition\src\CoiniumServ\Overpool\OverpoolClient.cs(117,4,117,6): warning CS0162: Unreachable code detected 1>C:\Users\Mario\Desktop\Nieuwe map (10)\CoiniumServ-mario-x11-special_edition\src\CoiniumServ\Shares\Share.cs(244,17,244,33): warning CS0162: Unreachable code detected 1> CoiniumServ -> C:\Users\Mario\Desktop\Nieuwe map (10)\CoiniumServ-mario-x11-special_edition\bin\Debug\CoiniumServ.exe ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

vagabondan commented 7 years ago

@mario1987 Ok, it's normal. Set miners' difficulty at network level and switch off vardiff. This should reduce false-positive triggering

mario1987 commented 7 years ago

@vagabondan I have found a block but it is not registered at the CS web as pending block

vagabondan commented 7 years ago

@mario1987 Good! Implement recommendations from https://github.com/vagabondan/CoiniumServ/issues/17#issuecomment-324484092 and you will get less errors.

vagabondan commented 7 years ago

@mario1987 what is in logs for that block?

mario1987 commented 7 years ago

@vagabondan Ok I will do that in a sec. No that I have found a block I see that the payments is not done. Also the found block is not registered as CS.

naamloos

vagabondan commented 7 years ago

@mario1987 This is because you need to actualize links in you reddbytecoin.json I believe. CS just can't get info from web servers. So is block really found and left screen says it's in pending status now?

mario1987 commented 7 years ago

@vagabondan And how do i do that? Is that in the pool json of coin json ? and what links do I need

mario1987 commented 7 years ago

@vagabondan because I cant find anything in the guide of CS for that on how to do it or I am missing something.

vagabondan commented 7 years ago

@mario1987 send me your debug.log to look at. You need to modify .../bin/Debug/config/coin/reddbytecoin.json Here it is:

{
    "name": "ReddByte",
    "symbol": "RBC",
    "algorithm": "x11",
    "site": "https://bitcointalk.org/index.php?topic=1737799.0;all",

    "blockExplorer": {
        "block": "https://chainz.cryptoid.info/rbc/block/",
        "tx": "https://chainz.cryptoid.info/rbc/tx/",
        "address": "https://chainz.cryptoid.info/rbc/address/"
    }

}

Try to use these links. Maybe they are correct. Also check that your redis server is running and your pool configuration file has correct requisites.

vagabondan commented 7 years ago

@mario1987 links are no longer actual. They have got changed formats... You need find blockexploprers sites that accepts http get requests like http:///rbc/blocks/ for example

And check your redis connection.

mario1987 commented 7 years ago

@vagabondan Its making a connection on the CS it says [CoiniumServ.Persistance.Providers.Redis.RedisProvider] [ReddByte] Redis storage initialized: 212.168.1.213:50580, v{2:l}.

vagabondan commented 7 years ago

Oh, I see you're mining well, so my mission is accomplished:) Good dreams ;) image

mario1987 commented 7 years ago

Yes the mining is accomplished now to get CS seeing blocks pending and payouts tnx by the way

vagabondan commented 7 years ago

@mario1987 look at your debug.log to get the answer.

mario1987 commented 7 years ago

@vagabondan I am using redis on the same system as pool will see how it goes

mario1987 commented 7 years ago

@vagabondan I have done so but not finding anything. the thing that I did found was in the CS API /api/pool/{coin} I found this
"blocks": { "pending": 0, "confirmed": 0, "orphaned": 0, "total": 0, "latest": [], "latestPaid": [] }

I think I am missing something but don't know what

vagabondan commented 7 years ago

@mario1987 You are missing to check debug.log

mario1987 commented 7 years ago

@vagabondan I already checked the debug.log. But i will check it again. And this issue can be closed it is solved. tnx

Virtuworks commented 7 years ago

Guys - your problem here is missing support for Masternodes here is a sample implementation I've solved this issue with the following process:

https://github.com/dashpay/node-stratum-pool/pull/1