/// Constructs a fixture with 2 neurons of different stakes and no
/// following. Neuron 2 has a greater stake.
Constructs a fixture with 2 neurons of different stakes and no
following. Neuron 2 has a greater stake.
Constructs a fixture with 2 neurons of different stakes and no following . Neuron 2 has a greater stake .
fn fixture_two_neurons_second_is_bigger() -> GovernanceProto {
    let mut driver = fake::FakeDriver::default();
    GovernanceProto {
        economics: Some(NetworkEconomics::default()),
        neurons: hashmap! {
             1 =>
                Neuron {
                    id: Some(NeuronId {id: 1}),
                 controller: Some(principal(1)),
                    cached_neuron_stake_e8s: 23,
                    account: driver.random_byte_array().to_vec(),
                 // One year
                 dissolve_state: Some(neuron::DissolveState::DissolveDelaySeconds(31557600)),
                 ..Default::default()
             },
         2 =>
                Neuron {
                    id: Some(NeuronId {id: 1}),
                 controller: Some(principal(2)),
                    cached_neuron_stake_e8s: 951,
                    account: driver.random_byte_array().to_vec(),
                 // One year
                 dissolve_state: Some(neuron::DissolveState::DissolveDelaySeconds(31557600)),
                 ..Default::default()
             },
        },
        ..Default::default()
    }
}
fn fixture_two_neurons_second_is_bigger ( ) -> GovernanceProto { let mut driver = fake :: FakeDriver :: default ( ) ; GovernanceProto { economics : Some ( NetworkEconomics :: default ( ) ) , neurons : hashmap ! { 1 Neuron { id Some ( NeuronId { id 1 } ) controller Some ( principal ( 1 ) ) cached_neuron_stake_e8s 23 account driver random_byte_array ( ) to_vec ( ) // One year dissolve_state Some ( neuron DissolveState DissolveDelaySeconds ( 31557600 ) ) Default default ( ) } 2 Neuron { id Some ( NeuronId { id 1 } ) controller Some ( principal ( 2 ) ) cached_neuron_stake_e8s 951 account driver random_byte_array ( ) to_vec ( ) // One year dissolve_state Some ( neuron DissolveState DissolveDelaySeconds ( 31557600 ) ) Default default ( ) } } , .. Default :: default ( ) } }
Constructs a fixture with 2 neurons of different stakes and no
following.
Constructs a fixture with 2 neurons of different stakes and no following .