Closed vinnielima closed 2 years ago
This seems to be an issue with new jobs not being rebroadcasted when a block is found.
Code that notifies new jobs to miners (ErgoPool.cs):
Needs to be invoked when a block is found (in ErgoJobManager.cs):
The problem is if you look in update job it sends this log message: $"Detected new block {job.Height} [{via}]" The thing is we've seen this log message and the miners continue to send old jobs even after this log message is sent For example in the log it prints out this: [2021-11-18 22:43:16.4095] [I] [ergo1] Detected new block 115171 [POLL] But then it continues to receive old jobs for 115159
Logs from testnet, you can see candidate blocks being found and shortly after jobs being submitted for that same block.
Stratum: https://vvlsystems-my.sharepoint.com/:f:/p/vlima/EiE-uz8Z0rtLkKEP7EFkDB8Bwsyxv855vuYpqgtDj7NLLw?e=TLbxMt Node (v 16): https://vvlsystems-my.sharepoint.com/:u:/p/vlima/EZXNkCF9vc9AvPTzDnwdyEQBhaSrCgyzXApPY6hvwBFK_A?e=NdSvFQ
Here's an example you will find in the above log.
Block candidate mined:
Shortly after, submitted share for the old block:
Describe the bug We have experienced this error three times now, from different stratum and different node combinations.
On Miningcore stratum:
On the Ergo node:
To Reproduce Not sure how to reproduce this.
Expected behavior
Screenshots See above
OS This is on Ubuntu 20.04
Additional context Multiple stratum and nodes deployed, persisting to same Postgresql back end. Stratum nodes are paired with their own Nodes. Nodes have same pool wallet loaded, same API key used.