-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Account abstraction #9831
Account abstraction #9831
Conversation
@@ -521,7 +521,7 @@ func (filec *FilecoinEC) checkBlockMessages(ctx context.Context, b *types.FullBl | |||
return xerrors.Errorf("failed to get actor: %w", err) | |||
} | |||
|
|||
if !isValidForSending(act) { | |||
if !IsValidForSending(act) { |
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.
Do we need to put this behind a version check? I guess the actor couldn't exist on-chain... but I wanted to double check.
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.
Yeah, we shouldn't need to as written.
chain/consensus/filcns/filecoin.go
Outdated
if builtin.IsAccountActor(act.Code) { | ||
return true | ||
} | ||
|
||
// HACK: Allow Eth embryos to send messages | ||
if !builtin.IsEmbryo(act.Code) || act.Address == nil || act.Address.Protocol() != address.Delegated { | ||
if !builtin.IsEmbryo(act.Code) || act.Address == nil || act.Address.Protocol() != address.Delegated || act.Nonce != 0 { |
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.
Also ethereum accounts? Or are we including that in IsAccountActor
?
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.
Eth Accounts didn't exist yet -- adding now.
eccabaa
to
90288ef
Compare
90288ef
to
a3809e1
Compare
a3809e1
to
54cb97a
Compare
Allows sends from Embryos if and only if their delegated addresses are valid Ethereum Account addresses.