Skip to content

Commit

Permalink
[AptosFramework] remove legacy validator management
Browse files Browse the repository at this point in the history
Remove the legacy move modules, but leave the scripts for compatibility with existing optools.

Closes: aptos-labs#586
  • Loading branch information
zekun000 authored and aptos-bot committed Apr 24, 2022
1 parent 05fea23 commit 1ef2ee6
Show file tree
Hide file tree
Showing 37 changed files with 3,755 additions and 5,831 deletions.
694 changes: 224 additions & 470 deletions api/goldens/aptos_api__tests__accounts_test__test_account_modules.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{
"type": "0x1::Block::BlockMetadata",
"data": {
"epoch_internal": "86400000000",
"height": "0",
"new_block_events": {
"counter": "0",
Expand All @@ -23,6 +24,27 @@
}
}
},
{
"type": "0x1::Stake::ValidatorSet",
"data": {
"active_validators": [
{
"addr": "0xf85fd00e30cd388d2609db24d6cc44f2652f27413456938eaa059f65231647cc",
"config": {
"consensus_pubkey": "0xcc62332e34bb2d5cd69f60efbb2a36cb916c7eb458301ea36636c4dbb012bd88",
"fullnode_address": "0x012d040000000000050c1c07203432fbf5b666fa771269cc7eb227146d3b16858f177a317ae8c349db210feb780800",
"network_address": "0x012d0400000000000524180720d5db8911156f3441c0757d97b8580cb639853454ec1a560f4927cf4acdfbd1080800"
},
"voting_power": "1"
}
],
"consensus_scheme": 0,
"maximum_stake": "1000000",
"minimum_stake": "0",
"pending_active": [],
"pending_inactive": []
}
},
{
"type": "0x1::Account::Account",
"data": {
Expand Down Expand Up @@ -61,7 +83,7 @@
"type": "0x1::TestCoin::Balance",
"data": {
"coin": {
"value": "18446744073709551615"
"value": "18446744073709551614"
}
}
},
Expand Down Expand Up @@ -147,24 +169,6 @@
"microseconds": "0"
}
},
{
"type": "0x1::ValidatorSet::ValidatorSet",
"data": {
"scheme": 0,
"validators": [
{
"addr": "0xf85fd00e30cd388d2609db24d6cc44f2652f27413456938eaa059f65231647cc",
"config": {
"consensus_pubkey": "0xcc62332e34bb2d5cd69f60efbb2a36cb916c7eb458301ea36636c4dbb012bd88",
"fullnode_network_addresses": "0x012d040000000000050c1c07203432fbf5b666fa771269cc7eb227146d3b16858f177a317ae8c349db210feb780800",
"validator_network_addresses": "0x012d0400000000000524180720d5db8911156f3441c0757d97b8580cb639853454ec1a560f4927cf4acdfbd1080800"
},
"consensus_voting_power": "1",
"last_config_update_time": "0"
}
]
}
},
{
"type": "0x1::ConsensusConfig::ConsensusConfig",
"data": {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"type": "block_metadata_transaction",
"version": "1",
"hash": "0xa8fc186c28fc0f95b8233651438093e8e215a51dcd16475f5e68c0a421f6305c",
"state_root_hash": "0xf835a02cb0000e4aff512ff859ad55cb912f2392198b4568ad7349fd8eff8105",
"state_root_hash": "0x95a4d2e4199528aac65e48bf24d7d68f128a8d6584017ea8720ff407fa179681",
"event_root_hash": "0xd62c85b93234824cf825e9c028c3bcc59b06926039721bd7edd76b56ae9fcecf",
"gas_used": "0",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "0x98f45b65a2803ef4b16c97adcc3c9485b95de05be62435421b051823ce88f4b7",
"accumulator_root_hash": "0xa39c6cd0ae24f510f682299da92def98d4e8ef758f4c27b415805864c14bc9b6",
"changes": [
{
"type": "write_resource",
Expand All @@ -17,6 +17,7 @@
"data": {
"type": "0x1::Block::BlockMetadata",
"data": {
"epoch_internal": "86400000000",
"height": "1",
"new_block_events": {
"counter": "1",
Expand Down Expand Up @@ -55,12 +56,12 @@
"type": "user_transaction",
"version": "2",
"hash": "0x2eefdb1220b8b58b7a70f789c604ea5b95b48a60da2bd2606a0f966c85c703ad",
"state_root_hash": "0xece2fe110f4337d052467eb72f5ba19c74678813dc2b155bdc3cf63af90a87c5",
"state_root_hash": "0x91e2eee78bb77f42d99d26d17f4bd3e3499fdd18056133ffb8c3ce84e67c6ba7",
"event_root_hash": "0x414343554d554c41544f525f504c414345484f4c4445525f4841534800000000",
"gas_used": "92",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "0xa18468709765e5ad75940aeaed145e8af265b8f31148e5d3b860deb8e50b1c3e",
"accumulator_root_hash": "0x22ea81c046b56491a3fd6bd8636483d36e04395a83c262d6389ea98c3cfe859c",
"changes": [
{
"type": "write_resource",
Expand All @@ -83,7 +84,7 @@
"type": "0x1::TestCoin::Balance",
"data": {
"coin": {
"value": "18446744073709551615"
"value": "18446744073709551614"
}
}
}
Expand Down
Loading

0 comments on commit 1ef2ee6

Please sign in to comment.