aboutsummaryrefslogtreecommitdiffstats
path: root/miner/miner.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-19 07:02:55 +0800
committerobscuren <geffobscura@gmail.com>2014-12-19 07:02:55 +0800
commit22d29a6d52ade3ebcd4ecb341e3f5eafddb8e17b (patch)
treea64a8336516fd28de2c019e8c787c90950267331 /miner/miner.go
parent0dc566124aee24cf3f01b4e586bde7752da89824 (diff)
parenta7f4ade7114ee962110cb7c140e7ce7bd3f6664f (diff)
downloaddexon-22d29a6d52ade3ebcd4ecb341e3f5eafddb8e17b.tar
dexon-22d29a6d52ade3ebcd4ecb341e3f5eafddb8e17b.tar.gz
dexon-22d29a6d52ade3ebcd4ecb341e3f5eafddb8e17b.tar.bz2
dexon-22d29a6d52ade3ebcd4ecb341e3f5eafddb8e17b.tar.lz
dexon-22d29a6d52ade3ebcd4ecb341e3f5eafddb8e17b.tar.xz
dexon-22d29a6d52ade3ebcd4ecb341e3f5eafddb8e17b.tar.zst
dexon-22d29a6d52ade3ebcd4ecb341e3f5eafddb8e17b.zip
merge
Diffstat (limited to 'miner/miner.go')
-rw-r--r--miner/miner.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/miner/miner.go b/miner/miner.go
index 6ba3b1eba..d909c228b 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -236,8 +236,8 @@ func (self *Miner) finiliseTxs() types.Transactions {
key := self.eth.KeyManager()
for i, ltx := range self.localTxs {
tx := types.NewTransactionMessage(ltx.To, ethutil.Big(ltx.Value), ethutil.Big(ltx.Gas), ethutil.Big(ltx.GasPrice), ltx.Data)
- tx.Nonce = state.GetNonce(self.Coinbase)
- state.SetNonce(self.Coinbase, tx.Nonce+1)
+ tx.SetNonce(state.GetNonce(self.Coinbase))
+ state.SetNonce(self.Coinbase, tx.Nonce()+1)
tx.Sign(key.PrivateKey())
@@ -246,7 +246,7 @@ func (self *Miner) finiliseTxs() types.Transactions {
// Faster than append
for _, tx := range self.eth.TxPool().GetTransactions() {
- if tx.GasPrice.Cmp(self.MinAcceptedGasPrice) >= 0 {
+ if tx.GasPrice().Cmp(self.MinAcceptedGasPrice) >= 0 {
txs[actualSize] = tx
actualSize++
}