-
Notifications
You must be signed in to change notification settings - Fork 103
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
Make problem #7
Comments
Same error here |
me too util/util.go:38:16: undefined: common.ToHex |
github.com/techievee/ethash-mining-pool/util github.com/techievee/ethash-mining-pool/utilutil/util.go:38:16: undefined: common.ToHex |
please help solved problem |
Work :D |
What is solution? |
If you are trying to make open-ethereum-pool you will need to make changes in util.go and rpc.go to build it. 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())) then make clean and make and you should be good to go |
Got the same problem with Makefile:10: recipe for target 'all' failed |
got the same error, bro how to fix it? |
mp-classic/ETCpool working ETC pool with charts and modified frontend. Have fun |
Can u please help me in config.json ? I'm lost there, i've copied api.json to test but getting Syntax error. I'm not a programmer but i don't see nothing wrong in the renamed config.json (api.json) |
Thanks for ur offer, but i dont trust anyone. Its my deffect. But if u want to help here i would really apreciate that. |
You are very kind. What can I offer in exchange for you to make a video of no more than 5' and upload it to YT with the steps? You can put the link here. And what you want in return, first. |
U make me smile in a bad day. And now i'm sure that still exist good people out there. Thanks u. I really apreciate that. |
I have blockchain Classic up to date. Ubuntu on VM with 16 vCPU, 32gb RAM and 2tb of storage ( zvol, zraid3). Fork of mp-classic/ETCPool compiled, and all dependencies installed. |
Did you change all the ip's? including ip's from /www/config/environment.js? after changing the ip's from /www/config/environment.js you have to go back to the directory /www and run ( build.sh ). If you didnt got any "permission denied" from env.sh and build.sh, you`re ready to start the pool with this command ( ./build/bin/open-etc-pool-friends api.json ) You should run it like this: screen -S api ./build/bin/open-etc-pool-friends api.json. Same command for proxy.json, payouts.json, unlocker.json. |
I have saved the README.md with all the steps. Check it out |
No, i did not change the ip's of anything. I didn't understand how it works until you just explained it to me. So, I have to configure the frontend before executing something? It starts to make sense. |
Running every json separate is easier to know when or if any of the modules have crashed so you can restart it. |
After cloning the pool, did you run ( make ) command? |
Yeah, in api.json i've changed all adress to localhost (127.0.0.1) |
You ` server {
} After this hit CTRL + x and Y to save it. From this point if everything is alright, start running the pool modules one by one with "screen" command. To exit a screen (after running ./build/bin/open-etc-pool-friends api.json for example) just hit CTRL + a + d. To bring up any of the modules on screen you type: screen -r api or screen -r proxy and so on. Let me know how it goes and maybe share a link to the pool frontend. All the things i`ve said to you here, looks like a lot maybe but in practice should take you about few minutes to do everything. Cheers |
Attention tho to each module that only part of the code is "true". on api.json only the api part of the code is enabled, same for the rest of the json's. |
Having 16vCores you should set Later on you`ll learn that the payouts module can be run only once a day so it doesn need to run continuosly. |
Now I think I can get it working. My plan is to firstly run the pool closely. For me and my friends, if everything works fine, pay to somebody to make a custom front end, assign a public domain domain and share. So in the future i can add more coins, like RVN and ETH. All this, if I have your permission. |
I dont have environment.js in that path. is strictly necessary? Where i can find it? |
Okay, Let's take it step by step.
|
Before doing the above, make sure you have nodejs installed (use nvm from github) and ember-cli@2.13 is also installed. |
I have a problem compiling open-ethereum-pool. Previously, everything was without problems, i.e. on 4 November 2020 and on 5 November 2020, something went together.
ERROR
util/util.go:38:16: undefined: common.ToHex
The text was updated successfully, but these errors were encountered: