Skip to content

[DRAFT] [cli] bid automation in txs cli for PoF #354

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

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .vscode/suggested_vscode_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"rust-analyzer.cargo.buildScripts.enable": false,
"rust-analyzer.restartServerOnConfigChange": true,
"rust-analyzer.debug.engine": "vadimcn.vscode-lldb",
"rust-analyzer.debug.openDebugPane": true,
"rust-analyzer.runnables.extraEnv": {
"DIEM_FORGE_NODE_BIN_PATH": "/root/.cargo/bin/diem-node"
},
"rust-analyzer.server.extraEnv": {
"DIEM_FORGE_NODE_BIN_PATH": "/root/.cargo/bin/diem-node"
},
"rust-analyzer.checkOnSave": false,
"rust-analyzer.check.noDefaultFeatures": false,
"rust-analyzer.cargo.buildScripts.useRustcWrapper": false,
"rust-analyzer.cargo.extraEnv": {
"RUSTC_WRAPPER": "sccache"
},
"rust-analyzer.check.extraArgs": [
"RUSTC_WRAPPER=sccache"
],
"rust-analyzer.check.overrideCommand": "build"
}
11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,18 @@ strip = true # strip debug and symbols for size
debug = true

[profile.dev]
opt-level = 0
opt-level = 1
debug = true
split-debuginfo = "unpacked"
lto = false
lto = "off"
codegen-units = 256 # More parallel compilation units
incremental = true

[profile.test]
inherits = "dev"
opt-level = 1
debug = true
split-debuginfo = "unpacked"
lto = "off"
codegen-units = 256 # More parallel compilation units
incremental = true
11 changes: 7 additions & 4 deletions framework/libra-framework/sources/genesis.move
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ module diem_framework::genesis {

chain_id::initialize(&diem_framework_account, chain_id);
reconfiguration::initialize(&diem_framework_account);
// 0L: force testing environments to have short epochs
// TODO this should be solved at the SwarmBuilder level
// but requires change to vendors.
if (chain_id == 4) {
epoch_interval_microsecs = 1_000_000 * 30;
};
block::initialize(&diem_framework_account, epoch_interval_microsecs);
state_storage::initialize(&diem_framework_account);
randomness::initialize(&diem_framework_account);
Expand All @@ -146,7 +152,6 @@ module diem_framework::genesis {
validator_universe::initialize(&diem_framework_account);
proof_of_fee::init_genesis_baseline_reward(&diem_framework_account);
slow_wallet::initialize(&diem_framework_account);
// tower_state::initialize(&diem_framework_account);
safe::initialize(&diem_framework_account);
donor_voice::initialize(&diem_framework_account);
epoch_boundary::initialize(&diem_framework_account);
Expand All @@ -160,7 +165,7 @@ module diem_framework::genesis {

let zero_x_two_sig = create_signer(@0x2);
sacred_cows::init(&zero_x_two_sig);
// end 0L
//////// end 0L /////////

timestamp::set_time_has_started(&diem_framework_account);
}
Expand All @@ -181,8 +186,6 @@ module diem_framework::genesis {
diem_framework: &signer,
core_resources_auth_key: vector<u8>,
) {
// let (burn_cap, mint_cap) = diem_coin::initialize(diem_framework);

let core_resources = account::create_account(@core_resources);
account::rotate_authentication_key_internal(&core_resources, core_resources_auth_key);

Expand Down
Loading
Loading