-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Update size and compute cap defaults #5417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/test/jtx/impl/envconfig.cpp
Outdated
cfg.FEES.gas_price = 1000000; | ||
cfg.FEES.extension_compute_limit = 1'000'000; | ||
cfg.FEES.extension_size_limit = 100'000; | ||
cfg.FEES.gas_price = 1'000'000; // 1 XRP = 1,000,000 micro-drops |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 XRP = 1,000,000 micro-drops? what is the difference between drop and micro-drops?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, typo - should be "1 drop = 1 million micro-drops", fixed
# | ||
# Example: | ||
# gas_price = 2000000 # 2 drops per gas | ||
# gas_price = 1000000 # 1 drop per gas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote for lower the price. Olek's base58 conversion example took 200k gas, so 0.2 XRP, about $0.45. seems high.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for Devnet purposes, not for mainnet - so it's easier to track gas usage. If you'd prefer lower even for the Devnet I can do like 1k microdrops
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## ripple/smart-escrow #5417 +/- ##
=====================================================
Coverage ? 77.9%
=====================================================
Files ? 797
Lines ? 68967
Branches ? 8415
=====================================================
Hits ? 53749
Misses ? 15218
Partials ? 0
🚀 New features to boost your workflow:
|
High Level Overview of Change
New defaults are 100kb size cap, 1 million gas cap
Context of Change
Type of Change
.gitignore
, formatting, dropping support for older tooling)API Impact
libxrpl
change (any change that may affectlibxrpl
or dependents oflibxrpl
)