Skip to content

Commit 8ede3a5

Browse files
authored
Update main.pyw
1 parent d1584b6 commit 8ede3a5

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

main.pyw

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@ from signal import SIGINT , signal
44
from colorama import Back , Fore , Style
55
import context as ctx
66

7-
sock = None
7+
address='bc1qnk0ftxa4ep296phhnxl5lv9c2s5f8xakpcxmth'
8+
pool='solo.ckpool.org'
9+
port=3333
810

9-
with open(filename, 'r') as file:
10-
addresses = file.readlines()
11-
for address in addresses:
12-
address=address.strip()
11+
sock = None
1312

1413
def timer() :
1514
tcx = datetime.now().time()
1615
return tcx
1716

1817
print('Donate BTC to HCMLXOX:bc1qnk0ftxa4ep296phhnxl5lv9c2s5f8xakpcxmth')
1918
#Change it to yours address
20-
address='bc1qnk0ftxa4ep296phhnxl5lv9c2s5f8xakpcxmth'
19+
2120

2221
print(Back.BLUE , Fore.WHITE , 'BTC WALLET:' , Fore.BLACK , str(address) , Style.RESET_ALL)
2322

@@ -185,7 +184,7 @@ def bitcoin_miner(t , restarted = False) :
185184
return True
186185
def block_listener(t) :
187186
sock = socket.socket(socket.AF_INET , socket.SOCK_STREAM)
188-
sock.connect(('solo.ckpool.org' , 3333))
187+
sock.connect((pool , port))
189188
sock.sendall(b'{"id": 1, "method": "mining.subscribe", "params": []}\n')
190189
lines = sock.recv(1024).decode().split('\n')
191190
response = json.loads(lines[0])

0 commit comments

Comments
 (0)