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

Update polkadot to v0.9.43 #968

Merged
merged 11 commits into from
Aug 14, 2023
Merged

Conversation

CertainLach
Copy link
Member

No description provided.

@@ -31,7 +34,10 @@ parameter_types! {
pub const GasPerSecond: u64 = ReadsPerSecond::get() * 2100;
pub const WeightTimePerGas: u64 = WEIGHT_REF_TIME_PER_SECOND / GasPerSecond::get();

pub const WeightPerGas: Weight = Weight::from_parts(WeightTimePerGas::get(), 0);
pub const BytesReadPerSecond: u64 = ReadsPerSecond::get() * EVM_SLOAD_PROOF_SIZE;
pub const ProofSizePerGas: u64 = 0; //WEIGHT_REF_TIME_PER_SECOND / GasPerSecond::get();
Copy link
Member Author

Choose a reason for hiding this comment

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

Такая простая формула тут не работает по разным причинам, нормальная токеномика будет проставлена после разбирательств с frontier

Copy link
Member Author

Choose a reason for hiding this comment

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

=> Будет исправлено после задачи по бенчмаркингу открытия EVM контекста

@CertainLach CertainLach added the CI-forkless for CI workflows label Jul 18, 2023
@CertainLach CertainLach force-pushed the feature/update-polkadot-v0.9.43 branch from 2b81a36 to 1b4b057 Compare July 20, 2023 20:48
.env Show resolved Hide resolved
.env Show resolved Hide resolved
.env Show resolved Hide resolved
Cargo.toml Show resolved Hide resolved
@@ -1111,32 +1133,42 @@ where

#[cfg(feature = "pov-estimate")]
backend,
eth_backend: frontier_backend.clone(),
// eth_backend,
Copy link
Contributor

Choose a reason for hiding this comment

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

?

node/cli/src/service.rs Show resolved Hide resolved
overrides.clone(),
eth_backend,
3,
0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Что это за значения?

@@ -178,6 +217,9 @@ mod pallet {
} else {
<MinGasPriceOverride<T>>::kill();
}
// This code should not be called in production, but why keep development in the
Copy link
Contributor

Choose a reason for hiding this comment

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

but why keep development

Мб имелось в виду "we keep"? Ибо это не звучит как вопрос.

Copy link
Member Author

Choose a reason for hiding this comment

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

Это вопрос, просто риторический)

Copy link
Member Author

Choose a reason for hiding this comment

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

Why?
Why not?

Copy link
Contributor

Choose a reason for hiding this comment

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

А кто знает ответ?)
Чет не пойму что тут к чему :D

@@ -20,6 +20,9 @@ use up_common::constants::*;

pub type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Runtime>;

// Assuming PoV size per read is 96 bytes: 16 for twox128(Evm), 16 for twox128(Storage), 32 for storage key, and 32 for storage value
const EVM_SLOAD_PROOF_SIZE: u64 = 96;

// ~~Assuming slowest ethereum opcode is SSTORE, with gas price of 20000 as our worst case~~
Copy link
Contributor

Choose a reason for hiding this comment

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

Коль это "very wrong", то мб еще отдельно скажем, что это TODO и будет сделано "тогда-то"

Copy link
Member Author

Choose a reason for hiding this comment

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

Это уже сделано, тут объяснена история принятия такого решения, потому что оно не интуитивное.
В мунбиме и прочих тут константа из головы, у нас стоимость описана формулой

Copy link
Contributor

Choose a reason for hiding this comment

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

Просто из коммента не ясно что оно уже исправлено, а ощущение, что это надо исправить

runtime/common/runtime_apis.rs Show resolved Hide resolved
@CertainLach CertainLach merged commit fc1ccc4 into develop Aug 14, 2023
39 of 43 checks passed
@CertainLach CertainLach deleted the feature/update-polkadot-v0.9.43 branch August 14, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-forkless for CI workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants