mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Check fec type in incoming messages in RLDP
This commit is contained in:
parent
b96ab80dfd
commit
e05af05635
3 changed files with 36 additions and 18 deletions
|
@ -28,8 +28,8 @@ td::Result<std::unique_ptr<BroadcastFec>> BroadcastFec::create(Overlay::Broadcas
|
|||
Overlay::BroadcastDataHash data_hash, td::uint32 flags,
|
||||
td::uint32 date, fec::FecType fec_type) {
|
||||
auto F = std::make_unique<BroadcastFec>(hash, std::move(src), data_hash, flags, date, std::move(fec_type));
|
||||
TRY_STATUS(F->init_fec_type());
|
||||
TRY_STATUS(F->run_checks());
|
||||
TRY_STATUS(F->init_fec_type());
|
||||
return std::move(F);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue