Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Built-in stratum server (pool) #1

Open
DeckerSU opened this issue Jun 19, 2021 · 1 comment
Open

[feature] Built-in stratum server (pool) #1

DeckerSU opened this issue Jun 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@DeckerSU
Copy link
Owner

DeckerSU commented Jun 19, 2021

This issue is created for public testing new feature - built-in stratum pool. To test in you'll need build komodod from stratum-dev branch as usually, and launch it with stratum server specific keys:

Stratum server options:

  -stratum
       Enable stratum server (default: off)

  -stratumbind=<addr>
       Bind to given address to listen for Stratum work requests. Use
       [host]:port notation for IPv6. This option can be specified multiple
       times (default: bind to all interfaces)

  -stratumport=<port>
       Listen for Stratum work requests on <port> (default: 8771 or testnet:
       8771)

  -stratumallowip=<ip>
       Allow Stratum work requests from specified source. Valid for <ip> are a
       single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0)
       or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified
       multiple times

For example. to launch KMD with stratum pool on default (rpcPort + 1000) stratum port 8771, you'll need to execute:

./src/komodod -stratum &

And for launch DEX assetchain with stratum on port 10216:

./src/komodod -ac_name=DEX -ac_supply=999999 -addnode=95.213.238.98 -stratum -stratumport=10216 &

Then point your favorite miner or ASIC on stratum+tcp://stratum_ip:stratum_port. Don't forget to specify username as valid KMD address, like RDeckerSubnU8QVgrhj27apzUvbVK3pnTk and any password (x, for example).

Will appreciate for any comments in this topic from users tried new feature. Thx in advance!

p.s. If you'll found a block address you specified in miner will receive blockreward. For example, if you'll launch ccminer as:

./ccminer --algo=equihash --url=stratum+tcp://127.0.0.1:10216 --user=RDeckerSubnU8QVgrhj27apzUvbVK3pnTk --pass=x 

And it will found a block, address RDeckerSubnU8QVgrhj27apzUvbVK3pnTk will receive a reward.

@DeckerSU DeckerSU added the enhancement New feature or request label Jun 19, 2021
@DeckerSU
Copy link
Owner Author

MORTY example:

./komodod -ac_name=MORTY -ac_supply=90000000000 -ac_reward=100000000 -ac_cc=3 -ac_staked=10 -addnode=95.217.44.58 -addnode=138.201.136.145 -stratum

Stratum server will listen on rpc.63812 + 1000 port, so, stratum server port will be 64812.

Make sure that we have connections:

komodo-cli -ac_name=MORTY getinfo | jq .connections

And our latest block corresponding to explorer, i.e. chain is 100% synced.

Then start a miner:

./ccminer --algo=equihash --url=stratum+tcp://127.0.0.1:64812 --user=RDeckerSubnU8QVgrhj27apzUvbVK3pnTk --pass=x 

And after some time we will get a first block.

image

DeckerSU pushed a commit that referenced this issue Jul 29, 2021
Tokel ccv2 coinbase fix - Will let Alright know to test on this branch
DeckerSU added a commit that referenced this issue Jul 29, 2021
- 3rd-party pubkeys for S5 added
- S5 starts from nS5Timestamp = 1627466969 (TOKEL block #1 timestamp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant