Skip to content

refactor: new ticket count and onboarding init payload#921

Open
douglasgalico wants to merge 2 commits into
mainfrom
xrpl_findings_cli
Open

refactor: new ticket count and onboarding init payload#921
douglasgalico wants to merge 2 commits into
mainfrom
xrpl_findings_cli

Conversation

@douglasgalico

Copy link
Copy Markdown
Contributor

No description provided.

// XRPL caps an account at 250 tickets.
const MAX_TICKETS = 250;
// XRPL caps an account at 175 tickets.
const MAX_TICKETS = 175;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide some more context for this change, maybe in the PR description?

I'm unclear why this value is being modified. The docs seem to list 250 as the correct limit: https://xrpl.org/docs/concepts/accounts/tickets

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's related to the Sequencer change at TicketEntry that grows from 27 -> 59 byes (as includes source_emitter). Then to keep under 10kIB MAX_PERMITTED_DATA_INCREASE for CPI create_account the TICKET_LEDGER_CAPACITY was reduced there from 250 to 170 (fixed the 175*)

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.

2 participants