clementine_core::bitcoin_syncer

Function process_new_blocks

Source
async fn process_new_blocks(
    db: &Database,
    rpc: &ExtendedBitcoinRpc,
    dbtx: DatabaseTransaction<'_, '_>,
    new_blocks: &[BlockInfo],
) -> Result<(), BridgeError>
Expand description

Processes and inserts new blocks into the database, emitting a new block event for each.