-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
8c5bbb5
to
8731880
Compare
…reation - also fixes execution order of ValidatorSet activation at genesis end
4c1d1e8
to
c947348
Compare
aptos-move/vm-genesis/src/lib.rs
Outdated
@@ -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), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 44e74f3
let operator_addrs6 = test_validators[6].data.operator_address; | ||
|
||
// PBO winner | ||
let pbo_account01 = AccountAddress::from_hex_literal("0x01").unwrap(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Commit breakdown:
AccountBalance
type. Required for PBO data processing insmr-moonshot
.smr-moonshot
for creating resource accounts.