Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unique handling of servers #515

Merged
merged 2 commits into from
Dec 2, 2022
Merged

Add unique handling of servers #515

merged 2 commits into from
Dec 2, 2022

Conversation

tnasu
Copy link
Member

@tnasu tnasu commented Nov 30, 2022

Description

There could be a scenario in which the light client tries to verify the content from the primary by cross-checking with the primary itself. This would lead to less security in the implementation of the light client for the state sync. So eliminating the duplication.

@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #515 (33cd9fd) into main (e6f57a1) will increase coverage by 0.32%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #515      +/-   ##
==========================================
+ Coverage   65.39%   65.71%   +0.32%     
==========================================
  Files         278      279       +1     
  Lines       37995    38046      +51     
==========================================
+ Hits        24846    25003     +157     
+ Misses      11328    11242      -86     
+ Partials     1821     1801      -20     
Impacted Files Coverage Δ
statesync/stateprovider.go 35.61% <100.00%> (+35.61%) ⬆️
abci/client/socket_client.go 72.09% <0.00%> (-0.88%) ⬇️
p2p/switch.go 65.08% <0.00%> (-0.83%) ⬇️
p2p/pex/addrbook.go 71.06% <0.00%> (-0.61%) ⬇️
mempool/clist_mempool.go 82.16% <0.00%> (-0.25%) ⬇️
p2p/conn/connection.go 79.80% <0.00%> (-0.20%) ⬇️
mempool/mempool.go 100.00% <0.00%> (ø)
state/tx_filter.go 100.00% <0.00%> (ø)
rpc/core/mempool.go 0.00% <0.00%> (ø)
proxy/multi_app_conn.go 47.66% <0.00%> (ø)
... and 19 more

@tnasu tnasu marked this pull request as ready for review November 30, 2022 01:23
@tnasu tnasu requested review from Kynea0b and torao as code owners November 30, 2022 01:23
@Kynea0b Kynea0b added the C: enhancement Classification: New feature or its request, or improvement in maintainability of code label Nov 30, 2022
@Kynea0b Kynea0b requested review from ulbqb and Mdaiki0730 November 30, 2022 02:06
statesync/stateprovider.go Show resolved Hide resolved
statesync/stateprovider.go Show resolved Hide resolved
statesync/stateprovider.go Outdated Show resolved Hide resolved
torao
torao previously approved these changes Nov 30, 2022
statesync/stateprovider.go Outdated Show resolved Hide resolved
@torao
Copy link
Contributor

torao commented Nov 30, 2022

My comments in this PR aren't important things and you can "Resolve Conversation" each of them yourself if it doesn't require any particular fix.

Kynea0b
Kynea0b previously approved these changes Nov 30, 2022
statesync/stateprovider.go Outdated Show resolved Hide resolved
Mdaiki0730
Mdaiki0730 previously approved these changes Nov 30, 2022
@tnasu tnasu dismissed stale reviews from Mdaiki0730, Kynea0b, and torao via 33cd9fd November 30, 2022 07:11
Copy link
Member

@Mdaiki0730 Mdaiki0730 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: enhancement Classification: New feature or its request, or improvement in maintainability of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants