core, miner: added value check on tx validation
* Changed CalcGasLimit to no longer need current block * Added a gas * price + value on tx validation * Transactions in the pool are now re-validated once every X
This commit is contained in:
@ -236,7 +236,7 @@ func (self *worker) makeCurrent() {
|
||||
}
|
||||
|
||||
parent := self.chain.GetBlock(self.current.block.ParentHash())
|
||||
self.current.coinbase.SetGasPool(core.CalcGasLimit(parent, self.current.block))
|
||||
self.current.coinbase.SetGasPool(core.CalcGasLimit(parent))
|
||||
}
|
||||
|
||||
func (self *worker) commitNewWork() {
|
||||
|
Reference in New Issue
Block a user