From 5d22023d192b3b5b9bfcaa5186eb5ba42cd3d0c3 Mon Sep 17 00:00:00 2001 From: junderw Date: Fri, 19 Aug 2022 01:05:02 +0900 Subject: [PATCH 1/2] Fix times Co-authored-by: slaninas --- backend/src/api/difficulty-adjustment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/difficulty-adjustment.ts b/backend/src/api/difficulty-adjustment.ts index 1f85fdb80..6d188266c 100644 --- a/backend/src/api/difficulty-adjustment.ts +++ b/backend/src/api/difficulty-adjustment.ts @@ -47,8 +47,8 @@ class DifficultyAdjustmentApi { } const timeAvg = timeAvgMins * 60 * 1000 ; - const remainingTime = (remainingBlocks * timeAvg) + (now * 1000); - const estimatedRetargetDate = remainingTime + now; + const remainingTime = remainingBlocks * timeAvg; + const estimatedRetargetDate = remainingTime + now * 1000; return { progressPercent, From 5ab05e4e12edd2763b59557918f2ba953890ff56 Mon Sep 17 00:00:00 2001 From: junderw Date: Fri, 19 Aug 2022 01:12:53 +0900 Subject: [PATCH 2/2] Add contributors/junderw.txt --- contributors/junderw.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 contributors/junderw.txt diff --git a/contributors/junderw.txt b/contributors/junderw.txt new file mode 100644 index 000000000..23f0e9a95 --- /dev/null +++ b/contributors/junderw.txt @@ -0,0 +1,3 @@ +I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of August 19, 2022. + +Signed: junderw