BlockManager => BlockProcessor
This commit is contained in:
		@@ -73,7 +73,7 @@ func (sm *BlockProcessor) TransitionState(statedb *state.StateDB, parent, block
 | 
				
			|||||||
	coinbase := statedb.GetOrNewStateObject(block.Header().Coinbase)
 | 
						coinbase := statedb.GetOrNewStateObject(block.Header().Coinbase)
 | 
				
			||||||
	coinbase.SetGasPool(CalcGasLimit(parent, block))
 | 
						coinbase.SetGasPool(CalcGasLimit(parent, block))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Process the transactions on to current block
 | 
						// Process the transactions on to parent state
 | 
				
			||||||
	receipts, _, _, _, err = sm.ApplyTransactions(coinbase, statedb, block, block.Transactions(), false)
 | 
						receipts, _, _, _, err = sm.ApplyTransactions(coinbase, statedb, block, block.Transactions(), false)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
@@ -224,7 +224,7 @@ func (sm *BlockProcessor) ProcessWithParent(block, parent *types.Block) (td *big
 | 
				
			|||||||
		messages := state.Manifest().Messages
 | 
							messages := state.Manifest().Messages
 | 
				
			||||||
		state.Manifest().Reset()
 | 
							state.Manifest().Reset()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		chainlogger.Infof("Processed block #%d (%x...)\n", header.Number, block.Hash()[0:4])
 | 
							chainlogger.Infof("processed block #%d (%x...)\n", header.Number, block.Hash()[0:4])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		sm.txpool.RemoveSet(block.Transactions())
 | 
							sm.txpool.RemoveSet(block.Transactions())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user