remove Validator.{custody_commitment,latest_custody_reseed_slot,penultimate_custody_reseed_slot}

This commit is contained in:
Dustin Brody 2019-01-28 20:34:44 -08:00
parent ad3de5fde9
commit 5d0e1c026d
2 changed files with 2 additions and 15 deletions

View File

@ -50,8 +50,7 @@ func process_deposit(state: var BeaconState,
deposit: uint64, deposit: uint64,
proof_of_possession: ValidatorSig, proof_of_possession: ValidatorSig,
withdrawal_credentials: Eth2Digest, withdrawal_credentials: Eth2Digest,
randao_commitment: Eth2Digest, randao_commitment: Eth2Digest) : ValidatorIndex =
custody_commitment: Eth2Digest) : ValidatorIndex =
## Process a deposit from Ethereum 1.0. ## Process a deposit from Ethereum 1.0.
if false: if false:
@ -76,9 +75,6 @@ func process_deposit(state: var BeaconState,
penalized_epoch: FAR_FUTURE_EPOCH, penalized_epoch: FAR_FUTURE_EPOCH,
exit_count: 0, exit_count: 0,
status_flags: 0, status_flags: 0,
custody_commitment: custody_commitment,
latest_custody_reseed_slot: GENESIS_SLOT,
penultimate_custody_reseed_slot: GENESIS_SLOT
) )
let index = min_empty_validator_index( let index = min_empty_validator_index(
@ -231,7 +227,6 @@ func get_initial_beacon_state*(
deposit.deposit_data.deposit_input.proof_of_possession, deposit.deposit_data.deposit_input.proof_of_possession,
deposit.deposit_data.deposit_input.withdrawal_credentials, deposit.deposit_data.deposit_input.withdrawal_credentials,
deposit.deposit_data.deposit_input.randao_commitment, deposit.deposit_data.deposit_input.randao_commitment,
deposit.deposit_data.deposit_input.custody_commitment,
) )
if state.validator_balances[validator_index] >= MAX_DEPOSIT_AMOUNT: if state.validator_balances[validator_index] >= MAX_DEPOSIT_AMOUNT:

View File

@ -347,7 +347,7 @@ type
pubkey*: ValidatorPubKey pubkey*: ValidatorPubKey
withdrawal_credentials*: Eth2Digest withdrawal_credentials*: Eth2Digest
# TODO remove randao_commitment, randao_layers, latest_status_change_slot, custody_commitment, latest_custody_reseed_slot, penultimate_custody_reseed_slot # TODO remove randao_commitment, randao_layers, latest_status_change_slot
randao_commitment*: Eth2Digest ##\ randao_commitment*: Eth2Digest ##\
## RANDAO commitment created by repeatedly taking the hash of a secret value ## RANDAO commitment created by repeatedly taking the hash of a secret value
## so as to create "onion layers" around it. For every block that a ## so as to create "onion layers" around it. For every block that a
@ -380,14 +380,6 @@ type
status_flags*: uint64 status_flags*: uint64
custody_commitment*: Eth2Digest
latest_custody_reseed_slot*: uint64 ##\
## Slot of latest custody reseed
penultimate_custody_reseed_slot*: uint64 ##\
## Slot of second-latest custody reseed
Crosslink* = object Crosslink* = object
epoch*: uint64 epoch*: uint64
shard_block_root*: Eth2Digest ##\ shard_block_root*: Eth2Digest ##\