Browse Source

Update miner.go

master
yuriy0803 3 years ago
parent
commit
8890050875
  1. 14
      proxy/miner.go

14
proxy/miner.go

@ -6,15 +6,17 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/common"
"github.com/etclabscore/go-etchash" "github.com/etclabscore/go-etchash"
"github.com/ethereum/go-ethereum/common"
) )
var ecip1099FBlockClassic uint64 = 11700000 // classic mainnet var (
var ecip1099FBlockMordor uint64 = 2520000 // mordor maxUint256 = new(big.Int).Exp(big.NewInt(2), big.NewInt(256), big.NewInt(0))
var uip1FEpoch uint64 = 22 // ubiq mainnet ecip1099FBlockClassic uint64 = 11700000 // classic mainnet
ecip1099FBlockMordor uint64 = 2520000 // mordor
var hasher *etchash.Etchash = nil uip1FEpoch uint64 = 22 // ubiq mainnet
hasher *etchash.Etchash = nil
)
func (s *ProxyServer) processShare(login, id, ip string, t *BlockTemplate, params []string) (bool, bool) { func (s *ProxyServer) processShare(login, id, ip string, t *BlockTemplate, params []string) (bool, bool) {
if hasher == nil { if hasher == nil {

Loading…
Cancel
Save