1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Check supported version in collator-node

This commit is contained in:
SpyCheese 2024-11-29 10:34:01 +03:00
parent 923f1cd69b
commit 0280a288c6
3 changed files with 73 additions and 22 deletions

View file

@ -40,6 +40,7 @@ namespace validator {
using td::Ref;
class Collator final : public td::actor::Actor {
public:
static constexpr int supported_version() {
return SUPPORTED_VERSION;
}
@ -47,6 +48,8 @@ class Collator final : public td::actor::Actor {
return ton::capCreateStatsEnabled | ton::capBounceMsgBody | ton::capReportVersion | ton::capShortDequeue |
ton::capStoreOutMsgQueueSize | ton::capMsgMetadata | ton::capDeferMessages | ton::capFullCollatedData;
}
private:
using LtCellRef = block::LtCellRef;
using NewOutMsg = block::NewOutMsg;
const ShardIdFull shard_;