Skip to content

Use ctypes::Header instead of encoded::Header in HeaderDownloader#325

Merged
sgkim126 merged 4 commits intoCodeChain-io:masterfrom
majecty:f/sync-encoded
Apr 14, 2020
Merged

Use ctypes::Header instead of encoded::Header in HeaderDownloader#325
sgkim126 merged 4 commits intoCodeChain-io:masterfrom
majecty:f/sync-encoded

Conversation

@majecty
Copy link

@majecty majecty commented Apr 13, 2020

The purpose of the encoded type is to read a few fields from binary data when we don't want to full deserialize it. In the header sync, we already deserialized the whole struct in the verification process. We don't need to encoded Header when we have ctypes::Header.

Park Juhyung added 2 commits April 13, 2020 17:16
The purpose of the encoded type is to read a few fields from binary
data when we don't want to full deserialize it. In the header sync, we
already deserialized the whole struct in the verification process. We
don't need to encoded Header when we have ctypes::Header.
@majecty majecty added the refactoring Behavior does not change. Make code simple label Apr 13, 2020
@majecty majecty requested a review from sgkim126 April 13, 2020 09:08
@sgkim126 sgkim126 merged commit a44981a into CodeChain-io:master Apr 14, 2020
@majecty majecty deleted the f/sync-encoded branch April 14, 2020 04:27
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