Skip to content

Commit ecbc90e

Browse files
authored
fix: validation error message (#338)
* fix: validation error message Signed-off-by: Gregory Edison <[email protected]> * test: update asset gas limit Signed-off-by: Gregory Edison <[email protected]> --------- Signed-off-by: Gregory Edison <[email protected]>
1 parent 103e3e1 commit ecbc90e

File tree

3 files changed

+55
-12
lines changed

3 files changed

+55
-12
lines changed

crates/scroll/consensus/src/validation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,12 @@ fn validate_against_parent_gas_limit<H: BlockHeader>(
331331
return if header.gas_limit() > parent.gas_limit() {
332332
Err(ConsensusError::GasLimitInvalidIncrease {
333333
parent_gas_limit: parent.gas_limit(),
334-
child_gas_limit: parent.gas_limit(),
334+
child_gas_limit: header.gas_limit(),
335335
})
336336
} else {
337337
Err(ConsensusError::GasLimitInvalidDecrease {
338338
parent_gas_limit: parent.gas_limit(),
339-
child_gas_limit: parent.gas_limit(),
339+
child_gas_limit: header.gas_limit(),
340340
})
341341
}
342342
}

crates/scroll/node/tests/assets/genesis.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"nonce": "0x0",
2424
"timestamp": "0x0",
2525
"extraData": "0x00",
26-
"gasLimit": "0x1c9c380",
26+
"gasLimit": "0x1312d00",
2727
"difficulty": "0x0",
2828
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
2929
"coinbase": "0x0000000000000000000000000000000000000000",
@@ -105,4 +105,4 @@
105105
}
106106
},
107107
"number": "0x0"
108-
}
108+
}

crates/scroll/openvm-compat/Cargo.lock

Lines changed: 51 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)