You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnf'Send the number of seconds to keep the block data in the node database.\nSkip to use default: {default_archive_ttl} to keep blocks from provided date for 30 days ({datetime.datetime.fromtimestamp(utime-datetime.timedelta(days=30).total_seconds())})\nOr send -1 to keep downloaded blocks always (recommended).'
27
+
answers['archive-ttl-default'] ='-1'
28
+
returnf'Send the number of seconds to keep blocks in the node database. Press Enter to keep downloaded blocks always (recommended).\nFor your reference you can use TTL `{default_archive_ttl}` to keep blocks from provided block for 30 days (since {datetime.datetime.fromtimestamp(utime-datetime.timedelta(days=30).total_seconds())}).\nNote: in case you want to keep blocks garbage collection the node will sync 8-10 times slower.'
return"State TTL cannot be greater than blocks TTL"
80
+
returnTrue
81
+
82
+
83
+
73
84
defvalidate_shard_format(value):
74
85
ifnotvalue:
75
86
returnTrue
@@ -108,12 +119,13 @@ def run_cli():
108
119
ifmode!="validator":
109
120
archive_blocks=questionary.text(
110
121
"Do you want to download archive blocks via TON Storage? Press Enter to skip.\n"
111
-
"If yes, provide block seqno or date to start from and (optionally) block seqno or date to end with (send 0 to download all blocks and setup full archive node).\n"
122
+
"If yes, provide block seqno or date to start from and (optionally) block seqno or date to end with (send `1` to download all blocks and setup full archive node).\n"
0 commit comments