Skip to content

Instantly share code, notes, and snippets.

@Unitech
Last active September 17, 2023 13:43
Show Gist options
  • Save Unitech/53b582dc65d8141af8448f8985f67661 to your computer and use it in GitHub Desktop.
Save Unitech/53b582dc65d8141af8448f8985f67661 to your computer and use it in GitHub Desktop.
services:
ks_bridge:
build:
context: .
no_cache: true
container_name: ks_bridge
restart: unless-stopped
user: "0"
command:
- '-stats=false'
- '-kaspa=host.docker.internal:16110'
- '-stratum=:5555' # port to which miners should connect
- '-prom=:2114' # port at which raw prometheus stats will be available
- '-mindiff=2048' # minimum share difficulty to accept from miner(s)
- '-vardiff=true' # enable auto-adjusting variable min diff
- '-pow2clamp=true' # limit diff to 2^n (e.g. 64, 128, 256, etc)
- '-sharespermin=20' # number of shares per minute the vardiff engine should target
- '-vardiffstats=false' # include vardiff stats readout every 10s in log
- '-extranonce=2' # size in bytes of extranonce
- '-blockwait=3s' # time in to wait before manually requesting new block
ports:
- 5555:5555
- 2114:2114
extra_hosts:
- host.docker.internal:host-gateway
2023-09-17T12:33:47Z info disconnecting {"component": "stratum", "address": ":5555", "client": "8.219.6", "client_id": 1, "worker": "", "addr": "kaspa:qr2gxmun87mc8wt8adegy6fulvpfdjgsa8zcdxyulvzzr2utra3jv4s8txkq9"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x571705]
goroutine 90 [running]:
math/big.(*Int).Cmp(0xc000125420?, 0xc000b02380?)
/usr/local/go/src/math/big/int.go:324 +0x25
github.com/onemorebsmith/kaspastratum/src/kaspastratum.(*shareHandler).HandleSubmit(0xc000648000, 0xc0002f2630, {{0xa0d120, 0xc000041c68}, {0x0, 0x0}, {0xc000041c70, 0xd}, {0xc000b3e200, 0x3, ...}})
/go/src/app/src/kaspastratum/share_handler.go:206 +0x3fa
github.com/onemorebsmith/kaspastratum/src/kaspastratum.ListenAndServe.func2(0xc0002f2630, {{0xa0d120, 0xc000041c68}, {0x0, 0x0}, {0xc000041c70, 0xd}, {0xc000b3e200, 0x3, 0x4}})
/go/src/app/src/kaspastratum/stratum_server.go:101 +0x7d
github.com/onemorebsmith/kaspastratum/src/gostratum.(*StratumListener).HandleEvent(...)
/go/src/app/src/gostratum/stratum_listener.go:116
github.com/onemorebsmith/kaspastratum/src/gostratum.spawnClientListener.func1({0xc000b05d40, 0x8b})
/go/src/app/src/gostratum/stratum_client.go:25 +0x2dc
github.com/onemorebsmith/kaspastratum/src/gostratum.readFromConnection({0xc28008, 0xc000126058}, 0xc000b59f00)
/go/src/app/src/gostratum/stratum_client.go:59 +0x27b
github.com/onemorebsmith/kaspastratum/src/gostratum.spawnClientListener(0xc0002f2630, {0xc28008, 0xc000126058}, 0xc00012a2a0)
/go/src/app/src/gostratum/stratum_client.go:19 +0xe9
created by github.com/onemorebsmith/kaspastratum/src/gostratum.(*StratumListener).newClient
/go/src/app/src/gostratum/stratum_listener.go:110 +0x3de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment