Skip to content

Rename import functions#332

Merged
majecty merged 4 commits intoCodeChain-io:masterfrom
majecty:f/import-verified-headers
Apr 16, 2020
Merged

Rename import functions#332
majecty merged 4 commits intoCodeChain-io:masterfrom
majecty:f/import-verified-headers

Conversation

@majecty
Copy link

@majecty majecty commented Apr 16, 2020

No description provided.

Park Juhyung added 4 commits April 16, 2020 17:57
Client::import_header function receives a header that is not
verified. Importer::import_headers assumes that received headers are
verified. To reduce misunderstanding, I renamed the function.
Previously we called a block received by snapshot sync as "bootstrap
block". Now we're calling it "floating block".
The name `import_closed_block` does not give enough context.
import_trusted_{header, block} are called by snapshot code. They can
import header and block that don't have parents. We need a better name
for them.
@majecty majecty added the refactoring Behavior does not change. Make code simple label Apr 16, 2020
@majecty majecty requested a review from sgkim126 April 16, 2020 09:02
@majecty
Copy link
Author

majecty commented Apr 16, 2020

Since the failed test is "connect 100 nodes", I'll merge this PR.

@majecty majecty merged commit 944c228 into CodeChain-io:master Apr 16, 2020
@majecty majecty deleted the f/import-verified-headers branch April 16, 2020 10:10
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