mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Update Deposit to v0.5.0
This commit is contained in:
@@ -7,10 +7,10 @@ use test_random_derive::TestRandom;
|
|||||||
|
|
||||||
/// A deposit to potentially become a beacon chain validator.
|
/// A deposit to potentially become a beacon chain validator.
|
||||||
///
|
///
|
||||||
/// Spec v0.4.0
|
/// Spec v0.5.0
|
||||||
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Encode, Decode, TreeHash, TestRandom)]
|
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Encode, Decode, TreeHash, TestRandom)]
|
||||||
pub struct Deposit {
|
pub struct Deposit {
|
||||||
pub branch: Vec<Hash256>,
|
pub proof: Vec<Hash256>,
|
||||||
pub index: u64,
|
pub index: u64,
|
||||||
pub deposit_data: DepositData,
|
pub deposit_data: DepositData,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ impl TestingDepositBuilder {
|
|||||||
let keypair = Keypair::random();
|
let keypair = Keypair::random();
|
||||||
|
|
||||||
let deposit = Deposit {
|
let deposit = Deposit {
|
||||||
branch: vec![],
|
proof: vec![],
|
||||||
index: 0,
|
index: 0,
|
||||||
deposit_data: DepositData {
|
deposit_data: DepositData {
|
||||||
amount,
|
amount,
|
||||||
|
|||||||
Reference in New Issue
Block a user