Fix 'script/reset_chain.sh'

This commit is contained in:
Grégoire Henry 2018-03-08 07:05:33 +01:00
parent 8638a2bb98
commit cdeff6d3ca
2 changed files with 3 additions and 6 deletions

View File

@ -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))

View File

@ -172,7 +172,7 @@ let versions =
let open P2p_version in
[ { name = "TEZOS" ;
major = 0 ;
minor = 180307 ;
minor = 0 ;
}
]