BinaryExpr / spectre-miner

A miner for Spectre Network
4 stars 0 forks source link

Error in the bridge #3

Open rgb1380 opened 1 month ago

rgb1380 commented 1 month ago

When I run the miner, it gets disconnected from the bridge every couple of seconds. The following is logged in the bridge: Note: I am using ubuntu 22.04LTS. It seems to complain about an invalid character. See the log below.

2024-07-16T11:01:52Z info hosting prom stats on :2114/metrics {"server": "prometheus"} 2024-07-16T11:01:52Z info checking spectred sync state {"component": "spectreapi:10.161.0.2:18110"} 2024-07-16T11:01:52Z info spectred synced, starting server {"component": "spectreapi:10.161.0.2:18110"} 2024-07-16T11:01:55Z info new client connecting - 10.161.0.49 {"component": "stratum", "address": ":5555"} 2024-07-16T11:01:55Z info client authorized, address: spectre:qr0e9z7spc4j59qxvcxtj3k9p709zfrycpspjgkwxxx9fz2hux9fv0922nqz3 {"component": "stratum", "address": ":5555", "client": "10.161.0.49", "client_id": 1, "worker": "test", "addr": "spectre:qr0e9z7spc4j59qxvcxtj3k9p709zfrycpspjgkwxxx9fz2hux9fv0922nqz3"} 2024-07-16T11:01:55Z info client subscribed {"component": "stratum", "address": ":5555", "client": "10.161.0.49", "client_id": 1, "worker": "test", "addr": "spectre:qr0e9z7spc4j59qxvcxtj3k9p709zfrycpspjgkwxxx9fz2hux9fv0922nqz3", "context": "{\"RemoteAddr\":\"10.161.0.49\",\"WalletAddr\":\"spectre:qr0e9z7spc4j59qxvcxtj3k9p709zfrycpspjgkwxxx9fz2hux9fv0922nqz3\",\"WorkerName\":\"test\",\"RemoteApp\":\"spectre-miner/0.6.19\",\"Id\":1,\"Logger\":{},\"State\":{\"Jobs\":{},\"JobLock\":{}},\"Extranonce\":\"\"}"} 2024-07-16T11:01:56Z warn weak block {"component": "stratum", "address": ":5555", "client": "10.161.0.49", "client_id": 1, "worker": "test", "addr": "spectre:qr0e9z7spc4j59qxvcxtj3k9p709zfrycpspjgkwxxx9fz2hux9fv0922nqz3"} 2024-07-16T11:01:57Z error error unmarshalling event {"component": "stratum", "address": ":5555", "client": "10.161.0.49", "client_id": 1, "worker": "test", "addr": "spectre:qr0e9z7spc4j59qxvcxtj3k9p709zfrycpspjgkwxxx9fz2hux9fv0922nqz3", "raw": "{\"id\":7,\"method\":\"mining.submit\",\"params\":[\"test\",\"3\",\"59103bc3b720640b\"]}{\"id\":7,\"method\":\"mining.submit\",\"params\":[\"test\",\"3\",\"2ed0401f93f2a0dd\"]}"} 2024-07-16T11:01:57Z error error reading from socket {"component": "stratum", "address": ":5555", "client": "10.161.0.49", "client_id": 1, "worker": "test", "addr": "spectre:qr0e9z7spc4j59qxvcxtj3k9p709zfrycpspjgkwxxx9fz2hux9fv0922nqz3", "error": "invalid character '{' after top-level value"} 2024-07-16T11:01:57Z info disconnecting {"component": "stratum", "address": ":5555", "client": "10.161.0.49", "client_id": 1, "worker": "test", "addr": "spectre:qr0e9z7spc4j59qxvcxtj3k9p709zfrycpspjgkwxxx9fz2hux9fv0922nqz3"} 2024-07-16T11:01:57Z info client disconnecting - 10.161.0.49 {"component": "stratum", "address": ":5555"} 2024-07-16T11:01:57Z info removing client 1 2024-07-16T11:01:57Z info removed client 1

BinaryExpr commented 1 month ago

Increase the value of min_share_diff in config.yaml