-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Solana] Optional merkle_root on commit accepted event #639
base: main
Are you sure you want to change the base?
Conversation
|
// Will be zero'd (MerkleRoot::Default() in case the commit report included no | ||
// merkle root. This is to circumvent a Go deserialization issue.) | ||
pub merkle_root: MerkleRoot, | ||
pub merkle_root: Option<MerkleRoot>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to communicate this change with the following teams:
- Chain Reader
- Log Poller
- Observability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's chat about it offline, I'm not fully aware yet of the channels/people through which to communicate changes like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've requested this change to fix decoding the report in CR/offchain so LGTM 👍🏻
} | ||
|
||
// This event uses bespoke parsing, as it contains an `Optional` field which cannot be unmarshalled through `bin.UnmarshalBorsh` | ||
func ParseEventCommitReportAccepted(logs []string, event string, obj *EventCommitReportAccepted) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a comment here on why we need to do this differently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the comment in line 85 not sufficient? It was my intention to explain it with that comment 🙂 (plus the one in ParseEvent
which describes why it won't work with events that have an Option
).
If you are asking about the root cause, something is just not right in the borsh decoder implementation of the gagliardetto/bin
library, and it doesn't particularly seem worth the time to investigate it further.
No description provided.