btcpool-go-modules-ABANDONED icon indicating copy to clipboard operation
btcpool-go-modules-ABANDONED copied to clipboard

switcher切换崩溃问题?

Open bxlkm opened this issue 6 years ago • 1 comments

目前状态是同一台主机上启动3个switcher分别设置3个端口,矿机后台分别配置同一个地址3个端口,运行一段时间后,停掉正在连接的switcher,让矿机自动切换连接其他2个地址,有时会出现自动崩溃现象。请大佬说明下矿机和switcher这样的工作方式是怎么样的;ths。

bxlkm avatar Jan 24 '19 08:01 bxlkm

目前stratumSwitcher模块实现的非常不好,并且很多问题除非重写难以解决:

  1. 内存占用过多。我不知道为什么。
  2. 断线重连的时候可能会崩溃。
  3. 断线重连的时候可能会给矿机发送不完整的JSON消息,导致某些矿机掉出AsicBoost模式。

所以,目前我们已经将switcher的所有功能都移植到了sserver本身上面,并且stratumSwitcher组件已经不再维护。 看这个配置文件了解sserver的多链模式: https://github.com/btccom/btcpool/blob/master/src/bitcoin/cfg/sserver(multi-chains).cfg 它依然使用与stratumSwitcher兼容的币种切换控制组件(init-user-coin和switcher-api)。把case_insensitive = true;改成case_insensitive = false;就可以和旧版init-user-coinswitcher-api部署兼容。

YihaoPeng avatar May 06 '19 05:05 YihaoPeng