fn data_dependendencies(&self) -> Vec<u64> {
        match self {
            Operation::LedgerTransfer {
                id: _,
                source,
                destination,
                amount: _,
            } => vec![source.id, destination.id],
            Operation::NeuronStake {
                id: _,
                source,
                destination,
                amount: _,
            } => vec![source.id, destination.id],
            Operation::NeuronDisburse {
                id: _,
                source,
                destination,
                amount: _,
            } => vec![source.id, destination.id],
            Operation::VerifyOne {
                id: _,
                account,
                neuron,
            } => {
                if account.is_some() {
                    vec![account.as_ref().unwrap().id]
                } else {
                    vec![neuron.as_ref().unwrap().id]
                }
            }
            Operation::GetAccountBalance { id: _, account } => vec![account.id],
        }
    }
/// Returns the ids of the neurons/accounts involved.
Returns the ids of the neurons/accounts involved.
Returns the ids of the neurons / accounts involved .
fn data_dependendencies(&self) -> Vec<u64> {
        match self {
            Operation::LedgerTransfer {
                id: _,
                source,
                destination,
                amount: _,
            } => vec![source.id, destination.id],
            Operation::NeuronStake {
                id: _,
                source,
                destination,
                amount: _,
            } => vec![source.id, destination.id],
            Operation::NeuronDisburse {
                id: _,
                source,
                destination,
                amount: _,
            } => vec![source.id, destination.id],
            Operation::VerifyOne {
                id: _,
                account,
                neuron,
            } => {
                if account.is_some() {
                    vec![account.as_ref().unwrap().id]
                } else {
                    vec![neuron.as_ref().unwrap().id]
                }
            }
            Operation::GetAccountBalance { id: _, account } => vec![account.id],
        }
    }
fn data_dependendencies ( & self ) -> Vec < u64 > { match self { Operation :: LedgerTransfer { id : _ , source , destination , amount : _ , } => vec ! [ source id destination id ] , Operation :: NeuronStake { id : _ , source , destination , amount : _ , } => vec ! [ source id destination id ] , Operation :: NeuronDisburse { id : _ , source , destination , amount : _ , } => vec ! [ source id destination id ] , Operation :: VerifyOne { id : _ , account , neuron , } => { if account . is_some ( ) { vec ! [ account as_ref ( ) unwrap ( ) id ] } else { vec ! [ neuron as_ref ( ) unwrap ( ) id ] } } Operation :: GetAccountBalance { id : _ , account } => vec ! [ account id ] , } }
Returns the ids of the neurons/accounts involved.
Returns the ids of the neurons / accounts involved .
&self
&self