Function holochain::conductor::conductor::full_integration_dump
source · pub async fn full_integration_dump(
vault: &DbRead<DbKindDht>,
dht_ops_cursor: Option<u64>
) -> ConductorApiResult<FullIntegrationStateDump>
Expand description
Dump the full integration json state. Careful! This will return a lot of data.
Examples found in repository?
src/conductor/conductor.rs (line 1939)
1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942
pub async fn dump_full_cell_state(
&self,
cell_id: &CellId,
dht_ops_cursor: Option<u64>,
) -> ConductorApiResult<FullStateDump> {
let authored_db = self.get_or_create_authored_db(cell_id.dna_hash())?;
let dht_db = self.get_or_create_dht_db(cell_id.dna_hash())?;
let dna_hash = cell_id.dna_hash();
let p2p_agents_db = self.spaces.p2p_agents_db(dna_hash)?;
let peer_dump =
p2p_agent_store::dump_state(p2p_agents_db.into(), Some(cell_id.clone())).await?;
let source_chain_dump =
source_chain::dump_state(authored_db.into(), cell_id.agent_pubkey().clone())
.await?;
let out = FullStateDump {
peer_dump,
source_chain_dump,
integration_dump: full_integration_dump(&dht_db, dht_ops_cursor).await?,
};
Ok(out)
}