Skip to content

Simplify miner, client and block.#333

Merged
majecty merged 4 commits intoCodeChain-io:masterfrom
sgkim126:refac
Apr 20, 2020
Merged

Simplify miner, client and block.#333
majecty merged 4 commits intoCodeChain-io:masterfrom
sgkim126:refac

Conversation

@sgkim126
Copy link
Contributor

This refactoring is done to implement #324. But, because the PR takes more time than expected, I extracted the refactoring commits.

Seulgi Kim added 3 commits April 16, 2020 20:48
The close_impl was extracted because close and close_and_lock have
duplicate code. Now this is not necessary because close_and_lock is
removed.
Currently, AccountProvider in the miner is optional to support unit
tests who cannot use the account provider which uses the permanent
storage.
This commit makes the miner uses memory back-end AccountProvider for
test.
@sgkim126 sgkim126 added the refactoring Behavior does not change. Make code simple label Apr 18, 2020
@sgkim126 sgkim126 requested a review from majecty April 19, 2020 03:07
@sgkim126
Copy link
Contributor Author

The linux build fails, but the same test successes on osx. I think it's the problem of Travis.

@majecty majecty merged commit b10b753 into CodeChain-io:master Apr 20, 2020
@sgkim126 sgkim126 deleted the refac branch April 20, 2020 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Behavior does not change. Make code simple

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants