[][src]Trait storage_interface::DbWriter

pub trait DbWriter: Send + Sync {
    fn save_transactions(
        &self,
        txns_to_commit: &[TransactionToCommit],
        first_version: Version,
        ledger_info_with_sigs: Option<&LedgerInfoWithSignatures>
    ) -> Result<()>; }

Trait that is implemented by a DB that supports certain public (to client) write APIs expected of a Libra DB. This adds write APIs to DbReader.

Required methods

fn save_transactions(
    &self,
    txns_to_commit: &[TransactionToCommit],
    first_version: Version,
    ledger_info_with_sigs: Option<&LedgerInfoWithSignatures>
) -> Result<()>

Persist transactions. Called by the executor module when either syncing nodes or committing blocks during normal operation. See LibraDB::save_transactions.

Loading content...

Implementors

Loading content...