$ git clone https://github.com/Bytom/btmcpool.git $GOPATH/src/github.com/bytom/btmcpool
$ cd $GOPATH/src/github.com/bytom/btmcpool/stratum/btmc/cmd
$ go build -o stratum_btmc
$ cd $GOPATH/src/github.com/bytom/btmcpool/stratum/btmc/conf
$ vim prod.yml
set node.url
with the bytom-class node url, then leave other parameters with default value.
$ cd $GOPATH/src/github.com/bytom/btmcpool/stratum/btmc/cmd
$ ./stratum_btmc -config=../conf/prod.yml
mode: prod # run mode, defines logger level and so on
# server
stratum.id: 0 # session offset id for different miner
stratum.port: 9119 # miner connection
stratum.max_conn: 32768 # max connection of miner
stratum.default_ban_period: 10m # ban malicious miner, 0s means disable
# session
session_timeout: 5m # connection timeout
session.sched_interval: 0 # work braodcast interval, 0 means braodcast when new work coming
session.diff: 1050000 # diff for miner
# node
node.url: http://127.0.0.1:9888 # bytom-classic node url
node.name: btmc_mainnet # bytom-classic node name, set with default
node.sync_interval: 100ms # interval of getting work from node
service.port: 11002 # gin server port