Fix produce_attestation
bug.
It was referencing the wrong crosslink.
This commit is contained in:
parent
2c1fa86cd3
commit
4e71ed6972
@ -492,10 +492,7 @@ where
|
|||||||
beacon_block_root: self.head().beacon_block_root,
|
beacon_block_root: self.head().beacon_block_root,
|
||||||
target_root,
|
target_root,
|
||||||
crosslink_data_root: Hash256::zero(),
|
crosslink_data_root: Hash256::zero(),
|
||||||
previous_crosslink: Crosslink {
|
previous_crosslink: state.latest_crosslinks[shard as usize].clone(),
|
||||||
epoch: self.state.read().slot.epoch(self.spec.slots_per_epoch),
|
|
||||||
crosslink_data_root: Hash256::zero(),
|
|
||||||
},
|
|
||||||
source_epoch: state.current_justified_epoch,
|
source_epoch: state.current_justified_epoch,
|
||||||
source_root: state.current_justified_root,
|
source_root: state.current_justified_root,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user