Skip to content

Commit

Permalink
Set default state ttl to 86400, set serializer delay to up to 6h
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese committed Aug 26, 2024
1 parent cba9277 commit cefc3d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion validator/state-serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void AsyncStateSerializer::next_iteration() {
LOG(ERROR) << "started serializing persistent state for " << masterchain_handle_->id().id.to_str();
// block next attempts immediately, but send actual request later
running_ = true;
double delay = td::Random::fast(0, 3600);
double delay = td::Random::fast(0, 3600 * 6);
LOG(WARNING) << "serializer delay = " << delay << "s";
delay_action(
[SelfId = actor_id(this)]() {
Expand Down
2 changes: 1 addition & 1 deletion validator/validator.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct ValidatorManagerOptions : public td::CntObject {
std::function<bool(ShardIdFull, CatchainSeqno, ShardCheckMode)> check_shard = [](ShardIdFull, CatchainSeqno,
ShardCheckMode) { return true; },
bool allow_blockchain_init = false, double sync_blocks_before = 3600, double block_ttl = 86400,
double state_ttl = 3600, double archive_ttl = 86400 * 7, double key_proof_ttl = 86400 * 3650,
double state_ttl = 86400, double archive_ttl = 86400 * 7, double key_proof_ttl = 86400 * 3650,
double max_mempool_num = 999999,
bool initial_sync_disabled = false);
};
Expand Down

0 comments on commit cefc3d0

Please sign in to comment.