Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tranvictor/cd1c3ed3147edb8578ef24d1ebb03592 to your computer and use it in GitHub Desktop.
Save tranvictor/cd1c3ed3147edb8578ef24d1ebb03592 to your computer and use it in GitHub Desktop.
Trong tru?ng h?p server b? restart, mình c?n ch?y l?i 2 chuong trình: 1 là Parity, 2 là SmartPool
1. Parity:
B?m phím windows r?i gõ "cmd" và ch?n "Command line prompt" d? m? chuong trình command line (nó là cái chuong trình màu den mà e v?n dùng) sau dó ch?y các l?nh sau:
1. cd C:\"Program Files"\Ethcore\Parity
2. parity.exe --chain classic --warp --cache-size 2048 --ui-no-validation --jsonrpc-apis web3,eth,net,parity,traces,rpc,parity_set
Sau dó a d? cho nó ch?y và d?ng t?t command line window này di.
2. SmartPool:
B?m phím windows r?i gõ "cmd" và ch?n "Command line prompt" d? m? chuong trình command line (nó là cái chuong trình màu den mà e v?n dùng) sau dó ch?y các l?nh sau:
1. cd C:\Go\src\github.com\smartpool\smartpool-client
2. smartpool.exe --keystore C:\Users\sv\AppData\Roaming\Parity\Ethereum\keys\classic --diff 4380000000 --gateway 0x83f0a55a11f2767643d323ab5c06f5cb9ac05f4e --threshold 3040 --spcontract 0xdead49c9398a34ca8bacaaab0e1af098f0b20733 --miner 0x0050521aCB69611f5cB00618A60c64AEdB1161BA --gasprice 10
Sau dó a gõ password và enter. N?u m?i th? ch?y dúng thì a s? nhìn th?y 1 s? dòng log báo là server dang ch?y b?ng ti?ng anh.
==> Ð?n bu?c k?t n?i các rigs v?i smartpool client.
B1. A ph?i xác d?nh IP c?a server:
A có th? m? command line prompt nhu các bu?c trên và gõ: "ipconfig" nó s? hi?n ra nhu th? này:
Windows IP Configuration
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : Home
Link-local IPv6 Address . . . . . : fe80::3980:13c8:7e5c:15f%5
IPv4 Address. . . . . . . . . . . : 192.168.1.26 <======================= Ðây chính là IP c?a server trong network c?a a
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Tunnel adapter isatap.Home:
Connection-specific DNS Suffix . : Home
Link-local IPv6 Address . . . . . : fe80::5efe:192.168.1.26%2
Default Gateway . . . . . . . . . :
Tunnel adapter Local Area Connection* 3:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:90d7:1c4f:454:8b98:3f7e
Link-local IPv6 Address . . . . . : fe80::1c4f:454:8b98:3f7e%4
Default Gateway . . . . . . . . . : ::
B2. A ch? c?n dùng -epool http://<IP>:1633/<rig_name>/ d? connect rig v?i smartpool
Trong dó <IP> là ip c?a server dã xác d?nh ? bu?c trên. Ví d? 192.168.1.26
<rig_name> là tên c?a rig, ví d? his-470, his-470-ss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment