filecoin-project / filecoin-project/specs

On the state of StateTree and the emergence of ActorID's

Open
#613 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
363
Forks
164
PR merge metrics
No merged PRs in 30d

Description

- Why are there **two** maps on the `StateTree`?
- Why is the actor state map `Address -> ActorState` instead of `ActorID -> ActorState`

```go
// current StateTree on the spec
type StateTree struct {
SystemActors {ActorName: addr.Address}
ActorStates {addr.Address: actor.ActorState}
}
```

```go
// proposed
type StateTree struct {
ActorStates {actor.ActorID: actor.ActorState}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.