Skip to main content

store

Function store 

Source
fn store(
    node: Node,
    blocks: &mut BTreeMap<Cid, Vec<u8>>,
    nodes: &mut BTreeMap<Cid, Node>,
) -> Cid
Expand description

Encodes a node, records its block and the node itself, and answers its CID.