aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorzsfelfoldi <zsfelfoldi@gmail.com>2015-11-21 07:40:36 +0800
committerzsfelfoldi <zsfelfoldi@gmail.com>2015-12-16 10:21:17 +0800
commit975c5912610013d5486336ab825ede86c8369b9a (patch)
treed6538d856e23f4515c55d7b8787b2ae2c79d4291 /eth
parentb9aedeab0b1cf56860f5ca53333a4f348395259c (diff)
downloadgo-tangerine-975c5912610013d5486336ab825ede86c8369b9a.tar
go-tangerine-975c5912610013d5486336ab825ede86c8369b9a.tar.gz
go-tangerine-975c5912610013d5486336ab825ede86c8369b9a.tar.bz2
go-tangerine-975c5912610013d5486336ab825ede86c8369b9a.tar.lz
go-tangerine-975c5912610013d5486336ab825ede86c8369b9a.tar.xz
go-tangerine-975c5912610013d5486336ab825ede86c8369b9a.tar.zst
go-tangerine-975c5912610013d5486336ab825ede86c8369b9a.zip
core: tx pool skip price validation for "owned" transactions
Diffstat (limited to 'eth')
-rw-r--r--eth/api.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/eth/api.go b/eth/api.go
index 068b350db..a1630e2d1 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -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
}