# Struct ethcore::block::LockedBlock [−] [src]

    pub struct LockedBlock { /* fields omitted */ }

Just like `ClosedBlock` except that we can't reopen it and it's faster.

We actually store the post-`Engine::on_close_block` state, unlike in `ClosedBlock` where it's the pre.

## Methods

### `impl LockedBlock`
[src]

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

Get the hash of the header without seal arguments.

#### `fn seal(self,
engine: &Engine,
seal: Vec<Bytes>)
-> Result<SealedBlock, BlockError>`

Provide a valid seal in order to turn this into a `SealedBlock`.

NOTE: This does not check the validity of `seal` with the engine.

#### `fn try_seal(self,
engine: &Engine,
seal: Vec<Bytes>)
-> Result<SealedBlock, (Error, LockedBlock)>`

Provide a valid seal in order to turn this into a `SealedBlock`. This does check the validity of `seal` with the engine. Returns the `ClosedBlock` back again if the seal is no good.

## Trait Implementations

### `impl Clone for LockedBlock`
[src]

#### `fn clone(&self) -> LockedBlock`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

### `impl<'x> IsBlock for LockedBlock`
[src]

#### `fn block(&self) -> &ExecutedBlock`

Get the `ExecutedBlock` associated with this object.

#### `fn to_base(&self) -> Block`

Get the base `Block` object associated with this.

#### `fn header(&self) -> &Header`

Get the header associated with this object's block.

#### `fn state(&self) -> &State`

Get the final state associated with this object's block.

#### `fn transactions(&self) -> &[SignedTransaction]`

Get all information on transactions in this block.

#### `fn receipts(&self) -> &[Receipt]`

Get all information on receipts in this block.

#### `fn traces(&self) -> &Option<Vec<Vec<FlatTrace>>>`

Get all information concerning transaction tracing in this block.

#### `fn uncles(&self) -> &[Header]`

Get all uncles in this block.

### `impl Drain for LockedBlock`
[src]

#### `fn drain(self) -> StateDB`

Drop this object and return the underlieing database.

# 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`)