-
Notifications
You must be signed in to change notification settings - Fork 14
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
Mining Module Modification #20
Comments
API Method Design Refer to this issue stacks-network/stacks-core#970 |
In order to implement the first feature: $ stacks-node start --config=.\conf\testnet-miner-conf.toml In order to find how it works. We follow the codebase of stacks-blockchain/testnet/stacks-node. At main.rs, starts the testnet runloop which will read config and set up neon node. Then it will call neon.rs which will check if the node is the miner or not and then initialize node. Then it will call neon_node.rs which will use the configuration to create a InitializedNeonNode. Then it will call new method and in this method #L688 it will process the information received by the node and construct mining transactions. Then we can see the detail of how to construct the mining transaction in #L558. In this method, the parameter related to the number of bitcoins(burn_fee_cap) burned is passed in. |
fixed by #113 |
Is your feature request related to a problem? Please describe.
In order to allow users to operate their own mining process more fine-grained and obtain more comprehensive mining-related information. We are considering the development of the following features.
Priority:
Adjust the amount of bitcoin burned in each PoB cycle in stacks-blockchain dynamically Dynamic control burn_fee in stacks-blockchain #15
A rpc method that allows others to get miner selection info after each block mined
Describe the solution you'd like
Right now, because of the missing APIs of stacks-blockchain stacks-network/stacks-core#1969 (comment). Left time is not enough for us to implement these features which are proposed in stacks-network/stacks-core#1969 (comment) before Mining Competition. In order to allow users to use the Mining Bot we constructed before the Mining Competition, we choose to modify stacks-node(https://github.com/blockstack/stacks-blockchain/tree/master/testnet/stacks-node) first to implement mining features of stacks-blockchain.
Describe alternatives you've considered
Additional context
Later, based on user feedback and stacks-blockchian development progress, we will follow up and modify Mining Module as a separate program. #18
The text was updated successfully, but these errors were encountered: