Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

rpc: cap gas limit of local calls #8943

Merged
merged 1 commit into from
Jun 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions rpc/src/v1/helpers/fake_sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

use transaction::{Transaction, SignedTransaction, Action};
use ethereum_types::U256;

use jsonrpc_core::Error;
use v1::helpers::CallRequest;
Expand All @@ -29,7 +28,7 @@ pub fn sign_call(request: CallRequest, gas_cap: bool) -> Result<SignedTransactio
}
Some(gas) => gas,
None if gas_cap => max_gas,
None => U256::from(2) << 50,
None => max_gas * 10,
};
let from = request.from.unwrap_or(0.into());

Expand Down