From 5af9f9ea1df8373c839dc5901ae3421cc00fc9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 8 Mar 2016 14:42:23 +0200 Subject: [PATCH] eth: remove call limits from the RPC API --- eth/api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/api.go b/eth/api.go index 38b67a07a8..7d25e5b5ed 100644 --- a/eth/api.go +++ b/eth/api.go @@ -660,10 +660,10 @@ func (s *PublicBlockChainAPI) doCall(args CallArgs, blockNr rpc.BlockNumber) (st data: common.FromHex(args.Data), } if msg.gas.Cmp(common.Big0) == 0 { - msg.gas = big.NewInt(50000000) + msg.gas = common.MaxBig } if msg.gasPrice.Cmp(common.Big0) == 0 { - msg.gasPrice = new(big.Int).Mul(big.NewInt(50), common.Shannon) + msg.gasPrice = big.NewInt(1) } // Execute the call and return @@ -1168,7 +1168,7 @@ func (tx *Tx) UnmarshalJSON(b []byte) (err error) { tx.GasLimit = rpc.NewHexNumber(0) } if tx.GasPrice == nil { - tx.GasPrice = rpc.NewHexNumber(int64(50000000000)) + tx.GasPrice = rpc.NewHexNumber(0) } contractCreation := (req.To == nil)