-
Notifications
You must be signed in to change notification settings - Fork 39
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
Parachains. PeerView implementation. #1397
Conversation
Signed-off-by: iceseer <iceseer@gmail.com> # Conflicts: # core/blockchain/impl/block_tree_impl.cpp # core/injector/application_injector.cpp
Codecov Report
@@ Coverage Diff @@
## master #1397 +/- ##
==========================================
- Coverage 24.47% 24.43% -0.04%
==========================================
Files 638 641 +3
Lines 24085 24148 +63
Branches 12492 12520 +28
==========================================
+ Hits 5895 5901 +6
- Misses 12928 12981 +53
- Partials 5262 5266 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
} | ||
} | ||
|
||
void PeerView::updateRemoteView(const PeerId &peer_id, network::View &&view) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it sort
like updateMyView
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По спеке сказано, что эти данные должны быть отсортированы уже. Полагаю, наличие/отсутствие сортировки влияет на понижение рейтинга. Т.е. либо они отсортированы и мы с ними работаем, либо скипаем.
core/network/impl/peer_view.cpp
Outdated
self->updateMyView( | ||
View{.heads_ = self->block_tree_->getLeaves(), | ||
.finalized_number_ = | ||
self->block_tree_->getLastFinalized().number}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self->block_tree_->getLastFinalized().number}); | |
self->block_tree_->getLastFinalized().number, | |
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@turuslan, ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это что ?
core/network/impl/peer_view.cpp
Outdated
self->updateMyView( | ||
View{.heads_ = self->block_tree_->getLeaves(), | ||
.finalized_number_ = | ||
self->block_tree_->getLastFinalized().number}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@turuslan, ?
a8b35b0
to
c12b4bd
Compare
Signed-off-by: iceseer <iceseer@gmail.com>
c12b4bd
to
3042256
Compare
Signed-off-by: iceseer iceseer@gmail.com