# Struct ethcore::snapshot::StateRebuilder [−] [src]

    pub struct StateRebuilder { /* fields omitted */ }

Used to rebuild the state trie piece by piece.

## Methods

### `impl StateRebuilder`
[src]

#### `fn new(db: Arc<Database>, pruning: Algorithm) -> Self`

Create a new state rebuilder to write into the given backing DB.

#### `fn feed(&mut self, chunk: &[u8], flag: &AtomicBool) -> Result<(), Error>`

Feed an uncompressed state chunk into the rebuilder.

#### `fn check_missing(self) -> Result<(), Error>`

Check for accounts missing code. Once all chunks have been fed, there should be none.

#### `fn state_root(&self) -> H256`

Get the state root of the rebuilder.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)