Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling issue #485

Open
qbittex opened this issue Nov 10, 2021 · 1 comment
Open

compiling issue #485

qbittex opened this issue Nov 10, 2021 · 1 comment

Comments

@qbittex
Copy link

qbittex commented Nov 10, 2021

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

@yangjunyangzihan
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants