Reset the chain.

This commit is contained in:
Benjamin Canou 2017-10-13 11:24:22 +02:00 committed by Grégoire
parent d00b9ca1e1
commit 6a38f76956
6 changed files with 11 additions and 11 deletions

View File

@ -1 +1 @@
2017-09-22 2017-10-13

View File

@ -1,6 +1,6 @@
let prefix = "BLockGenesisGenesisGenesisGenesisGenesis" let prefix = "BLockGenesisGenesisGenesisGenesisGenesis"
let suffix = "BBBBB" let suffix = "DDDDD"
let p = Base58.raw_decode (prefix ^ suffix ^ "crcCRC") let p = Base58.raw_decode (prefix ^ suffix ^ "crcCRC")
let p = String.sub p 0 (String.length p - 4) let p = String.sub p 0 (String.length p - 4)
let p = Base58.safe_encode p let p = Base58.safe_encode p

View File

@ -11,10 +11,10 @@ open Logging.Node.Main
let genesis : State.Net.genesis = { let genesis : State.Net.genesis = {
time = time =
Time.of_notation_exn "2017-09-22T00:00:00Z" ; Time.of_notation_exn "2017-10-13T00:00:00Z" ;
block = block =
Block_hash.of_b58check_exn Block_hash.of_b58check_exn
"BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU" ; "BLockGenesisGenesisGenesisGenesisGenesisDDDDDegibDt" ;
protocol = protocol =
Protocol_hash.of_b58check_exn Protocol_hash.of_b58check_exn
"ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" ; "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" ;

View File

@ -174,7 +174,7 @@ let versions =
let open P2p.Version in let open P2p.Version in
[ { name = "TEZOS" ; [ { name = "TEZOS" ;
major = 0 ; major = 0 ;
minor = 24 ; minor = 25 ;
} }
] ]

View File

@ -33,7 +33,7 @@ $client get balance for $key2 | assert "999.95 ꜩ"
# wait for the delay between two block # wait for the delay between two block
sleep 1 sleep 1
$client mine for bootstrap1 $client mine for bootstrap1 -max-priority 512
$client remember program noop file:contracts/noop.tz $client remember program noop file:contracts/noop.tz
$client typecheck program noop $client typecheck program noop

View File

@ -66,22 +66,22 @@ retry() {
done done
} }
$client1 mine for bootstrap1 $client1 mine for bootstrap1 -max-priority 512
retry 2 15 assert_propagation_level 2 retry 2 15 assert_propagation_level 2
$client2 mine for bootstrap2 $client2 mine for bootstrap2 -max-priority 512
retry 2 15 assert_propagation_level 3 retry 2 15 assert_propagation_level 3
$client3 mine for bootstrap3 $client3 mine for bootstrap3 -max-priority 512
retry 2 15 assert_propagation_level 4 retry 2 15 assert_propagation_level 4
$client4 mine for bootstrap4 $client4 mine for bootstrap4 -max-priority 512
retry 2 15 assert_propagation_level 5 retry 2 15 assert_propagation_level 5
endorse_hash=$($client3 endorse for bootstrap3 | extract_operation_hash) endorse_hash=$($client3 endorse for bootstrap3 | extract_operation_hash)
transfer_hash=$($client4 transfer 500 from bootstrap1 to bootstrap3 | extract_operation_hash) transfer_hash=$($client4 transfer 500 from bootstrap1 to bootstrap3 | extract_operation_hash)
retry 2 15 $client4 mine for bootstrap4 retry 2 15 $client4 mine for bootstrap4 -max-priority 512
assert_contains_operation() { assert_contains_operation() {
hash="$1" hash="$1"