(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestCalculateBlocksDiff_StepsTooSmall(t *testing.T) { |
| 44 | params := defaultTestParams() |
| 45 | |
| 46 | // CR = 9495: drop = 5, steps = 5/10 = 0 (integer division) |
| 47 | require.Equal(t, params.MinEpochBlocks, calculateBlocksDiff(params, 9495)) |
| 48 | // CR = 9491: drop = 9, steps = 9/10 = 0 |
| 49 | require.Equal(t, params.MinEpochBlocks, calculateBlocksDiff(params, 9491)) |
| 50 | } |
| 51 | |
| 52 | func TestCalculateBlocksDiff_DefaultParams(t *testing.T) { |
| 53 | // EpochBlocksBackoffPercent=10 (10%), base = 1.1 |
nothing calls this directly
no test coverage detected