core, core/types, miner: fix transaction nonce-price combo sort

This commit is contained in:
Péter Szilágyi
2016-01-22 12:05:17 +02:00
parent 78f1964095
commit a2dc074b1d
4 changed files with 132 additions and 23 deletions

View File

@ -376,7 +376,7 @@ func (self *TxPool) GetQueuedTransactions() types.Transactions {
ret = append(ret, tx)
}
}
sort.Sort(types.TxByNonce{ret})
sort.Sort(types.TxByNonce(ret))
return ret
}