open-eth-pool-script-install
open-eth-pool-script-install copied to clipboard
couple changes
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()))
Sorry for the delayed response. You can freely create a pull request for it. I'll merge it.