Comments (29)
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
from ethash-mining-pool.
Youll also need to install nginx. After installing nginx, and after building the frontend, go to the pool main folder /ETCpool and run this command ( sudo cp /misc/nginx-default.conf /etc/nginx/sites-available/default ) Then run ( sudo nano /etc/nginx/sites-available/default ) and you
ll see the following
`
upstream api {
server 127.0.0.1:8080; (Here you need to change the IP 127.0.0.1 with your IP used in the api.json file)
}
server {
listen 0.0.0.0:80;
root /path/to/pool/www/dist; (Your path to pool - /home/yourUsername/ETCpool/www/dist)
index index.html index.htm;
server_name localhost;
location /api {
proxy_pass http://api;
}
location / {
try_files $uri $uri/ /index.html;
}
}
`
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
from ethash-mining-pool.
Same error here
from ethash-mining-pool.
me too util/util.go:38:16: undefined: common.ToHex
from ethash-mining-pool.
github.com/techievee/ethash-mining-pool/util
github.com/techievee/ethash-mining-pool/util
util/util.go:38:16: undefined: common.ToHex
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2
from ethash-mining-pool.
please help solved problem
from ethash-mining-pool.
Work :D
http://startmining.pl/
from ethash-mining-pool.
What is solution?
from ethash-mining-pool.
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
make: *** [all] Error 2
from ethash-mining-pool.
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 goGot the same problem with
Makefile:10: recipe for target 'all' failed make: *** [all] Error 2
got the same error, bro how to fix it?
from ethash-mining-pool.
mp-classic/ETCpool working ETC pool with charts and modified frontend. Have fun
from ethash-mining-pool.
from ethash-mining-pool.
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)
Actually this was the first fork i was able to compile but i dont unknown how to run it.
BTW, i known its a hard work make a instructions tutorial. If you could give me some clues to follow I think it's enough.
Thanks in advance
from ethash-mining-pool.
I could set it up for you in couple of minutes. You should have a up and running VM with SSD, minimum 4 core vCPU (recommended 8vCPU) and 8GB ram at minimum. From there the pool takes about few minutes and the blockchain sync should take about few hours (2 to 6 hours). The only thing remaining is the look of the website pool to get it done as you like. You have attached to this email some screenshots that were made with the pool interface. Best regards, Cristian Vasiliu CIS
…
________________________________ From: Teleloco @.> Sent: Tuesday, March 22, 2022 1:38:58 AM To: techievee/ethash-mining-pool @.> Cc: cristianvsl @.>; Comment @.> Subject: Re: [techievee/ethash-mining-pool] Make problem (#7) 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) Actually this was the first i was able to compile but i dont unknown how to run it. Thanks in advance — Reply to this email directly, view it on GitHub<#7 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARZGZD5CQPWPV3CCVYGS23LVBEQDFANCNFSM4TLLHYAQ. You are receiving this because you commented.Message ID: @.***>
Thanks for ur offer, but i dont trust anyone. Its my deffect. But if u want to help here i would really apreciate that.
Regards
from ethash-mining-pool.
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.
from ethash-mining-pool.
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.
from ethash-mining-pool.
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.
from ethash-mining-pool.
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.
from ethash-mining-pool.
I have saved the README.md with all the steps. Check it out
from ethash-mining-pool.
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.
I thought that only with the config.json I could get the system up and running even without a page. So, is the pool executed several times with different configuration files such as payments.json for that to work, as a module?
from ethash-mining-pool.
Running every json separate is easier to know when or if any of the modules have crashed so you can restart it.
Before building the frontend you need to change the IP's from: api.json, proxy.json, unlocker.json, payouts.json and from /www/config/environment.json. Where you see the IP 0.0.0.0, do not change it. Same if you see 127.0.0.1. Basically you`d need to change "etc.miningpub.uk" where you see it in any of the config files.
from ethash-mining-pool.
After cloning the pool, did you run ( make ) command?
from ethash-mining-pool.
Yeah, in api.json i've changed all adress to localhost (127.0.0.1)
And, yes, after cloning i run make and was succesful. The changes, i assume mean to be before of make?
from ethash-mining-pool.
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.
from ethash-mining-pool.
Having 16vCores you should set
// Set to the number of CPU cores of your server
"threads": 2,
for each module.
Later on you`ll learn that the payouts module can be run only once a day so it doesn need to run continuosly.
from ethash-mining-pool.
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.
Thank u man. You explained it to me down to the last detail.
One last question, about bandwith, 60MB/s simmetrics is enough?
from ethash-mining-pool.
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 dont have environment.js in that path. is strictly necessary? Where i can find it?
Seems like a lot of work for me, but is good to learn
from ethash-mining-pool.
Okay,
Let's take it step by step.
- git clone https://github.com/mp-classic/ETCpool.git
- cd ETCpool
- chmod 775 /build/env.sh
- cd ..
- make
- cd www
- cd config
- nano environment.js (modify the IP's)
- cd .. (to go back to www folder)
- chmod 775 build.sh
- ./build.sh (and wait)
- After the build is done, install nginx and follow the steps ive already gave to you in the above comments!
from ethash-mining-pool.
Before doing the above, make sure you have nodejs installed (use nvm from github) and [email protected] is also installed.
Also before doing the above steps do this:
npm install -g [email protected]
npm install -g bower
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
npm install
bower install
from ethash-mining-pool.
Related Issues (14)
- Insufficient funds for gas * price + value
- 404 page not found error @ localhost:8888
- Error in new blocks
- SSL Cert Issue
- ask a question
- make: *** [Makefile:10: all] Error 1 HOT 1
- Contribution not working properly! Last N Shares!
- Hi, QKC
- How can i open solo mining pool for ETC with your fork?
- Exchange collection functionality no longer works with coinmarketcap.com HOT 9
- Missing www files HOT 1
- Plase update you version HOT 1
- build/env.sh missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethash-mining-pool.