-
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
Feature/async-backing #1825
Feature/async-backing #1825
Conversation
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
move -> forward Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
…ncoding Signed-off-by: iceseer <[email protected]> # Conflicts: # test/core/storage/trie_pruner/trie_pruner_test.cpp
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
This reverts commit 7ff93a3.
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
auto validation_protocol = [&]() -> std::shared_ptr<ProtocolBase> { | ||
if (proto_version == network::CollationVersion::VStaging) { | ||
return router_->getValidationProtocolVStaging(); | ||
} else { | ||
return router_->getValidationProtocol(); | ||
} | ||
}(); |
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.
Do you want to choose protocol supported by client,
or does runtime api return protocol version (e.g. async backing off/on)?
// may sort/reorder protocol list based on peer protocol list from "/identify"
host.newStream({"/validation/2", "/validation/1"}, [](r) {
if r.protocol == "/validation/1"
protocol_1.onOutgoingStream(r.stream)
if r.protocol == "/validation/2"
protocol_2.onOutgoingStream(r.stream)
})
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.
Fix too many logs like:
24.02.19 04:50:00.089592 main_runner Warning ParachainProcessorImpl After `send_peer_messages_for_relay_parent` no parachain state on relay_parent. (relay_parent=0x9ff1…b8ac)
and
24.02.19 04:50:06.074950 main_runner Warning PeerManager Unable to create stream /e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e/validation/1 with …uB1dLv: Stream: reset by remote peer
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
zombienet/0001-parachains-smoke-test/0001-parachains-smoke-test.toml
Outdated
Show resolved
Hide resolved
core/network/impl/router_libp2p.cpp
Outdated
// app_state_manager_->takeControl(*collation_protocol_.get()); | ||
// app_state_manager_->takeControl(*validation_protocol_.get()); |
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.
Uncomment or remove
@@ -36,6 +36,18 @@ namespace kagome::math { | |||
return res; | |||
} | |||
|
|||
template <typename T, typename E> | |||
inline outcome::result<void> checked_sub(T &x, T y, E e) { | |||
static_assert(std::numeric_limits<T>::is_integer |
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.
static_assert(std::numeric_limits<T>::is_integer | |
BOOST_STATIC_ASSERT(std::numeric_limits<T>::is_integer |
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.
BOOST_STATIC_ASSERT используется в 2 местах, а static_assert во всем остальном коде. Думаю логично переехать на static_assert
|
||
protocol->request(peer_info, candidate_hash, std::forward<F>(callback)); | ||
/// TODO(iceseer): do |
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.
Is TODO actual? Add more details if do

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.
https://imgur.com/9Rby94j.png 2-я строка
f3945ec
to
6f00882
Compare
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]> # Conflicts: # core/network/impl/peer_manager_impl.cpp # core/parachain/validator/impl/parachain_processor.cpp
4efbfdb
to
0c4c0b7
Compare
Signed-off-by: iceseer <[email protected]>
0c4c0b7
to
36658b6
Compare
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]> # Conflicts: # core/network/impl/peer_manager_impl.cpp # core/parachain/validator/impl/parachain_processor.cpp
Description of the Change
Additionally