From fdf2f0c7739d0fad7bdc562633288b212493876b Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Mon, 29 Jan 2024 11:25:01 +0000 Subject: [PATCH] Set genesis time in localnets to current time --- scripts/gen_localnet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/gen_localnet.py b/scripts/gen_localnet.py index ddfbad4bb9..ce323ecca1 100644 --- a/scripts/gen_localnet.py +++ b/scripts/gen_localnet.py @@ -1,4 +1,5 @@ import argparse +import datetime import sys import os import subprocess @@ -120,7 +121,7 @@ def edit_parameters(params_toml, **kwargs): # Run namadac utils init_network with the correct arguments print('Running namadac utils init_network') CHAIN_PREFIX='local' -GENESIS_TIME='2021-12-31T00:00:00Z' +GENESIS_TIME = datetime.datetime.now(datetime.timezone.utc).isoformat() TEMPLATES_PATH=localnet_dir WASM_CHECKSUMS_PATH=namada_dir + '/wasm/checksums.json' WASM_PATH=namada_dir + '/wasm/'