use v1.4.0 stability subnets by default (#5276)

This commit is contained in:
tersec 2023-08-08 19:01:04 +00:00 committed by GitHub
parent 2b57a221de
commit f8520c8b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -240,7 +240,7 @@ type
useOldStabilitySubnets* {.
hidden
defaultValue: true
defaultValue: false
name: "debug-use-old-attestation-stability-subnets" .}: bool
# https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.3/src/engine/authentication.md#key-distribution

View File

@ -151,8 +151,7 @@ func stabilitySubnets*(tracker: ActionTracker, slot: Slot): AttnetBits =
else:
var res: AttnetBits
if tracker.useOldStabilitySubnets or
tracker.stabilitySubnets.len < SUBNETS_PER_NODE.int:
if tracker.useOldStabilitySubnets or tracker.stabilitySubnets.len == 0:
for v in tracker.stabilitySubnets:
res[v.subnet_id.int] = true
else: