estimateHeightFor static method
The fake estimator: days since 2020-01-01 × 1152 blocks (the ~75s cadence), floored at 1. Public so a test can compute its expectation through the same slope.
Implementation
static int estimateHeightFor(DateTime time) {
final days = time.toUtc().difference(DateTime.utc(2020)).inDays;
return math.max(1, days * 1152);
}