-
Notifications
You must be signed in to change notification settings - Fork 21.6k
all: define constructor for BlobSidecar #32213
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
Conversation
| if err != nil { | ||
| // TODO @rjl @marius we should return an error | ||
| log.Info("Failed to get cell proof", "err", err) | ||
| return nil, nil |
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 am not sure it's the correct way to return the error in engine API. @lightclient @MariusVanDerWijden please check it out
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.
InvalidParams is probably the most correct in this case
MariusVanDerWijden
left a comment
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.
LGTM, much cleaner than before
miner/worker.go
Outdated
| if err := sidecar.ToV1(); err != nil { | ||
| txs.Shift() | ||
| txs.Pop() | ||
| log.Info("Failed to recompute cell proofs", "hash", ltx.Hash, "err", err) |
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.
This should probably be a warn or an error, it means that we have transactions in our blobpool that we can't turn into V1 transactions, thus someone could fill up the pool with invalid/non-mineable transaction
The main purpose of this change is to enforce the version setting when constructing the blobSidecar, avoiding creating sidecar with wrong/default version tag.
The main purpose of this change is to enforce the version setting when constructing the blobSidecar, avoiding creating sidecar with wrong/default version tag.
The main purpose of this change is to enforce the version setting when constructing
the blobSidecar, avoiding creating sidecar with wrong/default version tag.