Reset the chain

This commit is contained in:
Grégoire Henry 2017-09-22 17:46:50 +02:00 committed by Grégoire
parent 76bf007660
commit c2fd13f3ab
5 changed files with 17 additions and 7 deletions

View File

@ -1,6 +1,16 @@
diff --git a/src/proto/alpha/constants_repr.ml b/src/proto/alpha/constants_repr.ml diff --git a/src/proto/alpha/constants_repr.ml b/src/proto/alpha/constants_repr.ml
index 3780bec2..36f91ff6 100644
--- a/src/proto/alpha/constants_repr.ml --- a/src/proto/alpha/constants_repr.ml
+++ b/src/proto/alpha/constants_repr.ml +++ b/src/proto/alpha/constants_repr.ml
@@ -15,7 +15,7 @@ let proof_of_work_nonce_size = 8
let nonce_length = 32
let roll_value =
- Tez_repr.of_cents_exn 10000_00L
+ Tez_repr.of_cents_exn 30000_00L
let seed_nonce_revelation_tip =
Tez_repr.of_cents_exn 10_00L
let origination_burn =
@@ -50,15 +50,14 @@ let read_public_key s = @@ -50,15 +50,14 @@ let read_public_key s =
Ed25519.Public_key.of_bytes (Bytes.of_string (Hex_encode.hex_decode s)) Ed25519.Public_key.of_bytes (Bytes.of_string (Hex_encode.hex_decode s))
@ -13,7 +23,7 @@ diff --git a/src/proto/alpha/constants_repr.ml b/src/proto/alpha/constants_repr.
Period_repr.of_seconds_exn Period_repr.of_seconds_exn
- (* One year in seconds *) - (* One year in seconds *)
- Int64.(mul 365L (mul 24L 3600L)) ; - Int64.(mul 365L (mul 24L 3600L)) ;
+ Int64.(mul 12L 3600L) ; + Int64.(mul 6L 3600L) ; (* 6 hours *)
slot_durations = slot_durations =
- List.map Period_repr.of_seconds_exn [ 60L ] ; - List.map Period_repr.of_seconds_exn [ 60L ] ;
- first_free_mining_slot = 16 ; - first_free_mining_slot = 16 ;

View File

@ -1 +1 @@
2017-09-21 2017-09-22

View File

@ -23,7 +23,7 @@ case "$branch" in
patch -p1 < scripts/zeronet.patch patch -p1 < scripts/zeronet.patch
cp README.md docs/README.master cp README.md docs/README.master
cp docs/README.zeronet README.md cp docs/README.zeronet README.md
if has_git; then git commit -a -m "Zeronet: DO NOT MERGE" --author "Tezos CI <null@tezos.com>"; fi if has_git; then git add docs/README.master; git commit -a -m "Zeronet: DO NOT MERGE" --author "Tezos CI <null@tezos.com>"; fi
echo "Done" echo "Done"
;; ;;
alphanet) alphanet)
@ -31,7 +31,7 @@ case "$branch" in
patch -p1 < scripts/alphanet_constants.patch patch -p1 < scripts/alphanet_constants.patch
cp README.md docs/README.master cp README.md docs/README.master
cp docs/README.alphanet README.md cp docs/README.alphanet README.md
if has_git; then git commit -a -m "Alphanet: DO NOT MERGE" --author "Tezos CI <null@tezos.com>"; fi if has_git; then git add docs/README.master; git commit -a -m "Alphanet: DO NOT MERGE" --author "Tezos CI <null@tezos.com>"; fi
echo "Done" echo "Done"
;; ;;
*) *)

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-21T00:00:00Z" ; Time.of_notation_exn "2017-09-22T00:00:00Z" ;
block = block =
Block_hash.of_b58check_exn Block_hash.of_b58check_exn
"BLockGenesisGenesisGenesisGenesisGenesisBBBBBbwcZMg" ; "BLockGenesisGenesisGenesisGenesisGenesisCCCCCeZiLHU" ;
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 = 23 ; minor = 24 ;
} }
] ]