Browse Source

Merge pull request #2183 from bas-vk/issue2180

eth_sendTransaction, error not reported
Péter Szilágyi 9 năm trước cách đây
mục cha
commit
856b9e9c50
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      eth/api.go

+ 1 - 1
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 {