mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Merge branch 'testnet' into block-generation
# Conflicts: # overlay/overlay-fec-broadcast.cpp # overlay/overlay.hpp # tl/generate/scheme/ton_api.tl # tl/generate/scheme/ton_api.tlo # validator-engine-console/validator-engine-console-query.cpp # validator-engine-console/validator-engine-console-query.h # validator-engine-console/validator-engine-console.cpp # validator-engine/validator-engine.cpp # validator-engine/validator-engine.hpp # validator/downloaders/wait-block-state.hpp # validator/impl/validate-query.cpp # validator/validator.h
This commit is contained in:
commit
636348ffc2
110 changed files with 3822 additions and 696 deletions
|
@ -125,6 +125,10 @@ void RldpTransferReceiverImpl::receive_part(fec::FecType fec_type, td::uint32 pa
|
|||
}
|
||||
|
||||
if (!decoder_) {
|
||||
if (offset_ + fec_type.size() > total_size_) {
|
||||
VLOG(RLDP_NOTICE) << "failed to create decoder: data size in fec type is too big";
|
||||
return;
|
||||
}
|
||||
auto D = fec_type.create_decoder();
|
||||
if (D.is_error()) {
|
||||
VLOG(RLDP_WARNING) << "failed to create decoder: " << D.move_as_error();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue