From 086bd84472230712d635794888758e6c013f5272 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Sun, 29 Oct 2023 11:10:26 +0100 Subject: [PATCH] test ethf api.json "network": "ethereumFair", test ethf api.json "network": "ethereumFair", --- proxy/blocks.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proxy/blocks.go b/proxy/blocks.go index 031f033..13b429f 100644 --- a/proxy/blocks.go +++ b/proxy/blocks.go @@ -1,6 +1,7 @@ package proxy import ( + "fmt" "log" "math/big" "strconv" @@ -69,6 +70,13 @@ func (s *ProxyServer) fetchBlockTemplate() { pendingReply.Difficulty = util.ToHex(s.config.Proxy.Difficulty) + if s.config.Network == "ethereumFair" { + // Increase the variable height by 10,000,000 + height = height + uint64(10000000) + + // Format and assign the hexadecimal representation of height + pendingReply.Number = fmt.Sprintf("0x%x", height) + } newTemplate := BlockTemplate{ Header: reply[0], Seed: reply[1],