obscuren преди 11 години
родител
ревизия
46a496428f
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      ethchain/transaction_pool.go
  2. 1 1
      peer.go

+ 1 - 1
ethchain/transaction_pool.go

@@ -105,7 +105,7 @@ func (pool *TxPool) ValidateTransaction(tx *Transaction) error {
 		return fmt.Errorf("[TXPL] Invalid recipient. len = %d", len(tx.Recipient))
 	}
 
-	if tx.GasPrice.Cmp(MinGasPrice) >= 0 {
+	if tx.GasPrice.Cmp(MinGasPrice) < 0 {
 		return fmt.Errorf("Gas price to low. Require %v > Got %v", MinGasPrice, tx.GasPrice)
 	}
 

+ 1 - 1
peer.go

@@ -572,7 +572,7 @@ func (self *Peer) FetchBlocks() {
 func (self *Peer) FetchHashes() {
 	blockPool := self.ethereum.blockPool
 
-	if self.statusKnown && self.td.Cmp(blockPool.td) >= 0 {
+	if self.td.Cmp(blockPool.td) >= 0 {
 		blockPool.td = self.td
 
 		if !blockPool.HasLatestHash() {