forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AV-1817] Add TransformSubnetTx to lock a subnet's state (ava-labs#1627)
- Loading branch information
1 parent
bccc164
commit 59e302f
Showing
41 changed files
with
2,521 additions
and
815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Subnets | ||
|
||
The Avalanche network consists of the Primary Network and a collection of | ||
sub-networks (subnets). | ||
|
||
## Subnet Creation | ||
|
||
Subnets are created by issuing a *CreateSubnetTx*. After a *CreateSubnetTx* is | ||
accepted, a new subnet will exist with the *SubnetID* equal to the *TxID* of the | ||
*CreateSubnetTx*. The *CreateSubnetTx* creates a permissioned subnet. The | ||
*Owner* field in *CreateSubnetTx* specifies who can modify the state of the | ||
subnet. | ||
|
||
## Permissioned Subnets | ||
|
||
A permissioned subnet can be modified by a few different transactions. | ||
|
||
- CreateChainTx | ||
- Creates a new chain that will be validated by all validators of the subnet. | ||
- AddSubnetValidatorTx | ||
- Adds a new validator to the subnet with the specified *StartTime*, | ||
*EndTime*, and *Weight*. | ||
- RemoveSubnetValidatorTx | ||
- Removes a validator from the subnet. | ||
- TransformSubnetTx | ||
- Converts the permissioned subnet into a permissionless subnet. | ||
- Specifies all of the staking parameters. | ||
- AVAX is not allowed to be used as a staking token. In general, it is not | ||
advisable to have multiple subnets using the same staking token. | ||
- After becoming a permissionless subnet, previously added permissioned | ||
validators will remain to finish their staking period. | ||
- No more chains will be able to be added to the subnet. | ||
|
||
### Permissionless Subnets | ||
|
||
Currently, nothing can be performed on a permissionless subnet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.