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

[cmd] add a cmd to submit upgrade vm config proposal #2466

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

guangyuz
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 29, 2021

Codecov Report

Merging #2466 (e4be923) into master (a67b410) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2466      +/-   ##
==========================================
- Coverage   33.50%   33.44%   -0.06%     
==========================================
  Files         493      493              
  Lines       43079    43106      +27     
  Branches    19585    19608      +23     
==========================================
- Hits        14430    14411      -19     
- Misses      13645    13677      +32     
- Partials    15004    15018      +14     
Flag Coverage Δ
unittests 33.44% <0.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/starcoin/src/lib.rs 100.00% <ø> (ø)
vm/transaction-builder/src/lib.rs 25.48% <0.00%> (-2.03%) ⬇️
network-rpc/core/src/lib.rs 23.53% <0.00%> (-5.88%) ⬇️
network/api/src/peer_provider.rs 29.53% <0.00%> (-1.96%) ⬇️
network-p2p/src/request_responses.rs 30.96% <0.00%> (-1.91%) ⬇️
sync/src/tasks/mock.rs 47.65% <0.00%> (-1.76%) ⬇️
network/src/service_ref.rs 37.34% <0.00%> (-1.33%) ⬇️
types/src/peer_info.rs 51.56% <0.00%> (-1.24%) ⬇️
...ync/src/block_connector/block_connector_service.rs 32.19% <0.00%> (-1.14%) ⬇️
...ons/forkable-jellyfish-merkle/src/node_type/mod.rs 65.30% <0.00%> (-1.03%) ⬇️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a67b410...e4be923. Read the comment docs.

@github-actions
Copy link

Benchmark for 6b5d26e

Click to view benchmark
Test PR Benchmark Master Benchmark %
accumulator_append 2.7±0.12ms 2.5±0.12ms +8.00%
block_apply/block_apply_10 510.9±18.00ms 471.1±10.07ms +8.45%
block_apply/block_apply_1000 46.5±0.37s 46.7±0.95s -0.43%
get_with_proof/db_store 38.8±0.66µs 38.3±0.39µs +1.31%
get_with_proof/mem_store 32.0±0.29µs 31.7±0.57µs +0.95%
put_and_commit/db_store/1 1578.4±46.22µs 1777.4±180.15µs -11.20%
put_and_commit/db_store/10 2.6±0.33ms 2.7±0.25ms -3.70%
put_and_commit/db_store/100 9.7±0.87ms 9.8±0.66ms -1.02%
put_and_commit/db_store/5 2.1±0.17ms 2.1±0.14ms 0.00%
put_and_commit/db_store/50 5.9±0.59ms 5.9±0.58ms 0.00%
put_and_commit/mem_store/1 63.2±5.59µs 63.5±5.73µs -0.47%
put_and_commit/mem_store/10 587.1±45.79µs 589.8±46.95µs -0.46%
put_and_commit/mem_store/100 5.7±0.34ms 5.8±0.84ms -1.72%
put_and_commit/mem_store/5 295.8±24.12µs 297.7±24.35µs -0.64%
put_and_commit/mem_store/50 2.9±0.18ms 2.9±0.18ms 0.00%
query_block/query_block_in(10)_times(100) 2.8±0.10ms 2.8±0.05ms 0.00%
query_block/query_block_in(10)_times(1000) 27.4±0.43ms 27.9±0.93ms -1.79%
query_block/query_block_in(10)_times(10000) 274.5±6.43ms 277.9±5.43ms -1.22%
query_block/query_block_in(1000)_times(100) 918.1±3.93µs 914.4±7.41µs +0.40%
query_block/query_block_in(1000)_times(1000) 9.2±0.03ms 9.4±0.07ms -2.13%
query_block/query_block_in(1000)_times(10000) 92.2±0.54ms 93.9±0.42ms -1.81%
storage_transaction 63.5±3.26ms 63.9±4.02ms -0.63%
vm/transaction_execution/1 313.4±1.22ms 313.7±2.98ms -0.10%
vm/transaction_execution/10 107.8±4.53ms 105.4±0.37ms +2.28%
vm/transaction_execution/20 100.3±1.37ms 99.8±1.14ms +0.50%
vm/transaction_execution/5 126.9±2.18ms 126.6±1.88ms +0.24%
vm/transaction_execution/50 115.3±0.95ms 115.7±1.28ms -0.35%

let genesis_config = net.genesis_config().clone();
let min_action_delay = get_dao_config(cli_state)?.min_action_delay;
let vm_config_upgrade_proposal =
build_vm_config_upgrade_proposal(genesis_config.vm_config, min_action_delay);
Copy link
Member

Choose a reason for hiding this comment

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

genesis_config 的 vm_config 配置之后就不能变了,所以不能从这里去 config 然后提 proposal

Copy link
Member

Choose a reason for hiding this comment

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

得需要通过参数传递或者通过另外一个配置文件传递

Copy link
Contributor Author

Choose a reason for hiding this comment

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

原先的想法是从halley读取config写到Proxima上去。步骤是这样的:先修改halley的config,测试没有问题,再升级到Proxima上。

Copy link
Member

Choose a reason for hiding this comment

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

原先的想法是从halley读取config写到Proxima上去。步骤是这样的:先修改halley的config,测试没有问题,再升级到Proxima上。

也是个办法。

@guangyuz guangyuz merged commit aad2ede into master Apr 30, 2021
@guangyuz guangyuz deleted the vm_config_proposal branch April 30, 2021 06:46
naughtyvenom pushed a commit to naughtyvenom/starcoin that referenced this pull request Jul 19, 2021
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.

2 participants