-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: add new task for fevm receipt #1208
Conversation
tasks/fevm/receipt/tasks.go
Outdated
act, err := p.node.Actor(ctx, addr, tsk) | ||
if err != nil { | ||
// If actor not found, then this is a placeholder address | ||
if addr.String()[:5] == "f410f" { |
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.
addr.Protocol() == addr.Delegated
better?
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.
nice 👍
tasks/fevm/receipt/tasks.go
Outdated
func (p *Task) isSentToEVMAddress(ctx context.Context, addr address.Address, tsk types.TipSetKey) bool { | ||
act, err := p.node.Actor(ctx, addr, tsk) | ||
if err != nil { | ||
// If actor not found, then this is a placeholder address |
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.
nit: If actor not found, check if it's a placeholder address.
tasks/fevm/receipt/tasks.go
Outdated
if err != nil { | ||
// If actor not found, then this is a placeholder address | ||
if addr.String()[:5] == "f410f" { | ||
log.Infof("Sent to Placeholder address: %v", addr) |
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.
Debugf?
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.
changed
func init() { | ||
tipsetMessageReceiptCacheSize = getCacheSizeFromEnv(tipsetMessageReceiptSizeEnv, 4) | ||
executedTsCacheSize = getCacheSizeFromEnv(executedTsCacheSizeEnv, 4) | ||
diffPreCommitCacheSize = getCacheSizeFromEnv(diffPreCommitCacheSizeEnv, 500) | ||
diffSectorCacheSize = getCacheSizeFromEnv(diffSectorCacheSizeEnv, 500) | ||
actorCacheSize = getCacheSizeFromEnv(actorCacheSizeEnv, 1000) |
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.
Looks much cleaner!
chain/datasource/datasource.go
Outdated
|
||
key, err := asKey(addr, tsk) | ||
if err != nil { | ||
return nil, 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.
not sure when this would happen, but shouldn't we still try to continue and call t.node.StateGetActor
instead of returning error?
if err == nil {
value, found := t.actorCache.Get(key)
...
}
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.
fixed!
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.
Thanks!
No description provided.