Trait ckb_traits::CellDataProvider[][src]

pub trait CellDataProvider {
    fn get_cell_data(&self, out_point: &OutPoint) -> Option<Bytes>;
fn get_cell_data_hash(&self, out_point: &OutPoint) -> Option<Byte32>; fn load_cell_data(&self, cell: &CellMeta) -> Option<Bytes> { ... }
fn load_cell_data_hash(&self, cell: &CellMeta) -> Option<Byte32> { ... } }
Expand description

TODO(doc): @quake

Required methods

fetch cell_data from storage

fetch cell_data_hash from storage

Provided methods

load cell_data from memory, fallback to storage access

load cell_data_hash from memory, fallback to storage access

Implementors