/// Store the provided set of kernels and persists a checkpoint
Store the provided set of kernels and persists a checkpoint
Store the provided set of kernels and persists a checkpoint
pub fn horizon_sync_insert_kernels(&self, kernels: Vec<TransactionKernel>) -> Result<(), ChainStorageError> {
        let mut db = self.db_write_access()?;
        let mut txn = DbTransaction::new();
        kernels.into_iter().for_each(|kernel| txn.insert_kernel(kernel));
        txn.create_mmr_checkpoint(MmrTree::Kernel);
        commit(&mut *db, txn)
    }
pub fn horizon_sync_insert_kernels ( & self , kernels : Vec < TransactionKernel > ) -> Result < ( ) , ChainStorageError > { let mut db = self . db_write_access ( ) ? ; let mut txn = DbTransaction :: new ( ) ; kernels . into_iter ( ) . for_each ( | kernel | txn . insert_kernel ( kernel ) ) ; txn . create_mmr_checkpoint ( MmrTree :: Kernel ) ; commit ( & mut * db , txn ) }
Store the provided set of kernels and persists a checkpoint
Store the provided set of kernels and persists a checkpoint
&self
kernels
Vec<TransactionKernel>