Update validator_client
for spec v0.2.0
This commit is contained in:
parent
cb97870c15
commit
5e37e8a33a
@ -65,11 +65,8 @@ impl BeaconNode for BeaconBlockGrpcClient {
|
|||||||
signature,
|
signature,
|
||||||
body: BeaconBlockBody {
|
body: BeaconBlockBody {
|
||||||
proposer_slashings: vec![],
|
proposer_slashings: vec![],
|
||||||
casper_slashings: vec![],
|
attester_slashings: vec![],
|
||||||
attestations: vec![],
|
attestations: vec![],
|
||||||
custody_reseeds: vec![],
|
|
||||||
custody_challenges: vec![],
|
|
||||||
custody_responses: vec![],
|
|
||||||
deposits: vec![],
|
deposits: vec![],
|
||||||
exits: vec![],
|
exits: vec![],
|
||||||
},
|
},
|
||||||
|
@ -88,9 +88,12 @@ fn main() {
|
|||||||
let spec = Arc::new(ChainSpec::foundation());
|
let spec = Arc::new(ChainSpec::foundation());
|
||||||
|
|
||||||
// Clock for determining the present slot.
|
// Clock for determining the present slot.
|
||||||
|
// TODO: this shouldn't be a static time, instead it should be pulled from the beacon node.
|
||||||
|
// https://github.com/sigp/lighthouse/issues/160
|
||||||
|
let genesis_time = 1_549_935_547;
|
||||||
let slot_clock = {
|
let slot_clock = {
|
||||||
info!(log, "Genesis time"; "unix_epoch_seconds" => spec.genesis_time);
|
info!(log, "Genesis time"; "unix_epoch_seconds" => genesis_time);
|
||||||
let clock = SystemTimeSlotClock::new(spec.genesis_time, spec.slot_duration)
|
let clock = SystemTimeSlotClock::new(genesis_time, spec.slot_duration)
|
||||||
.expect("Unable to instantiate SystemTimeSlotClock.");
|
.expect("Unable to instantiate SystemTimeSlotClock.");
|
||||||
Arc::new(clock)
|
Arc::new(clock)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user