From 975c5912610013d5486336ab825ede86c8369b9a Mon Sep 17 00:00:00 2001 From: zsfelfoldi Date: Sat, 21 Nov 2015 00:40:36 +0100 Subject: core: tx pool skip price validation for "owned" transactions --- eth/api.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'eth') 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 } -- cgit