aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2016-02-08 18:11:07 +0800
committerBas van Kervel <bas@ethdev.com>2016-02-08 18:11:07 +0800
commit5fb68f4b39b91fec33dc5a7096f1f6f9af7bc560 (patch)
treeb8ba64c432f0fdfc15033191a999ddb149cd3a1a
parent707ac67babbe9f58b35342de6529fd800a2b9401 (diff)
downloadgo-tangerine-5fb68f4b39b91fec33dc5a7096f1f6f9af7bc560.tar
go-tangerine-5fb68f4b39b91fec33dc5a7096f1f6f9af7bc560.tar.gz
go-tangerine-5fb68f4b39b91fec33dc5a7096f1f6f9af7bc560.tar.bz2
go-tangerine-5fb68f4b39b91fec33dc5a7096f1f6f9af7bc560.tar.lz
go-tangerine-5fb68f4b39b91fec33dc5a7096f1f6f9af7bc560.tar.xz
go-tangerine-5fb68f4b39b91fec33dc5a7096f1f6f9af7bc560.tar.zst
go-tangerine-5fb68f4b39b91fec33dc5a7096f1f6f9af7bc560.zip
eth: sendTransaction would not report the error when tx could not be added to tx pool
-rw-r--r--eth/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/api.go b/eth/api.go
index 617643e10..526590589 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -999,7 +999,7 @@ func (s *PublicTransactionPoolAPI) SendTransaction(args SendTxArgs) (common.Hash
s.txPool.SetLocal(signedTx)
if err := s.txPool.Add(signedTx); err != nil {
- return common.Hash{}, nil
+ return common.Hash{}, err
}
if contractCreation {