core: tx pool skip price validation for "owned" transactions

This commit is contained in:
zsfelfoldi
2015-12-16 03:21:17 +01:00
parent b9aedeab0b
commit 975c591261
4 changed files with 76 additions and 5 deletions
+2
View File
@@ -926,6 +926,7 @@ func (s *PublicTransactionPoolAPI) SendTransaction(args SendTxArgs) (common.Hash
return common.Hash{}, err
}
s.txPool.SetLocal(signedTx)
if err := s.txPool.Add(signedTx); err != nil {
return common.Hash{}, nil
}
@@ -948,6 +949,7 @@ func (s *PublicTransactionPoolAPI) SendRawTransaction(encodedTx string) (string,
return "", err
}
s.txPool.SetLocal(tx)
if err := s.txPool.Add(tx); err != nil {
return "", err
}