pub struct LightClientCellCollector { /* private fields */ }Implementations§
source§impl LightClientCellCollector
impl LightClientCellCollector
pub fn new(url: &str) -> LightClientCellCollector
Trait Implementations§
source§impl CellCollector for LightClientCellCollector
impl CellCollector for LightClientCellCollector
source§fn collect_live_cells(
&mut self,
query: &CellQueryOptions,
apply_changes: bool
) -> Result<(Vec<LiveCell>, u64), CellCollectorError>
fn collect_live_cells(
&mut self,
query: &CellQueryOptions,
apply_changes: bool
) -> Result<(Vec<LiveCell>, u64), CellCollectorError>
Collect live cells by query options, if
apply_changes is true will
mark all collected cells as dead cells.source§fn lock_cell(&mut self, out_point: OutPoint) -> Result<(), CellCollectorError>
fn lock_cell(&mut self, out_point: OutPoint) -> Result<(), CellCollectorError>
Mark this cell as dead cell
source§fn apply_tx(&mut self, tx: Transaction) -> Result<(), CellCollectorError>
fn apply_tx(&mut self, tx: Transaction) -> Result<(), CellCollectorError>
Mark all inputs as dead cells and outputs as live cells in the transaction.