-
Notifications
You must be signed in to change notification settings - Fork 9
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
bug: transaction with no input/output states was not delegated properly #502
Comments
After looking into the logs, I see node2 attempting to delegate to node1 (notary) at this point:
But the first line in the node1 logs is this (note the later timestamp):
This looks like node1 crashed and came back up, and apparently it does not remember to keep processing transactions afterward. That leaves two actions:
|
The crash:
|
I can't quite figure out what the nil pointer is on that line. However, this logic does appear to have a hole in it, if you have info states but no output states:
|
Fixes #502 Signed-off-by: Andrew Richardson <[email protected]>
What happened?
I was testing some changes to the Noto domain, part of which involved building a transaction that had only "read" and "info" states, and no "input" or "output" states. The transaction flow seemed to get stuck when it should have delegated to the notary. While I saw the first few steps of the transaction flow happen on node 2 (the sender node), I saw no record at all of the transaction on node 1 (the notary node). When I changed the flow to have "inputs" and "outputs" after assembly, it seemed to work.
What did you expect to happen?
Transactions should always be delegated and submitted properly, regardless of what types of states they contain.
How can we reproduce it (as minimally and precisely as possible)?
See attached logs. Transaction was
046a84d1-bf4e-4ab2-8fa7-74844f4a3306
.paladin1.log
paladin2.log
paladin3.log
Anything else we need to know?
I'm not positive that this is related to read/info states, but that seems to be the only obvious difference in the flows that worked and those that did not.
OS version
No response
The text was updated successfully, but these errors were encountered: