Skip to content

Commit

Permalink
Add Dynamic Argon2d algorithm to YIIMP Stratum Pool (#301)
Browse files Browse the repository at this point in the history
- Use dynode instead of masternode for Dynamic
- Updates Argon2d hash library (https://github.com/P-H-C/phc-winner-argon2)
- Adds argon2d-dyn.conf sample template file
- Code contributed by @BigEvilSoloMiner from Discord.
- testing and contributions by @R3D5H1RT from Discord
- testing and support by @insaneITgeek from Discord.
- Dynamic test stratum pool: https://testpool.dualityblocks.com
  • Loading branch information
AmirAbrams authored and tpruvot committed Sep 4, 2018
1 parent f93b3df commit cc45681
Show file tree
Hide file tree
Showing 35 changed files with 3,131 additions and 2,237 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ web/assets/
*.rej
*.orig
.idea/*
web/yaamp/.idea/
web/yaamp/.idea/
*.0
Loading

3 comments on commit cc45681

@crackfoo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried this and only results in:

2018-09-05 11:08:26 ERROR: CheckProofOfWork(): hash doesn't match nBits
2018-09-05 11:08:26 ERROR: CheckBlockHeader(): proof of work failed
2018-09-05 11:08:26 ERROR: ProcessNewBlock: AcceptBlock FAILED

Any ideas?

@phm87
Copy link

@phm87 phm87 commented on cc45681 Sep 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on discord, I was not able to reproduce the bug on testnet, we'll try to understand why it failed on mainet and worked on testnet.

tail -f argon2d-dyn.log

15:29:09: *** ACCEPTED DynamicTest 8201 (diff 0.000771964) by 87.66.69.194 (id: 30)
15:29:09: *** CONFIRMED 8201 : 0000050f609d7f7bbeeed607d7d564f180fd53c38cb1aae8972c794a1eaa17a6

grep 8201 -A 6 -B 6 debug.log

--
2018-09-05 13:29:02
2018-09-05 13:29:02 ProcessNewBlock : ACCEPTED
2018-09-05 13:29:02 CDynodePayments::FillBlockPayee: Found Dynode to pay!
2018-09-05 13:29:02 CDynodePayments::FillBlockPayee -- Dynode payment 350.11111 to DSbbZcqHJqr2ZHxoj1jR4aGMZtMzxdrsen
2018-09-05 13:29:02 CreateNewBlock(): total size 1000 txs: 0 fees: 0 sigops 100
2018-09-05 13:29:02 CreateNewBlock(): Computed Miner Block Reward is 3.50693 DYN
2018-09-05 13:29:03 UpdateTip: new best=0000050f609d7f7bbeeed607d7d564f180fd53c3 8cb1aae8972c794a1eaa17a6 height=8201 log2_work=31.071119 tx=8242 date=2018-0 9-05 13:29:02 progress=0.999998 cache=0.0MiB(23tx)
2018-09-05 13:29:03
2018-09-05 13:29:03 AddToWallet 89d919a3a68a444cd3998fede6bec753e2043a33882601a3 2d9999dd8960fc1d new
2018-09-05 13:29:03 ProcessNewBlock : ACCEPTED
2018-09-05 13:29:03 CDynodePayments::FillBlockPayee: Failed to detect Dynode to pay
2018-09-05 13:29:03 CreateNewBlock(): total size 1000 txs: 0 fees: 0 sigops 100
2018-09-05 13:29:03 CreateNewBlock(): Computed Miner Block Reward is 3.50693 DYN

@AmirAbrams
Copy link
Author

@AmirAbrams AmirAbrams commented on cc45681 Sep 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crackfoo , I deployed a new pool on mainnet (https://pool.dualityblocks.com) using this repo and was able to find a block after about 1 day. I am going to take down that pool soon since it was only used to test the code after being merged into this repo.

Can you send me an invite to your discord channel so we can discuss this further? My email is [email protected].

Please sign in to comment.