File tree 4 files changed +3
-7
lines changed
4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -245,8 +245,7 @@ impl RpcDB {
245
245
246
246
// pre-execute and get all state changes
247
247
let result = LEVM :: execute_block ( block, & mut db) . map_err ( Box :: new) ?;
248
- let execution_updates =
249
- LEVM :: get_state_transitions ( & mut db, Fork :: default ( ) ) . map_err ( Box :: new) ?;
248
+ let execution_updates = LEVM :: get_state_transitions ( & mut db) . map_err ( Box :: new) ?;
250
249
251
250
let index: Vec < ( Address , Vec < H256 > ) > = self
252
251
. cache
Original file line number Diff line number Diff line change @@ -40,15 +40,14 @@ pub fn main() {
40
40
let mut acc_account_updates: HashMap < Address , AccountUpdate > = HashMap :: new ( ) ;
41
41
42
42
for block in blocks {
43
- let fork = db. chain_config . fork ( block. header . timestamp ) ;
44
43
// Validate the block
45
44
validate_block ( & block, & parent_header, & db. chain_config ) . expect ( "invalid block" ) ;
46
45
47
46
// Execute block
48
47
let mut vm = Evm :: from_execution_db ( db. clone ( ) ) ;
49
48
let result = vm. execute_block ( & block) . expect ( "failed to execute block" ) ;
50
49
let receipts = result. receipts ;
51
- let account_updates = vm. get_state_transitions ( fork ) ?;
50
+ let account_updates = vm. get_state_transitions ( ) ?;
52
51
53
52
// Update db for the next block
54
53
db. apply_account_updates ( & account_updates) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ fn main() {
39
39
let mut cumulative_gas_used = 0 ;
40
40
41
41
for block in blocks {
42
- let fork = db. chain_config . fork ( block. header . timestamp ) ;
43
42
// Validate the block
44
43
validate_block ( & block, & parent_header, & db. chain_config ) . expect ( "invalid block" ) ;
45
44
@@ -48,7 +47,7 @@ fn main() {
48
47
let result = vm. execute_block ( & block) . expect ( "failed to execute block" ) ;
49
48
let receipts = result. receipts ;
50
49
let account_updates = vm
51
- . get_state_transitions ( fork )
50
+ . get_state_transitions ( )
52
51
. expect ( "failed to get state transitions" ) ;
53
52
54
53
cumulative_gas_used += receipts
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ pub fn main() {
40
40
let mut cumulative_gas_used = 0 ;
41
41
42
42
for block in blocks {
43
- let fork = db. chain_config . fork ( block. header . timestamp ) ;
44
43
// Validate the block
45
44
validate_block ( & block, & parent_header, & db. chain_config ) . expect ( "invalid block" ) ;
46
45
You can’t perform that action at this time.
0 commit comments