mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Set default state ttl to 86400, set serializer delay to up to 6h (#1125)
This commit is contained in:
parent
cba92777a4
commit
16a2ced4d3
2 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ void AsyncStateSerializer::next_iteration() {
|
||||||
LOG(ERROR) << "started serializing persistent state for " << masterchain_handle_->id().id.to_str();
|
LOG(ERROR) << "started serializing persistent state for " << masterchain_handle_->id().id.to_str();
|
||||||
// block next attempts immediately, but send actual request later
|
// block next attempts immediately, but send actual request later
|
||||||
running_ = true;
|
running_ = true;
|
||||||
double delay = td::Random::fast(0, 3600);
|
double delay = td::Random::fast(0, 3600 * 6);
|
||||||
LOG(WARNING) << "serializer delay = " << delay << "s";
|
LOG(WARNING) << "serializer delay = " << delay << "s";
|
||||||
delay_action(
|
delay_action(
|
||||||
[SelfId = actor_id(this)]() {
|
[SelfId = actor_id(this)]() {
|
||||||
|
|
|
@ -145,7 +145,7 @@ struct ValidatorManagerOptions : public td::CntObject {
|
||||||
std::function<bool(ShardIdFull, CatchainSeqno, ShardCheckMode)> check_shard = [](ShardIdFull, CatchainSeqno,
|
std::function<bool(ShardIdFull, CatchainSeqno, ShardCheckMode)> check_shard = [](ShardIdFull, CatchainSeqno,
|
||||||
ShardCheckMode) { return true; },
|
ShardCheckMode) { return true; },
|
||||||
bool allow_blockchain_init = false, double sync_blocks_before = 3600, double block_ttl = 86400,
|
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,
|
double max_mempool_num = 999999,
|
||||||
bool initial_sync_disabled = false);
|
bool initial_sync_disabled = false);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue