Open gzelda opened 3 years ago
Refer to https://github.com/blockstack/stacks-blockchain/issues/1969, the mining component should be departed from stacks-blockchain. And the mining component should be a RUST Binary Lib like blockstack-cli or clarity-cli
RPC network Setup/Request Process in stacks-blockchain setup process : neon_node.rs{spawn_peer} => thread loop{ PeerNetwork{run} => HttpPeer{run} } /v2/info request : HttpPeer{run => process_ready_sockets => process_http_conversation} => ConversationHttp{chat => handle_request => handle_getinfo => RPCimpl => from_db}
Is your feature request related to a problem? Please describe. As title described
Describe the solution you'd like An rpc method could start/stop mining in stack-blockchain. Now if we want to stop mining we should shut down the process in backend
Describe alternatives you've considered
Additional context