aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-26 17:19:40 +0800
committerobscuren <geffobscura@gmail.com>2015-04-26 17:19:40 +0800
commit145e02fc5444eb878f67c58e310e7c5e324bb27a (patch)
tree8e0ffc8003c8f3b58cb8cb6edcc2fce2865e59ad /miner/worker.go
parent8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4 (diff)
downloadgo-tangerine-145e02fc5444eb878f67c58e310e7c5e324bb27a.tar.gz
go-tangerine-145e02fc5444eb878f67c58e310e7c5e324bb27a.tar.zst
go-tangerine-145e02fc5444eb878f67c58e310e7c5e324bb27a.zip
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
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
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() {