Skip to content

Commit

Permalink
Fix zombienet test (#1840)
Browse files Browse the repository at this point in the history
* fix: false negative approval checking result

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
  • Loading branch information
xDimon authored Oct 10, 2023
1 parent e55bef8 commit bcf4fe9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/crypto/crypto_store/key_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace kagome::crypto {
};

/**
* Makes 32bit integer uin which represent encoded 4-char strings
* Makes 32bit integer which represent encoded 4-char strings
* Little-endian byte order is used
*/
constexpr uint32_t operator""_key(const char *s, std::size_t size) {
Expand Down
2 changes: 1 addition & 1 deletion core/parachain/approval/approval_distribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ namespace kagome::parachain {
self->logger_->warn(
"Parachain data recovery failed.(error={}, session index={}, "
"candidate hash={}, relay block hash={})",
opt_result->error().message(),
opt_result->error(),
session_index,
candidate_hash,
relay_block_hash);
Expand Down
3 changes: 1 addition & 2 deletions core/parachain/availability/recovery/recovery_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ namespace kagome::parachain {
}
if (active.chunks.size() + active.chunks_active + active.order.size()
< active.chunks_required) {
return done(
lock, it, toErasureCodingError(ec_cpp::Error::kNeedMoreShards));
return done(lock, it, std::nullopt);
}
auto max = std::min(kParallelRequests,
active.chunks_required - active.chunks.size());
Expand Down

0 comments on commit bcf4fe9

Please sign in to comment.