Skip to content

Commit e1650df

Browse files
committed
removed unnecessary files
1 parent 3f2a1cb commit e1650df

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

doc/eth.md

-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ copy the geth service file to /etc/systemd/system/geth.service
2323

2424

2525
sudo apt install nginx -y fcgiwrap
26-
sudo systemctl restart nginx
2726

2827
copy default file to /etc/nginx/sites-enabled/default
2928

@@ -54,8 +53,6 @@ copy filter.service file to /etc/systemd/system/filter.service
5453
sudo systemctl start filter
5554
sudo systemctl enable filter
5655

57-
sudo sh -c "echo 'www-data ALL=(ALL) NOPASSWD: /usr/sbin/service filter restart' >> /etc/sudoers"
58-
5956
You need to create at least one account and use it as a base account for withdrawals
6057

6158
You need to edit app/models/worker/deposit_coin_address.rb , withdraw_coin.rb and app/services/coin_rpc.rb

eth/geth.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description=Ethereum go client
33

44
[Service]
55
Type=simple
6-
ExecStart=/usr/bin/geth --verbosity 3 --rpc --rpcaddr=0.0.0.0 --rpcport=8545 --rpcapi eth,personal,net,web3,db
6+
ExecStart=/usr/bin/geth --verbosity 3 --rpc --light --rpcaddr=0.0.0.0 --rpcport=8545 --rpcapi eth,personal,net,web3,db
77

88
[Install]
99
WantedBy=default.target

eth/total.cgi

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
echo "Content-type: text/html"
33
echo ""
44

5-
TOT=`geth attach rpc:http://127.0.0.1:8545 --exec 'loadScript("/home/ubuntu/total.js"); totBal() ;' | head -n 1`
5+
TOT=`geth attach rpc:http://127.0.0.1:8545 --exec 'loadScript("/var/www/total.js"); totBal() ;' | head -n 1`
66
echo $TOT
77
exit 0
88

0 commit comments

Comments
 (0)