mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Rework limiting imported msg queues
This commit is contained in:
parent
e6b77ef71d
commit
869c6fe675
9 changed files with 30 additions and 51 deletions
|
@ -32,6 +32,7 @@ struct OutputQueueMerger {
|
|||
int source;
|
||||
int key_len{0};
|
||||
td::BitArray<max_key_len> key;
|
||||
bool limit_exceeded{false};
|
||||
MsgKeyValue() = default;
|
||||
MsgKeyValue(int src, Ref<vm::Cell> node);
|
||||
MsgKeyValue(td::ConstBitPtr key_pfx, int key_pfx_len, int src, Ref<vm::Cell> node);
|
||||
|
@ -82,6 +83,7 @@ struct OutputQueueMerger {
|
|||
std::vector<td::int32> src_remaining_msgs_;
|
||||
bool eof;
|
||||
bool failed;
|
||||
bool limit_exceeded{false};
|
||||
void add_root(int src, Ref<vm::Cell> outmsg_root, td::int32 msg_limit);
|
||||
bool load();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue