Daemon-Technologies / Mining-Bot

26 stars 14 forks source link

[Feature]Start and stop mining by rpc from stacks-blockchain #16

Open gzelda opened 3 years ago

gzelda commented 3 years ago

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

gzelda commented 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

gzelda commented 3 years ago

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}