Browse Source

test ethf api.json "network": "ethereumFair",

test ethf  api.json "network": "ethereumFair",
master
yuriy0803 2 years ago
parent
commit
086bd84472
  1. 8
      proxy/blocks.go

8
proxy/blocks.go

@ -1,6 +1,7 @@
package proxy package proxy
import ( import (
"fmt"
"log" "log"
"math/big" "math/big"
"strconv" "strconv"
@ -69,6 +70,13 @@ func (s *ProxyServer) fetchBlockTemplate() {
pendingReply.Difficulty = util.ToHex(s.config.Proxy.Difficulty) 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{ newTemplate := BlockTemplate{
Header: reply[0], Header: reply[0],
Seed: reply[1], Seed: reply[1],

Loading…
Cancel
Save