Skip to content

Conversation

mvadari
Copy link
Collaborator

@mvadari mvadari commented May 1, 2025

High Level Overview of Change

New defaults are 100kb size cap, 1 million gas cap

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

Copy link

codecov bot commented May 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (ripple/smart-escrow@bb9bc76). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                  @@
##             ripple/smart-escrow   #5417   +/-   ##
=====================================================
  Coverage                       ?   77.9%           
=====================================================
  Files                          ?     797           
  Lines                          ?   68967           
  Branches                       ?    8415           
=====================================================
  Hits                           ?   53749           
  Misses                         ?   15218           
  Partials                       ?       0           
Files with missing lines Coverage Δ
src/xrpld/core/Config.h 85.7% <ø> (ø)

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mvadari mvadari enabled auto-merge (squash) May 1, 2025 22:17
@mvadari mvadari disabled auto-merge May 1, 2025 22:31
@mvadari mvadari merged commit c533abd into XRPLF:ripple/smart-escrow May 1, 2025
18 of 20 checks passed
@mvadari mvadari deleted the gas-cap branch May 1, 2025 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants