Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherrypick branch #43

Merged
merged 12 commits into from
Aug 9, 2024
Merged

Cherrypick branch #43

merged 12 commits into from
Aug 9, 2024

Conversation

so-kkroy22
Copy link

@so-kkroy22 so-kkroy22 commented Aug 7, 2024

Commit breakdown:

  • a13223e - Invokation of Employee Pool creation is trimmed from the genesis tx encoder function. (It is Aptos Foundation specific).
  • aed2543 - Inclusion of the PBO delegation pool and VestingWithoutStaking pool initialization in the genesis tx encoder function.
  • 2193695 - Implement Hash and Eq for AccountBalance type. Required for PBO data processing in smr-moonshot.
  • 2207b5e - Adds support for initializing PBO delegation pools and VestingWithoutStaking pools in testnet configuration.
  • ced7b61 - Adds support for account creation in testnet configuration.
  • c278c18 - Disables adding SALT to seed creation. We need to find a way to reliably know this SALT at smr-moonshot for creating resource accounts.
  • 3d6f520 - REST API changes for smr-moonshot requirement
  • c947348 - Generate seed for PBO module via APIs; negates c278c18
  • 2b6943e - Timestamp for genesis block and block event are read from the MoveState
  • 69332c5 - fixes a serialization error for seed creation
  • fd717ba - fixes triggering reconfiguration twice for testnet genesis tx encoder

aptos-move/vm-genesis/src/lib.rs Show resolved Hide resolved
@@ -717,7 +742,7 @@ fn create_and_initialize_validators_with_commission(
let validators_bytes = bcs::to_bytes(validators).expect("Validators can be serialized");
let mut serialized_values = serialize_values(&vec![
MoveValue::Signer(CORE_CODE_ADDRESS),
MoveValue::Bool(true),
MoveValue::Bool(false),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we would not be calling this function of genesis since we always use pool initialization function to initialize the validators, isn't it?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is a residue of an old approach. I'll undo this change.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 44e74f3

aptos-move/vm-genesis/src/lib.rs Outdated Show resolved Hide resolved
aptos-move/vm-genesis/src/lib.rs Show resolved Hide resolved
let operator_addrs6 = test_validators[6].data.operator_address;

// PBO winner
let pbo_account01 = AccountAddress::from_hex_literal("0x01").unwrap();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since 0x01 is the address of supra_framework I am not sure if this test would pass or whether it would create some problem. I think first 10 or 16 are system accounts and should not be used for testing addresses since the side effects of doing so are not well understood.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was supposed to be rewritten from scratch again and is in WIP. I've #[ignore]-ed this test due to time constraints. Once the Release Candidate tag is published for upcoming rounds, I will raise another cleanup PR to get this test passing again.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debt is now tracked in #46.

@supra-yoga supra-yoga merged commit 2aeaa52 into dev Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants