mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Improve importing msg queues
This commit is contained in:
parent
e814973749
commit
9e02853cbb
5 changed files with 107 additions and 28 deletions
|
@ -218,9 +218,12 @@ static inline std::ostream& operator<<(std::ostream& os, const MsgProcessedUptoC
|
|||
|
||||
struct ImportedMsgQueueLimits {
|
||||
// Default values
|
||||
td::uint32 max_bytes = 1 << 19;
|
||||
td::uint32 max_msgs = 500;
|
||||
td::uint32 max_bytes = 1 << 16;
|
||||
td::uint32 max_msgs = 30;
|
||||
bool deserialize(vm::CellSlice& cs);
|
||||
ImportedMsgQueueLimits operator*(td::uint32 x) const {
|
||||
return {max_bytes * x, max_msgs * x};
|
||||
}
|
||||
};
|
||||
|
||||
struct ParamLimits {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue