evm.vm.forks.frontier package

Submodules

evm.vm.forks.frontier.blocks module

class evm.vm.forks.frontier.blocks.FrontierBlock(header, chaindb, transactions=None, uncles=None)

Bases: evm.rlp.blocks.BaseBlock

add_transaction(transaction, computation)
add_uncle(uncle)
bloom_filter = None
chaindb = None
fields = [('header', <class 'evm.rlp.headers.BlockHeader'>), ('transactions', <rlp.sedes.lists.CountableList object>), ('uncles', <rlp.sedes.lists.CountableList object>)]
classmethod from_header(header, chaindb)

Returns the block denoted by the given block header.

get_cumulative_gas_used()

Note return value of this function can be cached based on self.receipt_db.root_hash

get_parent_header()
classmethod get_transaction_class()
hash
make_receipt(transaction, computation)
mine(**kwargs)
  • coinbase
  • uncles_hash
  • state_root
  • transaction_root
  • receipt_root
  • bloom
  • gas_used
  • extra_data
  • mix_hash
  • nonce
number
receipts
transaction_class

alias of FrontierTransaction

validate()
validate_gas_limit()
validate_uncle(uncle)

evm.vm.forks.frontier.constants module

evm.vm.forks.frontier.headers module

evm.vm.forks.frontier.headers.compute_frontier_difficulty(parent_header, timestamp)

Computes the difficulty for a frontier block based on the parent block.

evm.vm.forks.frontier.headers.configure_frontier_header(vm, **header_params)
evm.vm.forks.frontier.headers.create_frontier_header_from_parent(parent_header, **header_params)

evm.vm.forks.frontier.opcodes module

evm.vm.forks.frontier.transactions module

class evm.vm.forks.frontier.transactions.FrontierTransaction(*args, **kwargs)

Bases: evm.rlp.transactions.BaseTransaction

check_signature_validity()
classmethod create_unsigned_transaction(nonce, gas_price, gas, to, value, data)
get_intrensic_gas()
get_message_for_signing()
get_sender()
validate()
class evm.vm.forks.frontier.transactions.FrontierUnsignedTransaction(*args, **kwargs)

Bases: evm.rlp.transactions.BaseUnsignedTransaction

as_signed_transaction(private_key)
validate()

evm.vm.forks.frontier.validation module

evm.vm.forks.frontier.validation.validate_frontier_transaction(vm, transaction)

Module contents