specs
specs copied to clipboard
Proposed changes to NewActorAddress
There are ~three~ four proposed changes to how actor addresses are generated in the VM. They are:
- Use the origin address, not the
_immediateCaller
. This seems necessary to avoid address collisions (for example, in power_actor's CreateMiner method). - Use the pubkey address, not the ID address, which is what the spec currently says we should do.
- Use the top level message's nonce, and not the top level sender's actor's nonce (since that has already been incremented by this point).
- [New!] Replace
internalCallSeqNum
counting all internal message sends with anewActorAddressCount
counter of calls to the method specifically, in the context of the originating message. The first value used is zero. (@anorth)
I think we already have broad consensus on these proposed changes.
cc @frrist
This SGTM, Thanks for writing this up @arajasek !
I have added a fourth change to the issue description:
Replace internalCallSeqNum counting all internal message sends with a newActorAddressCount counter of calls to the method specifically, in the context of the originating message