open-eth-pool-script-install icon indicating copy to clipboard operation
open-eth-pool-script-install copied to clipboard

couple changes

Open honorkeles opened this issue 4 years ago • 1 comments

I am hoping to build the pool with your script. I want to add a small entry. you need to add below before "make" for the pool.

in rpc.go you need to change line 15 from "github.com/ethereum/go-ethereum/common" TO "github.com/ethereum/go-ethereum/common/hexutil" Then on line 180 change rpcResp, err := r.doPost(r.Url, "eth_sign", []string{from, common.ToHex(hash[:])}) TO: rpcResp, err := r.doPost(r.Url, "eth_sign", []string{from, hexutil.Encode(hash[:])})

In util.go line 10 add: "github.com/ethereum/go-ethereum/common/hexutil"

line 38 change return string(common.ToHex(diff1.Bytes())) TO: return string(hexutil.Encode(diff1.Bytes()))

honorkeles avatar Jan 17 '21 05:01 honorkeles

Sorry for the delayed response. You can freely create a pull request for it. I'll merge it.

HamzaAnis avatar Feb 01 '21 14:02 HamzaAnis