Active model of a block within the block chain. Keeps track of all transactions, receipts and state for a particular block. Can apply all needed transforms of the state for rewards and contains logic for sealing the block.
More...
|
| | Block (u256 const &_accountStartNonce) |
| | Default constructor; creates with a blank database prepopulated with the genesis block. More...
|
| |
| | Block (BlockChain const &_bc, OverlayDB const &_db, BaseState _bs=BaseState::PreExisting, Address const &_author=Address()) |
| |
| | Block (BlockChain const &_bc, OverlayDB const &_db, h256 const &_root, Address const &_author=Address()) |
| |
| | Block (NullType) |
| |
| | Block (BlockChain const &_bc) |
| | Construct from a given blockchain. Empty, but associated with _bc 's chain params. More...
|
| |
| | Block (Block const &_s) |
| | Copy state object. More...
|
| |
| Block & | operator= (Block const &_s) |
| | Copy state object. More...
|
| |
| Address | author () const |
| | Get the author address for any transactions we do and rewards we get. More...
|
| |
| void | setAuthor (Address const &_id) |
| |
| void | noteChain (BlockChain const &_bc) |
| |
| u256 | balance (Address const &_address) const |
| |
| u256 | transactionsFrom (Address const &_address) const |
| |
| bool | addressInUse (Address const &_address) const |
| | Check if the address is in use. More...
|
| |
| bool | addressHasCode (Address const &_address) const |
| | Check if the address contains executable code. More...
|
| |
| h256 | storageRoot (Address const &_contract) const |
| | Get the root of the storage of an account. More...
|
| |
| u256 | storage (Address const &_contract, u256 const &_memory) const |
| |
| std::map< h256, std::pair< u256, u256 > > | storage (Address const &_contract) const |
| |
| bytes const & | code (Address const &_contract) const |
| |
| h256 | codeHash (Address const &_contract) const |
| |
| State const & | state () const |
| | Get the backing state object. More...
|
| |
| OverlayDB const & | db () const |
| | Open a DB - useful for passing into the constructor & keeping for other states that are necessary. More...
|
| |
| h256 | rootHash () const |
| | The hash of the root of our state tree. More...
|
| |
| std::unordered_map< Address, u256 > | addresses () const |
| |
| State & | mutableState () |
| |
| u256 | gasLimitRemaining () const |
| | Get the remaining gas limit in this block. More...
|
| |
| Transactions const & | pending () const |
| | Get the list of pending transactions. More...
|
| |
| h256Hash const & | pendingHashes () const |
| | Get the list of hashes of pending transactions. More...
|
| |
| TransactionReceipt const & | receipt (unsigned _i) const |
| | Get the transaction receipt for the transaction of the given index. More...
|
| |
| LogEntries const & | log (unsigned _i) const |
| | Get the list of pending transactions. More...
|
| |
| LogBloom | logBloom () const |
| | Get the bloom filter of all logs that happened in the block. More...
|
| |
| LogBloom const & | logBloom (unsigned _i) const |
| | Get the bloom filter of a particular transaction that happened in the block. More...
|
| |
| h256 | stateRootBeforeTx (unsigned _i) const |
| |
| PopulationStatistics | populateFromChain (BlockChain const &_bc, h256 const &_hash, ImportRequirements::value _ir=ImportRequirements::None) |
| | Construct state object from arbitrary point in blockchain. More...
|
| |
| ExecutionResult | execute (LastBlockHashesFace const &_lh, Transaction const &_t, Permanence _p=Permanence::Committed, OnOpFunc const &_onOp=OnOpFunc()) |
| |
| std::pair< TransactionReceipts, bool > | sync (BlockChain const &_bc, TransactionQueue &_tq, GasPricer const &_gp, unsigned _msTimeout=100) |
| |
| bool | sync (BlockChain const &_bc) |
| |
| bool | sync (BlockChain const &_bc, h256 const &_blockHash, BlockHeader const &_bi=BlockHeader()) |
| | Sync with the block chain, but rather than synching to the latest block, instead sync to the given block. More...
|
| |
| u256 | enactOn (VerifiedBlockRef const &_block, BlockChain const &_bc) |
| |
| void | cleanup () |
| | Returns back to a pristine state after having done a playback. More...
|
| |
| void | resetCurrent (int64_t _timestamp=utcTime()) |
| |
| void | commitToSeal (BlockChain const &_bc, bytes const &_extraData={}) |
| |
| bool | sealBlock (bytes const &_header) |
| |
| bool | sealBlock (bytesConstRef _header) |
| |
| bool | isSealed () const |
| |
| bytes const & | blockData () const |
| |
| BlockHeader const & | info () const |
| | Get the header information on the present block. More...
|
| |
Active model of a block within the block chain. Keeps track of all transactions, receipts and state for a particular block. Can apply all needed transforms of the state for rewards and contains logic for sealing the block.
Definition at line 68 of file Block.h.