Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dist/
/pallet-ismp/evm/solidity/cache
.env*
.vscode
.cursor

evm/out/
evm/cache/
Expand Down
6 changes: 3 additions & 3 deletions modules/consensus/bsc/verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ pub fn verify_bsc_header<H: Keccak256, C: Config>(
)
.map_err(|_| anyhow!("Could not deseerialize vote address set"))?;

if validators_bit_set.iter().as_bitslice().count_ones() <
((2 * current_validators.len() / 3) + 1)
{
// We have to use the same threshold specified in the bsc parlia consensus which is 2/3
// https://github.com/bnb-chain/bsc/blob/da35ee13e2fe38efaeab2d6fb27f112332459b50/consensus/parlia/parlia.go#L557
if validators_bit_set.iter().as_bitslice().count_ones() < ((2 * current_validators.len()) / 3) {
Err(anyhow!("Not enough participants"))?
}

Expand Down
2 changes: 1 addition & 1 deletion parachain/runtimes/gargantua/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: Cow::Borrowed("gargantua"),
impl_name: Cow::Borrowed("gargantua"),
authoring_version: 1,
spec_version: 5_000,
spec_version: 5_100,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
2 changes: 1 addition & 1 deletion parachain/runtimes/nexus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: Cow::Borrowed("nexus"),
impl_name: Cow::Borrowed("nexus"),
authoring_version: 1,
spec_version: 6_500,
spec_version: 6_600,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Loading