Skip to content

Commit

Permalink
update default gas limit for tendermint
Browse files Browse the repository at this point in the history
Signed-off-by: ozkanonur <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Apr 17, 2023
1 parent fe38f18 commit 0da7d9e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion mm2src/coins/tendermint/tendermint_coin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const ABCI_REQUEST_PROVE: bool = false;
/// 0.25 is good average gas price on atom and iris
const DEFAULT_GAS_PRICE: f64 = 0.25;
pub(super) const TIMEOUT_HEIGHT_DELTA: u64 = 100;
pub const GAS_LIMIT_DEFAULT: u64 = 100_000;
pub const GAS_LIMIT_DEFAULT: u64 = 125_000;
pub(crate) const TX_DEFAULT_MEMO: &str = "";

// https://github.com/irisnet/irismod/blob/5016c1be6fdbcffc319943f33713f4a057622f0a/modules/htlc/types/validation.go#L19-L22
Expand Down
20 changes: 10 additions & 10 deletions mm2src/mm2_test_helpers/dummy_files/iris_nimda_history.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.027385",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "3930374535314439384537304239343431413230443630420000000000000000",
Expand Down Expand Up @@ -45,7 +45,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.028433",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "4138433845353931363133303743353941344143374536320000000000000000",
Expand Down Expand Up @@ -74,7 +74,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.026403",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "3436313245464444363537373544434341433838463935340000000000000000",
Expand Down Expand Up @@ -103,7 +103,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.028433",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "3931453345363544374341333833394331463141394435320000000000000000",
Expand Down Expand Up @@ -134,7 +134,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.025763",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "3643343243423346353232433844414333343138443338440000000000000000",
Expand Down Expand Up @@ -162,7 +162,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.022114",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "4631313139343742323142303344373639303343333441370000000000000000",
Expand Down Expand Up @@ -190,7 +190,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.026861",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "3236413546344639343144434531363135373046373530330000000000000000",
Expand Down Expand Up @@ -218,7 +218,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.026861",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "4344413036444433353735413332323330363430414634310000000000000000",
Expand Down Expand Up @@ -246,7 +246,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.022114",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "4339384239303045393643333738453237333945314344330000000000000000",
Expand Down Expand Up @@ -274,7 +274,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.02316",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-NIMDA",
"internal_id": "4136303630343838314237323638453734433246453537450000000000000000",
Expand Down
32 changes: 16 additions & 16 deletions mm2src/mm2_test_helpers/dummy_files/iris_test_history.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.022145",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "3338384245443830413744344633314337443043303141460000000000000000",
Expand All @@ -42,7 +42,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.027215",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "3644333931323846453142423238354542363542413237300000000000000000",
Expand Down Expand Up @@ -71,7 +71,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.027385",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "0000000000000000423036443032413134343942303745383944313545373039",
Expand All @@ -95,7 +95,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.028433",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "0000000000000000323645374341344139354337303331363139354538433841",
Expand All @@ -119,7 +119,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.026403",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "0000000000000000343539463838434143434435373735364444464532313634",
Expand All @@ -143,7 +143,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.02856",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "3533313331314334433333384341323539443144423441380000000000000000",
Expand Down Expand Up @@ -174,7 +174,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.022085",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "3332313535443541424134344134343736463332363433370000000000000000",
Expand All @@ -198,7 +198,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.026446",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "3945383530394438433442384645464138413133443235320000000000000000",
Expand Down Expand Up @@ -227,7 +227,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.026426",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "4538314545353844354538344630413743344437364142360000000000000000",
Expand Down Expand Up @@ -256,7 +256,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.028455",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "4135353530353436314138373531433631443333364331460000000000000000",
Expand Down Expand Up @@ -285,7 +285,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.02648",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "4444394136304639344533383037313336353232394430310000000000000000",
Expand Down Expand Up @@ -314,7 +314,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.028433",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "0000000000000000323544394131463143393338334143374435364533453139",
Expand All @@ -338,7 +338,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.025763",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "0000000000000000443833443831343343414438433232354633424332344336",
Expand All @@ -364,7 +364,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.026861",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "3236413546344639343144434531363135373046373530330000000000000001",
Expand All @@ -390,7 +390,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.026861",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "4344413036444433353735413332323330363430414634310000000000000001",
Expand All @@ -416,7 +416,7 @@
"type": "Tendermint",
"coin": "IRIS-TEST",
"amount": "0.2",
"gas_limit": 100000
"gas_limit": 125000
},
"coin": "IRIS-TEST",
"internal_id": "3846394537344334443745414531314244303741424145410000000000000000",
Expand Down

0 comments on commit 0da7d9e

Please sign in to comment.