more simple acceleration UI adjustments

This commit is contained in:
Mononaut committed 2024-06-27 09:07:24 +00:00
1 parent 4445fe408b
commit 9fe44bd6ba
4 files changed
+29 -17

No files matched your search

+3 -2
View File
@@ -6,7 +6,7 @@ import { Transaction } from '../interfaces/electrs.interface';
import { MiningService, MiningStats } from './mining.service';
import { getUnacceleratedFeeRate } from '../shared/transaction.utils';
import { AccelerationEstimate } from '../components/accelerate-preview/accelerate-preview.component';
import { Observable, combineLatest, map, of } from 'rxjs';
import { Observable, combineLatest, map, of, share, shareReplay, tap } from 'rxjs';
export interface ETA {
now: number, // time at which calculation performed
@@ -61,7 +61,8 @@ export class EtaService {
{ block: 0, hashrateShare: acceleratingHashrateFraction },
], da).time,
};
})
}),
shareReplay()
);
}