Everywhere: dictator -> activator
This commit is contained in:
parent
d5fed56d46
commit
2701012bf0
@ -3306,9 +3306,6 @@ Protocol Alpha
|
|||||||
"hard_gas_limit_per_operation": $bignum,
|
"hard_gas_limit_per_operation": $bignum,
|
||||||
"hard_gas_limit_per_block": $bignum,
|
"hard_gas_limit_per_block": $bignum,
|
||||||
"proof_of_work_threshold": integer ∈ [-2^31-2, 2^31+2] || string,
|
"proof_of_work_threshold": integer ∈ [-2^31-2, 2^31+2] || string,
|
||||||
"dictator_pubkey":
|
|
||||||
string
|
|
||||||
/* A Secp256k1 or Ed25519 public key (Base58Check-encoded) */,
|
|
||||||
"max_operation_data_length": integer ∈ [-2^30-2, 2^30+2],
|
"max_operation_data_length": integer ∈ [-2^30-2, 2^30+2],
|
||||||
"tokens_per_roll":
|
"tokens_per_roll":
|
||||||
/* Amount in mutez */
|
/* Amount in mutez */
|
||||||
|
@ -221,9 +221,9 @@ Three economic protocols are included in the main Tezos repository.
|
|||||||
|
|
||||||
- :package:`tezos-protocol-genesis`
|
- :package:`tezos-protocol-genesis`
|
||||||
(:package:`tezos-embedded-protocol-genesis`) is the protocol of
|
(:package:`tezos-embedded-protocol-genesis`) is the protocol of
|
||||||
the genesis block. It accepts a single block, signed by a dictator
|
the genesis block. It accepts a single block, signed by a activator
|
||||||
whose public key is hardcoded, that single action is to switch to
|
whose public key is hardcoded, that single action is to switch to
|
||||||
a new protocol chosen by the dictator.
|
a new protocol chosen by the activator.
|
||||||
- :package:`tezos-protocol-alpha`
|
- :package:`tezos-protocol-alpha`
|
||||||
(:package:`tezos-embedded-protocol-alpha`) is the first real
|
(:package:`tezos-embedded-protocol-alpha`) is the first real
|
||||||
protocol of Tezos. A :ref:`tutorial<entering_alpha>` is available
|
protocol of Tezos. A :ref:`tutorial<entering_alpha>` is available
|
||||||
@ -256,7 +256,7 @@ compatible, and library vs command line interface.
|
|||||||
- :package:`tezos-client-alpha-commands` plugs the functions from
|
- :package:`tezos-client-alpha-commands` plugs the functions from
|
||||||
:package:`tezos-client-alpha` as handlers for the alpha specific
|
:package:`tezos-client-alpha` as handlers for the alpha specific
|
||||||
commands of the ``tezos-client`` command line wallet.
|
commands of the ``tezos-client`` command line wallet.
|
||||||
- :package:`tezos-client-genesis` contains the basic dictator
|
- :package:`tezos-client-genesis` contains the basic activator
|
||||||
commands available on the genesis protocol.
|
commands available on the genesis protocol.
|
||||||
- :package:`tezos-client-base-unix` implements configuration file
|
- :package:`tezos-client-base-unix` implements configuration file
|
||||||
and wallet storage in Unix files, user interaction via the Unix
|
and wallet storage in Unix files, user interaction via the Unix
|
||||||
|
@ -38,7 +38,7 @@ $admin_client list protocols
|
|||||||
|
|
||||||
$client activate protocol $protocol_version \
|
$client activate protocol $protocol_version \
|
||||||
with fitness 1 \
|
with fitness 1 \
|
||||||
and key dictator \
|
and key activator \
|
||||||
and parameters $parameters_file
|
and parameters $parameters_file
|
||||||
|
|
||||||
retry 2 15 assert_protocol "$protocol_version"
|
retry 2 15 assert_protocol "$protocol_version"
|
||||||
|
@ -230,7 +230,7 @@ BOOTSTRAP5_IDENTITY="tz1ddb9NMYHZi5UzPdzTZMYQQZoMub195zgv"
|
|||||||
BOOTSTRAP5_PUBLIC="edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
|
BOOTSTRAP5_PUBLIC="edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
|
||||||
BOOTSTRAP5_SECRET="unencrypted:edsk4QLrcijEffxV31gGdN2HU7UpyJjA8drFoNcmnB28n89YjPNRFm"
|
BOOTSTRAP5_SECRET="unencrypted:edsk4QLrcijEffxV31gGdN2HU7UpyJjA8drFoNcmnB28n89YjPNRFm"
|
||||||
|
|
||||||
DICTATOR_SECRET="unencrypted:edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6"
|
ACTIVATOR_SECRET="unencrypted:edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6"
|
||||||
|
|
||||||
add_sandboxed_bootstrap_identities() {
|
add_sandboxed_bootstrap_identities() {
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ add_sandboxed_bootstrap_identities() {
|
|||||||
${client} import secret key bootstrap4 ${BOOTSTRAP4_SECRET}
|
${client} import secret key bootstrap4 ${BOOTSTRAP4_SECRET}
|
||||||
${client} import secret key bootstrap5 ${BOOTSTRAP5_SECRET}
|
${client} import secret key bootstrap5 ${BOOTSTRAP5_SECRET}
|
||||||
|
|
||||||
${client} import secret key dictator ${DICTATOR_SECRET}
|
${client} import secret key activator ${ACTIVATOR_SECRET}
|
||||||
}
|
}
|
||||||
|
|
||||||
activate_alpha() {
|
activate_alpha() {
|
||||||
@ -249,7 +249,7 @@ activate_alpha() {
|
|||||||
-block genesis \
|
-block genesis \
|
||||||
activate protocol ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK \
|
activate protocol ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK \
|
||||||
with fitness 1 \
|
with fitness 1 \
|
||||||
and key dictator \
|
and key activator \
|
||||||
and parameters "${parameters_file}" \
|
and parameters "${parameters_file}" \
|
||||||
--timestamp $(TZ='AAA+1' date +%FT%TZ)
|
--timestamp $(TZ='AAA+1' date +%FT%TZ)
|
||||||
}
|
}
|
||||||
@ -320,7 +320,7 @@ main () {
|
|||||||
cat <<EOF
|
cat <<EOF
|
||||||
if type tezos-client-reset >/dev/null 2>&1 ; then tezos-client-reset; fi ;
|
if type tezos-client-reset >/dev/null 2>&1 ; then tezos-client-reset; fi ;
|
||||||
PATH="$client_dir/bin:\$PATH" ; export PATH ;
|
PATH="$client_dir/bin:\$PATH" ; export PATH ;
|
||||||
alias tezos-activate-alpha="$client -block genesis activate protocol ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK with fitness 1 and key dictator and parameters $parameters_file --timestamp $(TZ='AAA+1' date +%FT%TZ)" ;
|
alias tezos-activate-alpha="$client -block genesis activate protocol ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK with fitness 1 and key activator and parameters $parameters_file --timestamp $(TZ='AAA+1' date +%FT%TZ)" ;
|
||||||
alias tezos-client-reset="rm -rf \"$client_dir\"; unalias tezos-activate-alpha tezos-client-reset" ;
|
alias tezos-client-reset="rm -rf \"$client_dir\"; unalias tezos-activate-alpha tezos-client-reset" ;
|
||||||
alias tezos-autocomplete="if [ \$ZSH_NAME ] ; then autoload bashcompinit ; bashcompinit ; fi ; source \"$bin_dir/bash-completion.sh\"" ;
|
alias tezos-autocomplete="if [ \$ZSH_NAME ] ; then autoload bashcompinit ; bashcompinit ; fi ; source \"$bin_dir/bash-completion.sh\"" ;
|
||||||
trap tezos-client-reset EXIT ;
|
trap tezos-client-reset EXIT ;
|
||||||
|
@ -114,7 +114,7 @@ let vote_protocol_parameters =
|
|||||||
|
|
||||||
let activate_alpha ?(vote = false) () =
|
let activate_alpha ?(vote = false) () =
|
||||||
let fitness = Fitness_repr.from_int64 0L in
|
let fitness = Fitness_repr.from_int64 0L in
|
||||||
let dictator_sk =
|
let activator_sk =
|
||||||
Tezos_signer_backends.Unencrypted.make_sk
|
Tezos_signer_backends.Unencrypted.make_sk
|
||||||
(Signature.Secret_key.of_b58check_exn
|
(Signature.Secret_key.of_b58check_exn
|
||||||
"edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6") in
|
"edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6") in
|
||||||
@ -126,7 +126,7 @@ let activate_alpha ?(vote = false) () =
|
|||||||
fitness ;
|
fitness ;
|
||||||
protocol_parameters ;
|
protocol_parameters ;
|
||||||
})
|
})
|
||||||
dictator_sk
|
activator_sk
|
||||||
|
|
||||||
let init ?exe ?vote ?rpc_port () =
|
let init ?exe ?vote ?rpc_port () =
|
||||||
begin
|
begin
|
||||||
|
@ -27,7 +27,7 @@ let new_account () =
|
|||||||
let add_account ({ pkh ; _ } as account) =
|
let add_account ({ pkh ; _ } as account) =
|
||||||
Signature.Public_key_hash.Table.add known_accounts pkh account
|
Signature.Public_key_hash.Table.add known_accounts pkh account
|
||||||
|
|
||||||
let dictator_account = new_account ()
|
let activator_account = new_account ()
|
||||||
|
|
||||||
let find pkh =
|
let find pkh =
|
||||||
try return (Signature.Public_key_hash.Table.find known_accounts pkh)
|
try return (Signature.Public_key_hash.Table.find known_accounts pkh)
|
||||||
|
@ -16,7 +16,7 @@ type t = {
|
|||||||
}
|
}
|
||||||
type account = t
|
type account = t
|
||||||
|
|
||||||
val dictator_account: account
|
val activator_account: account
|
||||||
val dummy_account: account
|
val dummy_account: account
|
||||||
|
|
||||||
val new_account: unit -> account
|
val new_account: unit -> account
|
||||||
|
@ -64,7 +64,7 @@ let commands () =
|
|||||||
int64_parameter
|
int64_parameter
|
||||||
@@ prefixes [ "and" ; "key" ]
|
@@ prefixes [ "and" ; "key" ]
|
||||||
@@ Client_keys.Secret_key.source_param
|
@@ Client_keys.Secret_key.source_param
|
||||||
~name:"password" ~desc:"Dictator's key"
|
~name:"password" ~desc:"Activator's key"
|
||||||
@@ prefixes [ "and" ; "parameters" ]
|
@@ prefixes [ "and" ; "parameters" ]
|
||||||
@@ param ~name:"parameters"
|
@@ param ~name:"parameters"
|
||||||
~desc:"Protocol parameters (as JSON file)"
|
~desc:"Protocol parameters (as JSON file)"
|
||||||
@ -87,7 +87,7 @@ let commands () =
|
|||||||
@@ Protocol_hash.param ~name:"version" ~desc:"Protocol version (b58check)"
|
@@ Protocol_hash.param ~name:"version" ~desc:"Protocol version (b58check)"
|
||||||
@@ prefixes [ "with" ; "key" ]
|
@@ prefixes [ "with" ; "key" ]
|
||||||
@@ Client_keys.Secret_key.source_param
|
@@ Client_keys.Secret_key.source_param
|
||||||
~name:"password" ~desc:"Dictator's key"
|
~name:"password" ~desc:"Activator's key"
|
||||||
@@ stop)
|
@@ stop)
|
||||||
begin fun timestamp hash sk cctxt ->
|
begin fun timestamp hash sk cctxt ->
|
||||||
bake cctxt ?timestamp cctxt#block
|
bake cctxt ?timestamp cctxt#block
|
||||||
|
Loading…
Reference in New Issue
Block a user