Skip to content

Make the client hold the miner directly#410

Merged
majecty merged 2 commits intoCodeChain-io:masterfrom
sgkim126:miner
Jun 8, 2020
Merged

Make the client hold the miner directly#410
majecty merged 2 commits intoCodeChain-io:masterfrom
sgkim126:miner

Conversation

@sgkim126
Copy link
Contributor

Currently, the client access the miner through the importer. It's better to give a method to access the miner directly.

It closes #44. The issue suggests moving the miner to the client. However, because the importer holds the arc of the miner, we can make both of the importer and the client hold the miner. I think it's better than moving because the importer also needs the miner.

Currently, the client access the miner through the importer. It's better
to give a method to access the miner directly.
@sgkim126 sgkim126 requested a review from majecty June 5, 2020 06:16
Copy link

@majecty majecty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@majecty majecty merged commit 791e639 into CodeChain-io:master Jun 8, 2020
@sgkim126 sgkim126 deleted the miner branch June 8, 2020 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Miner to Client

2 participants