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

Commits vs. rollbacks #784

Closed
ch1bo opened this issue Mar 21, 2023 · 5 comments · Fixed by #827
Closed

Commits vs. rollbacks #784

ch1bo opened this issue Mar 21, 2023 · 5 comments · Fixed by #827
Assignees
Labels
bug 🐛 Something isn't working
Milestone

Comments

@ch1bo
Copy link
Collaborator

ch1bo commented Mar 21, 2023

Context & versions

When opening a head today we saw a rollback going exactly onto a commit tx and then we remained with some commits pending and nobody tried a collect com transaction.

Issue is now to collect logs.

Steps to reproduce

Maybe hard, but do some commits and have a rollback in between them?

Actual behavior

Head is not getting opened because no collect transaction is posted.

Expected behavior

The head to open normally, even if we see a rollback and forward of commit transactions.

@ch1bo ch1bo added the bug 🐛 Something isn't working label Mar 21, 2023
@ch1bo
Copy link
Collaborator Author

ch1bo commented Mar 21, 2023

@v0d1ch
Copy link
Contributor

v0d1ch commented Mar 22, 2023

@ch1bo
Copy link
Collaborator Author

ch1bo commented Mar 22, 2023

A reconstruction of the events according to my logs:

2023-03-21T16:34:58.185974508Z sebastian commits @ 87850207
2023-03-21T16:35:20.63664424Z sasha commits @ 87850229

2023-03-21T16:35:23.876833226Z RolledBackward to 87850207

2023-03-21T16:35:24.091232319Z sasha commits @ 87850230
2023-03-21T16:35:28.289744255Z arnaud commits @ 87850237

We would have expected that arnaud's node does post a collect com after seeing his commit, even in presence of the rollback in between.

Unfortunately we do not have the logs anymore of arnaud's log. A concrete step forward could be to change the HeadLogic so everyone tries to post a collect (which is in fact what is in the spec).

@ch1bo
Copy link
Collaborator Author

ch1bo commented Mar 22, 2023

Aborting was not possible for me as my node sees my own commit as pending still:

cat /data/hydra-node/state | jq '.contents.pendingCommits '
[
  {
    "vkey": "43d8ac3fb8e39b355005ed546c8fc9cd80e4909cb254835513a542b1c9a2e3ad"
  }
]

sebastian-state.txt

And the validator prevents this as I already committed on chain:

{"failureReason":"ValidationFailedV2 (CekError An error has occurred:  User error:\nThe machine terminated because of an error, either from a bu
       │ ilt-in function or from an explicit use of 'error'.) [\"H03\",\"PT5\"]","redeemerPtr":"RdmrPtr Spend 2","tag":"ScriptFailedInWallet"

@ch1bo
Copy link
Collaborator Author

ch1bo commented Mar 22, 2023

We have found the culprit:

@ch1bo ch1bo linked a pull request Mar 30, 2023 that will close this issue
4 tasks
@ch1bo ch1bo removed a link to a pull request Mar 30, 2023
4 tasks
@ghost ghost added this to the 0.10.0 milestone Apr 7, 2023
@ghost ghost mentioned this issue Apr 11, 2023
4 tasks
@ch1bo ch1bo linked a pull request Apr 14, 2023 that will close this issue
4 tasks
@pgrange pgrange mentioned this issue Apr 20, 2023
4 tasks
@ch1bo ch1bo assigned ch1bo and unassigned ch1bo Apr 21, 2023
@ch1bo ch1bo self-assigned this May 5, 2023
@ch1bo ch1bo closed this as completed in #827 May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants