• Jeffrey Wilcke's avatar
    core, eth, rpc: split out block validator and state processor · a1d9ef48
    Jeffrey Wilcke authored
    This removes the burden on a single object to take care of all
    validation and state processing. Now instead the validation is done by
    the `core.BlockValidator` (`types.Validator`) that takes care of both
    header and uncle validation through the `ValidateBlock` method and state
    validation through the `ValidateState` method. The state processing is
    done by a new object `core.StateProcessor` (`types.Processor`) and
    accepts a new state as input and uses that to process the given block's
    transactions (and uncles for rewords) to calculate the state root for
    the next block (P_n + 1).
    a1d9ef48
Name
Last commit
Last update
..
state Loading commit data...
types Loading commit data...
vm Loading commit data...
.gitignore Loading commit data...
asm.go Loading commit data...
bad_block.go Loading commit data...
bench_test.go Loading commit data...
block_validator.go Loading commit data...
block_validator_test.go Loading commit data...
blockchain.go Loading commit data...
blockchain_test.go Loading commit data...
blocks.go Loading commit data...
canary.go Loading commit data...
chain_makers.go Loading commit data...
chain_makers_test.go Loading commit data...
chain_pow.go Loading commit data...
chain_pow_test.go Loading commit data...
chain_util.go Loading commit data...
chain_util_test.go Loading commit data...
default_genesis.go Loading commit data...
error.go Loading commit data...
events.go Loading commit data...
execution.go Loading commit data...
fees.go Loading commit data...
filter_test.go Loading commit data...
gaspool.go Loading commit data...
genesis.go Loading commit data...
helper_test.go Loading commit data...
state_processor.go Loading commit data...
state_transition.go Loading commit data...
transaction_pool.go Loading commit data...
transaction_pool_test.go Loading commit data...
transaction_util.go Loading commit data...
types.go Loading commit data...
vm_env.go Loading commit data...