Skip to content

Commit 3b21c62

Browse files
committed
fix: ordpool-parser exports the labitbu range as constants, not a helper
7abf0c7 imported isLabitbuRange which doesn't exist in the parser -- ordpool-parser exports LABITBU_FIRST_HEIGHT and LABITBU_LAST_HEIGHT constants instead. ng build failed on the stage_prod CI run. Inline the range check using the two constants. No parser bump needed.
1 parent 7abf0c7 commit 3b21c62

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

frontend/src/app/components/block-filters/block-filters.component.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Component, EventEmitter, Output, HostListener, Input, ChangeDetectorRef
22
import { ActiveFilter, FilterGroups, FilterMode, GradientMode, TransactionFilters } from '@app/shared/filters.utils';
33
import { StateService } from '@app/services/state.service';
44
import { Subscription } from 'rxjs';
5-
// HACK -- Ordpool: shared labitbu-window check; hides the labitbu chip on
6-
// blocks outside the mint window.
7-
import { isLabitbuRange } from 'ordpool-parser';
5+
// HACK -- Ordpool: labitbu mint-window constants; the chip is hidden on
6+
// blocks outside this height range. The 10,000 labitbus were minted
7+
// across blocks 908,072-908,196, so showing the chip elsewhere is noise.
8+
import { LABITBU_FIRST_HEIGHT, LABITBU_LAST_HEIGHT } from 'ordpool-parser';
89

910

1011
@Component({
@@ -68,7 +69,7 @@ export class BlockFiltersComponent implements OnInit, OnChanges, OnDestroy {
6869
// Show on mempool / cluster views (blockHeight = null) and on blocks
6970
// inside the window. Hide everywhere else: the labitbu experiment is
7071
// done and the chip is meaningless on every other block.
71-
if (this.blockHeight != null && !isLabitbuRange(this.blockHeight)) {
72+
if (this.blockHeight != null && (this.blockHeight < LABITBU_FIRST_HEIGHT || this.blockHeight > LABITBU_LAST_HEIGHT)) {
7273
this.disabledFilters['ordpool_labitbu'] = true;
7374
}
7475
}

0 commit comments

Comments
 (0)