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 ; } ]