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

[Spec] Added specs for module gas_schedule & aptos_coin & chain_id & chain_status. #5771

Merged
merged 12 commits into from
Dec 13, 2022

Conversation

0xOutOfGas
Copy link
Contributor

Description

This is a part of spec work for Aptos Framework from MoveBit, we updated below files/modules in this PR:

Added specs for module gas_schedule & aptos_coin & chain_id & chain_status.

Test Plan

aptos move prove --package-dir ./aptos-framework

spec set_genesis_end {
pragma verify = false;
}

spec schema RequiresIsOperating {
requires is_operating();
requires !is_operating();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this negated?

Copy link
Contributor

Choose a reason for hiding this comment

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

@junkil-park Sorry, this was a mistake. Fixed.

@@ -1,6 +1,10 @@
spec aptos_framework::util {
spec from_bytes {
spec from_bytes<T>(bytes: vector<u8>): T {
// TODO: temporary mockup.
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment line can be deleted.

Copy link
Contributor

Choose a reason for hiding this comment

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

I have deleted this.

@junkil-park
Copy link
Contributor

This PR looks good overall. I left some comments.

@junkil-park junkil-park self-requested a review December 13, 2022 17:05
@junkil-park junkil-park enabled auto-merge (squash) December 13, 2022 17:05
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

✅ Forge suite land_blocking success on 4aa658244775839344764850415b14ab447227fc

performance benchmark with full nodes : 6340 TPS, 6231 ms latency, 13000 ms p99 latency,(!) expired 960 out of 2708380 txns
Test Ok

@github-actions
Copy link
Contributor

✅ Forge suite compat success on testnet_2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 4aa658244775839344764850415b14ab447227fc

Compatibility test results for testnet_2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 4aa658244775839344764850415b14ab447227fc (PR)
1. Check liveness of validators at old version: testnet_2d8b1b57553d869190f61df1aaf7f31a8fc19a7b
compatibility::simple-validator-upgrade::liveness-check : 7292 TPS, 5258 ms latency, 7300 ms p99 latency,no expired txns
2. Upgrading first Validator to new version: 4aa658244775839344764850415b14ab447227fc
compatibility::simple-validator-upgrade::single-validator-upgrade : 4604 TPS, 8989 ms latency, 12300 ms p99 latency,no expired txns
3. Upgrading rest of first batch to new version: 4aa658244775839344764850415b14ab447227fc
compatibility::simple-validator-upgrade::half-validator-upgrade : 4830 TPS, 8722 ms latency, 12200 ms p99 latency,no expired txns
4. upgrading second batch to new version: 4aa658244775839344764850415b14ab447227fc
compatibility::simple-validator-upgrade::rest-validator-upgrade : 6417 TPS, 6102 ms latency, 10500 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for testnet_2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 4aa658244775839344764850415b14ab447227fc passed
Test Ok

@junkil-park junkil-park merged commit 8072655 into aptos-labs:main Dec 13, 2022
areshand pushed a commit to areshand/aptos-core-1 that referenced this pull request Dec 18, 2022
…chain_status. (aptos-labs#5771)

* Updated the spec of gas_schedule

* add aptos_coin & chain_id & chain_status spec

* Generate spec doc

* Updated chain_status.spec.move

* Updated chain_status.spec.move

* Generate spec doc

Co-authored-by: yoyoping <zhangping_ymd@outlook.com>
Co-authored-by: tiutiutiu <qiu971009@gmail.com>
@Markuze Markuze mentioned this pull request Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants