mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated fift
updated fift updated some smartcontracts added partial support for hardforks
This commit is contained in:
parent
2845f9a2cc
commit
841d5ebac2
16 changed files with 202 additions and 39 deletions
|
@ -67,7 +67,7 @@ struct ValidatorManagerOptionsImpl : public ValidatorManagerOptions {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
td::uint32 get_vertical_height(BlockSeqno seqno) const override {
|
||||
td::uint32 get_vertical_seqno(BlockSeqno seqno) const override {
|
||||
size_t best = 0;
|
||||
for (size_t i = 0; i < hardforks_.size(); i++) {
|
||||
if (seqno >= hardforks_[i].seqno()) {
|
||||
|
@ -76,6 +76,12 @@ struct ValidatorManagerOptionsImpl : public ValidatorManagerOptions {
|
|||
}
|
||||
return static_cast<td::uint32>(best);
|
||||
}
|
||||
td::uint32 get_maximal_vertical_seqno() const override {
|
||||
return td::narrow_cast<td::uint32>(hardforks_.size());
|
||||
}
|
||||
td::uint32 get_last_fork_masterchain_seqno() const override {
|
||||
return hardforks_.size() ? hardforks_.rbegin()->seqno() : 0;
|
||||
}
|
||||
td::uint32 get_filedb_depth() const override {
|
||||
return db_depth_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue