Nov 17, 11-12 PM (32)
Nov 17, 12-1 PM (49)
Nov 17, 1-2 PM (48)
Nov 17, 2-3 PM (52)
Nov 17, 3-4 PM (41)
Nov 17, 4-5 PM (29)
Nov 17, 5-6 PM (23)
Nov 17, 6-7 PM (27)
Nov 17, 7-8 PM (26)
Nov 17, 8-9 PM (18)
Nov 17, 9-10 PM (25)
Nov 17, 10-11 PM (27)
Nov 17, 11-12 AM (29)
Nov 18, 12-1 AM (7)
Nov 18, 1-2 AM (6)
Nov 18, 2-3 AM (8)
Nov 18, 3-4 AM (7)
Nov 18, 4-5 AM (3)
Nov 18, 5-6 AM (5)
Nov 18, 6-7 AM (1)
Nov 18, 7-8 AM (15)
Nov 18, 8-9 AM (35)
Nov 18, 9-10 AM (42)
Nov 18, 10-11 AM (66)
Nov 18, 11-12 PM (64)
Nov 18, 12-1 PM (32)
Nov 18, 1-2 PM (44)
Nov 18, 2-3 PM (43)
Nov 18, 3-4 PM (41)
Nov 18, 4-5 PM (38)
Nov 18, 5-6 PM (18)
Nov 18, 6-7 PM (37)
Nov 18, 7-8 PM (12)
Nov 18, 8-9 PM (6)
Nov 18, 9-10 PM (14)
Nov 18, 10-11 PM (34)
Nov 18, 11-12 AM (25)
Nov 19, 12-1 AM (5)
Nov 19, 1-2 AM (3)
Nov 19, 2-3 AM (13)
Nov 19, 3-4 AM (7)
Nov 19, 4-5 AM (6)
Nov 19, 5-6 AM (12)
Nov 19, 6-7 AM (14)
Nov 19, 7-8 AM (19)
Nov 19, 8-9 AM (38)
Nov 19, 9-10 AM (48)
Nov 19, 10-11 AM (72)
Nov 19, 11-12 PM (31)
Nov 19, 12-1 PM (41)
Nov 19, 1-2 PM (44)
Nov 19, 2-3 PM (56)
Nov 19, 3-4 PM (24)
Nov 19, 4-5 PM (28)
Nov 19, 5-6 PM (20)
Nov 19, 6-7 PM (7)
Nov 19, 7-8 PM (24)
Nov 19, 8-9 PM (51)
Nov 19, 9-10 PM (10)
Nov 19, 10-11 PM (33)
Nov 19, 11-12 AM (25)
Nov 20, 12-1 AM (7)
Nov 20, 1-2 AM (34)
Nov 20, 2-3 AM (6)
Nov 20, 3-4 AM (4)
Nov 20, 4-5 AM (9)
Nov 20, 5-6 AM (3)
Nov 20, 6-7 AM (6)
Nov 20, 7-8 AM (19)
Nov 20, 8-9 AM (24)
Nov 20, 9-10 AM (28)
Nov 20, 10-11 AM (37)
Nov 20, 11-12 PM (54)
Nov 20, 12-1 PM (26)
Nov 20, 1-2 PM (62)
Nov 20, 2-3 PM (28)
Nov 20, 3-4 PM (22)
Nov 20, 4-5 PM (24)
Nov 20, 5-6 PM (15)
Nov 20, 6-7 PM (33)
Nov 20, 7-8 PM (10)
Nov 20, 8-9 PM (11)
Nov 20, 9-10 PM (21)
Nov 20, 10-11 PM (26)
Nov 20, 11-12 AM (31)
Nov 21, 12-1 AM (7)
Nov 21, 1-2 AM (4)
Nov 21, 2-3 AM (4)
Nov 21, 3-4 AM (5)
Nov 21, 4-5 AM (13)
Nov 21, 5-6 AM (7)
Nov 21, 6-7 AM (13)
Nov 21, 7-8 AM (23)
Nov 21, 8-9 AM (25)
Nov 21, 9-10 AM (29)
Nov 21, 10-11 AM (36)
Nov 21, 11-12 PM (35)
Nov 21, 12-1 PM (29)
Nov 21, 1-2 PM (30)
Nov 21, 2-3 PM (29)
Nov 21, 3-4 PM (37)
Nov 21, 4-5 PM (47)
Nov 21, 5-6 PM (18)
Nov 21, 6-7 PM (11)
Nov 21, 7-8 PM (13)
Nov 21, 8-9 PM (20)
Nov 21, 9-10 PM (11)
Nov 21, 10-11 PM (34)
Nov 21, 11-12 AM (15)
Nov 22, 12-1 AM (8)
Nov 22, 1-2 AM (9)
Nov 22, 2-3 AM (11)
Nov 22, 3-4 AM (7)
Nov 22, 4-5 AM (1)
Nov 22, 5-6 AM (0)
Nov 22, 6-7 AM (2)
Nov 22, 7-8 AM (5)
Nov 22, 8-9 AM (3)
Nov 22, 9-10 AM (3)
Nov 22, 10-11 AM (6)
Nov 22, 11-12 PM (11)
Nov 22, 12-1 PM (13)
Nov 22, 1-2 PM (18)
Nov 22, 2-3 PM (14)
Nov 22, 3-4 PM (20)
Nov 22, 4-5 PM (3)
Nov 22, 5-6 PM (7)
Nov 22, 6-7 PM (2)
Nov 22, 7-8 PM (7)
Nov 22, 8-9 PM (2)
Nov 22, 9-10 PM (14)
Nov 22, 10-11 PM (23)
Nov 22, 11-12 AM (26)
Nov 23, 12-1 AM (1)
Nov 23, 1-2 AM (9)
Nov 23, 2-3 AM (10)
Nov 23, 3-4 AM (6)
Nov 23, 4-5 AM (7)
Nov 23, 5-6 AM (2)
Nov 23, 6-7 AM (0)
Nov 23, 7-8 AM (0)
Nov 23, 8-9 AM (1)
Nov 23, 9-10 AM (3)
Nov 23, 10-11 AM (8)
Nov 23, 11-12 PM (4)
Nov 23, 12-1 PM (6)
Nov 23, 1-2 PM (13)
Nov 23, 2-3 PM (10)
Nov 23, 3-4 PM (5)
Nov 23, 4-5 PM (18)
Nov 23, 5-6 PM (16)
Nov 23, 6-7 PM (2)
Nov 23, 7-8 PM (8)
Nov 23, 8-9 PM (3)
Nov 23, 9-10 PM (7)
Nov 23, 10-11 PM (41)
Nov 23, 11-12 AM (34)
Nov 24, 12-1 AM (6)
Nov 24, 1-2 AM (10)
Nov 24, 2-3 AM (8)
Nov 24, 3-4 AM (15)
Nov 24, 4-5 AM (6)
Nov 24, 5-6 AM (7)
Nov 24, 6-7 AM (11)
Nov 24, 7-8 AM (71)
Nov 24, 8-9 AM (113)
Nov 24, 9-10 AM (37)
Nov 24, 10-11 AM (22)
Nov 24, 11-12 PM (13)
3,428 commits this week Nov 17, 2025 - Nov 24, 2025
Refactor ChainDB q-s-m test to carry gap blocks between commands
Extends the ChainDB model with generator state to support carrying gap
blocks in state machine tests. This increases the chances of generating
and adding (possibly out-of-order) branching sequences of blocks. This,
in turn increases the chances of observing the event where the
chain selection logic switches from a longer to a shorter (but heavier)
chain containing a boosted block.
Tweak generation frequencies in ChainDB q-s-m tests
This commit increases the generation frequencies of both the
'genAddBlock' and 'genAddPerasCert' constructions to help producing
denser chains of blocks. This way, some of the events that were
harder to trigger (especially TagSwitchedToShorterChain) are much
more common now:

* Before:
    Tags (5784 in total):
    39.83% TagGetIsValidJust
    29.72% TagChainSelReprocessKeptSelection
    27.92% TagGetIsValidNothing
     2.42% TagChainSelReprocessChangedSelection
     0.10% TagSwitchedToShorterChain

* After:
    Tags (5202 in total):
    38.66% TagGetIsValidJust
    27.87% TagChainSelReprocessKeptSelection
    26.43% TagGetIsValidNothing
     5.71% TagChainSelReprocessChangedSelection
     1.33% TagSwitchedToShorterChain
Avoid exposing Peras boostPerCert in tests
Since the Peras boost per certificate will likely become a protocol
parameter, we proactively avoid exposing the current hardcoded value,
replacing it with an instantiation of (currently trivial) the PerasCfg
builder.

In the special cases where it's interesting to vary the boost
dynamically (ChainDB q-s-m), validated Peras certs now contain randomly
generated boost weights.
Generate security parameter for ChainDB q-s-m test on the fly
After analysing the effect of varying the security parameter (`k`) of
the ChainDB state machine tests (currently hardcoded with 2), we have
observed a tension between:

1) generating enough tests exercising the new Peras behavior where the
   chain selection mechanism switches to a shorter but heavier chain
   (cert boost is derived from k and must be large enough to overcome
   the weight of a longer chain), and

2) generating enough tests exercising the ImmutableDB logic (the chain
   must have at least k blocks)

Here are some empirical results:

k   -> P(switch to shorter chain), P(generate a chain with >= k blocks)
k=2 -> ~1.3%, ~40%
k=3 -> ~1.9%, ~20%
k=4 -> ~2.4%, ~9%
k=5 -> ~2.5%, ~3%
k=10 -> ~3%,  ~0.05%

We believe that the sweet spot between both desiderata appears to be
around `k=2` and `k=4`.

This commit introduces a random generator for `k` using a geometric
distribution to bias the randomly generated `k`s to be relatively small,
while still allowing larger ones to appear from time to time.

Under the current parameters, roughly 87.5% of the tests use `k<=4`;

```
Security Parameter (k) (10000 in total):
  50.82% 2
  23.83% 3
  12.62% 4
   6.69% 5
   3.08% 6
   1.54% 7
   0.74% 8
   0.37% 9
   0.16% 10
   0.06% 11
   0.05% 12
   0.02% 13
   0.01% 14
   0.01% 17
```

Yielding the following distributions for 1) and 2), respectively:

```
Tags (5161 in total):
  39.35% TagGetIsValidJust
  29.22% TagChainSelReprocessKeptSelection
  25.91% TagGetIsValidNothing
   3.88% TagChainSelReprocessChangedSelection
   1.65% TagSwitchedToShorterChain  <- HERE
```

```
Chain length >= k (10000 in total):
  73.25% False
  26.75% True  <- HERE
```
chore(deps): bump actions/checkout from 5 to 6 (#337)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): Bump golangci/golangci-lint-action from 9.0.0 to 9.1.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/0a35821d5c230e903fcfe077583637dea1b27b47...e7fa5ac41e1cf5b7d48e45e42232ce7ada589601)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: 9.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
chore(deps): Bump actions/checkout from 5.0.0 to 6.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
chore(deps): Bump actions/setup-go from 6.0.0 to 6.1.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/44694675825211faa026b3c33043df3e48a5fa00...4dc6199c7b1a012772edbd06daecab0f50c9053c)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
chore(deps): Bump github.com/blinklabs-io/gouroboros
Bumps [github.com/blinklabs-io/gouroboros](https://github.com/blinklabs-io/gouroboros) from 0.139.0 to 0.140.0.
- [Release notes](https://github.com/blinklabs-io/gouroboros/releases)
- [Commits](https://github.com/blinklabs-io/gouroboros/compare/v0.139.0...v0.140.0)

---
updated-dependencies:
- dependency-name: github.com/blinklabs-io/gouroboros
  dependency-version: 0.140.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
chore(deps): Bump github.com/blinklabs-io/cardano-models
Bumps [github.com/blinklabs-io/cardano-models](https://github.com/blinklabs-io/cardano-models) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/blinklabs-io/cardano-models/releases)
- [Commits](https://github.com/blinklabs-io/cardano-models/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/blinklabs-io/cardano-models
  dependency-version: 0.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
chore(deps): Bump actions/checkout from 5.0.1 to 6.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.1 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v5.0.1...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>