mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
misc improvements from blitzpool
This commit is contained in:
@@ -81,10 +81,10 @@ describe('StratumV1ClientStatistics', () => {
|
||||
expect(statistics.getSuggestedDifficulty(64)).toBeNull();
|
||||
});
|
||||
|
||||
it('should lower difficulty when a miner has not submitted shares for several minutes', () => {
|
||||
jest.setSystemTime(new Date('2026-05-06T12:06:00Z'));
|
||||
it('should lower difficulty when a miner has not submitted shares for more than a minute', () => {
|
||||
jest.setSystemTime(new Date('2026-05-06T12:01:01Z'));
|
||||
|
||||
expect(statistics.getSuggestedDifficulty(64)).toBe(8);
|
||||
expect(statistics.getSuggestedDifficulty(64)).toBe(12);
|
||||
});
|
||||
|
||||
it('should increase difficulty for rapid submissions', async () => {
|
||||
|
||||
Reference in New Issue
Block a user