Skip to content

Conversation

@samliok
Copy link
Contributor

@samliok samliok commented Dec 4, 2025

Why this should be merged

Allows the caller to return from Transfer without needing to wait for the transaction to be accepted. Can be helpful for load testing, or just scenarios where you don't care about waiting.

How this works

Adds an additional flag to the xsvm.Transfer cmd

How this was tested

Need to be documented in RELEASES.md?

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a WaitForAcceptance flag to the XSVM transfer command, allowing callers to return immediately after issuing a transaction without waiting for acceptance. This is useful for load testing scenarios or when confirmation waiting is not required.

Key Changes

  • Added WaitForAcceptance boolean flag with a default value of true to maintain backward compatibility
  • Modified the transfer logic to conditionally wait for transaction acceptance based on the flag value

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
vms/example/xsvm/cmd/issue/transfer/flags.go Added WaitForAcceptanceKey constant, flag definition, Config field, and parsing logic for the new flag
vms/example/xsvm/cmd/issue/transfer/cmd.go Modified Transfer function to conditionally await transaction acceptance based on the new flag

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants