Skip to content
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

Move locking into issueTx #2532

Merged
merged 4 commits into from
Dec 22, 2023
Merged

Move locking into issueTx #2532

merged 4 commits into from
Dec 22, 2023

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Factored out of #2490.

How this works

  • Rather than holding the lock when network.IssueTx is called - we grab the lock internally.
  • This also notifies the network when adding a transaction from the wallet service API.
    • This actually fixes a small bug - we weren't correctly pushing the tx to peers when issued here previously.

How this was tested

  • CI
  • Added new tests around IssueTx and IssueVerifiedTx to ensure that gossip is happening as expected.

@StephenButtolph StephenButtolph added the vm This involves virtual machines label Dec 21, 2023
@StephenButtolph StephenButtolph added this to the v1.10.18 milestone Dec 21, 2023
@StephenButtolph StephenButtolph self-assigned this Dec 21, 2023
vms/avm/vm.go Outdated Show resolved Hide resolved
@StephenButtolph StephenButtolph added this pull request to the merge queue Dec 21, 2023
Merged via the queue into dev with commit 1f8f10f Dec 22, 2023
17 checks passed
@StephenButtolph StephenButtolph deleted the rework-networking-issaunce branch December 22, 2023 00:02
This was referenced Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vm This involves virtual machines
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants