rand-chain / rust-randchain

(WIP) Official implementation of the RandChain protocol
GNU General Public License v3.0
1 stars 0 forks source link

miner: merge `miner-rs` into the codebase as a subcommand #157

Closed SebastianElvis closed 3 years ago

SebastianElvis commented 3 years ago

Problem

Currently the miner locates at https://github.com/rand-chain/miner-rs. We should merge it into the codebase and make a subcommand randchain miner due to the following reasons.

  1. Dependency management is hard when the API is not stabilised.
  2. We may want to start a miner immediately when starting a node.

Description

  1. [x] Decouple miner and SeqPoW
  2. [x] Merge https://github.com/rand-chain/miner-rs into randchain/miner
  3. [x] Implement randchain miner
  4. [x] ~Implement bootstrapping stuff related to miner for randchain node~
  5. [x] Remove https://github.com/rand-chain/miner-rs

Alternatives

Additional context