From cdeff6d3caf8f0577981120c1f8a5b51c42116b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Thu, 8 Mar 2018 07:05:33 +0100 Subject: [PATCH] Fix 'script/reset_chain.sh' --- scripts/gen_genesis.ml | 7 ++----- src/lib_shell/distributed_db_message.ml | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/gen_genesis.ml b/scripts/gen_genesis.ml index ab7abd1d5..e39e1101d 100644 --- a/scripts/gen_genesis.ml +++ b/scripts/gen_genesis.ml @@ -16,9 +16,6 @@ let date = Lwt_main.run (Lwt_process.pread_line (Lwt_process.shell "date +%FT%TZ --utc")) -let int_date = - Lwt_main.run (Lwt_process.pread_line (Lwt_process.shell "date +%y%m%d ")) - let prefix = "BLockGenesisGenesisGenesisGenesisGenesis" let suffix = String.sub Digest.(to_hex (string date)) 0 5 let p = @@ -47,9 +44,9 @@ let _ = let sed = Format.sprintf "sed -i \ - -e 's/minor = [0-9]* ;/minor = %s ;/' \ + -e 's/name = \"TEZOS[^\"]*\" ;/name = \"TEZOS_%s\" ;/' \ ../src/lib_shell/distributed_db_message.ml" - int_date + date let _ = Lwt_main.run (Lwt_process.exec (Lwt_process.shell sed)) diff --git a/src/lib_shell/distributed_db_message.ml b/src/lib_shell/distributed_db_message.ml index 71e381977..e6c2558e3 100644 --- a/src/lib_shell/distributed_db_message.ml +++ b/src/lib_shell/distributed_db_message.ml @@ -172,7 +172,7 @@ let versions = let open P2p_version in [ { name = "TEZOS" ; major = 0 ; - minor = 180307 ; + minor = 0 ; } ]