Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

refactor: move chaos actor into 98 #104

Merged
merged 3 commits into from
Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ not be seen in properly implemented actor code. To induce those situations,
those vectors rely on a special test harness actor that sits "on the inside"
and triggers those situations when specific messages are sent to it.

The **Chaos Actor (address `t97`)** exercises behaviours that should be
The **Chaos Actor (address `t98`)** exercises behaviours that should be
regarded as illegal by the VM. Its ABI spec is part of this testing spec, and
it's currently being heavily developed.

Expand Down
2 changes: 1 addition & 1 deletion chaos/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
// properly enforced.
//
// The chaos actor is being incubated and its behaviour and ABI be standardised
// shortly. Its CID is ChaosActorCodeCID, and its singleton address is 97 (Address).
// shortly. Its CID is ChaosActorCodeCID, and its singleton address is 98 (Address).
// It cannot be instantiated via the init actor, and its constructor panics.
//
// Test vectors relying on the chaos actor being deployed will carry selector
Expand Down
10 changes: 5 additions & 5 deletions chaos/ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ var ChaosActorCodeCID = func() cid.Cid {
return c
}()

// Address is the singleton address of this actor. It is value 97
// (builtin.FirstNonSingletonActorId - 3), as 99 is reserved for the burnt funds
// singleton, and 98 is the puppet actor.
// Address is the singleton address of this actor. It's value is 98
alanshaw marked this conversation as resolved.
Show resolved Hide resolved
// (builtin.FirstNonSingletonActorId - 2), as 99 is reserved for the burnt funds
// singleton.
var Address = func() address.Address {
// the address before the burnt funds address (99) and the puppet actor (98)
addr, err := address.NewIDAddress(97)
// the address before the burnt funds address (99)
addr, err := address.NewIDAddress(98)
if err != nil {
panic(err)
}
Expand Down