Skip to content

Commit 2054eb1

Browse files
authored
Merge pull request #1699 from ton-blockchain/ticktock-lt
Fix start_lt of tick transactions
2 parents 46db154 + c89081d commit 2054eb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validator/impl/collator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3007,12 +3007,12 @@ bool Collator::update_last_proc_int_msg(const std::pair<ton::LogicalTime, ton::B
30073007
* Creates ticktock transactions for special accounts.
30083008
* Used in masterchain collator.
30093009
*
3010-
* @param mask The value indicating whether the thansactions are tick (mask == 2) or tock (mask == 1).
3010+
* @param mask The value indicating whether the transactions are tick (mask == 2) or tock (mask == 1).
30113011
*
30123012
* @returns True if all ticktock transactions were successfully created, false otherwise.
30133013
*/
30143014
bool Collator::create_ticktock_transactions(int mask) {
3015-
ton::LogicalTime req_lt = max_lt;
3015+
ton::LogicalTime req_lt = mask == 2 ? start_lt + 1 : max_lt;
30163016
for (auto smc_addr : special_smcs) {
30173017
auto found = lookup_account(smc_addr.cbits());
30183018
int ticktock = (found ? found->tick * 2 + found->tock : config_->get_smc_tick_tock(smc_addr.cbits()));

0 commit comments

Comments
 (0)