Revert default proof size back to 64 KB (#7115)

* Revert default proof size back to 64 KB

* Fix test expectations

* Enhance unit test

* cargo fmt

* Fix comment
This commit is contained in:
Keith Yeung
2023-04-24 20:24:44 +08:00
committed by GitHub
parent 439ab875dc
commit a8d80532ce
2 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -1191,9 +1191,9 @@ impl<Call> TryFrom<OldXcm<Call>> for Xcm<Call> {
}
}
/// Default value for the proof size weight component. Set at 0 KB.
/// Default value for the proof size weight component when converting from V2. Set at 64 KB.
/// NOTE: Make sure this is removed after we properly account for PoV weights.
const DEFAULT_PROOF_SIZE: u64 = 0;
const DEFAULT_PROOF_SIZE: u64 = 64 * 1024;
// Convert from a v2 instruction to a v3 instruction.
impl<Call> TryFrom<OldInstruction<Call>> for Instruction<Call> {