open-ethereum-pool icon indicating copy to clipboard operation
open-ethereum-pool copied to clipboard

compiling issue

Open qbittex opened this issue 3 years ago • 1 comments

i face issue on when i click make

github.com/ethereum/ethash

../../../../pkg/mod/github.com/ethereum/[email protected]/ethash.go:436:8: undefined: "github.com/ethereum/go-ethereum/crypto".Sha3Hash Makefile:10: recipe for target 'all' failed make: *** [all] Error 2

please any one help

go version go1.13.15 linux/amd64

qbittex avatar Nov 10 '21 10:11 qbittex

File path: build/_workspace/src/github.com/sammy007/open-ethereum-pool/util/util.go

Alter util.go Line 11 Accession "github.com/ethereum/go-ethereum/common/hexutil"

Line 39 Find: return string(common.ToHex(diff1.Bytes())) Alter: return string(hexutil.Encode(diff1.Bytes()))

File path: build/_workspace/src/github.com/sammy007/open-ethereum-pool/util/util.go

Alter rpc.go Line 15 Find: "github.com/ethereum/go-ethereum/common" Alter: "github.com/ethereum/go-ethereum/common/hexutil"

Line 180 Find: rpcResp, err := r.doPost(r.Url, "eth_sign", []string{from, common.ToHex(hash[:])})

Alter: rpcResp, err := r.doPost(r.Url, "eth_sign", []string{from, hexutil.Encode(hash[:])})

English is not good. It's all machine translation. I hope it can help you!

yangjunyangzihan avatar Nov 27 '21 16:11 yangjunyangzihan