From 145e02fc5444eb878f67c58e310e7c5e324bb27a Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 26 Apr 2015 11:19:40 +0200 Subject: 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 --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miner') diff --git a/miner/worker.go b/miner/worker.go index 19ede3c93..a38b8a5d4 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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() { -- cgit v1.2.3