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

This commit is contained in:
zsfelfoldi
2015-11-21 00:40:36 +01:00
parent b9aedeab0b
commit 975c591261
4 changed files with 76 additions and 5 deletions

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
}