mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2025-01-03 09:29:36 +00:00
Fix tx pool stats
Some checks are pending
MacOS Build / build (20) (push) Waiting to run
MacOS 12 - x64 DMG Build / build (20) (push) Waiting to run
Ubuntu 22.04 - AppImage Build / build (20) (push) Waiting to run
Ubuntu 22.04 - x64 DEB Build / build (20) (push) Waiting to run
Ubuntu 24.04 - x64 DEB Build / build (20) (push) Waiting to run
Windows Installer Build / build (20) (push) Waiting to run
Windows Portable Build / build (20) (push) Waiting to run
Some checks are pending
MacOS Build / build (20) (push) Waiting to run
MacOS 12 - x64 DMG Build / build (20) (push) Waiting to run
Ubuntu 22.04 - AppImage Build / build (20) (push) Waiting to run
Ubuntu 22.04 - x64 DEB Build / build (20) (push) Waiting to run
Ubuntu 24.04 - x64 DEB Build / build (20) (push) Waiting to run
Windows Installer Build / build (20) (push) Waiting to run
Windows Portable Build / build (20) (push) Waiting to run
This commit is contained in:
parent
d99f74f390
commit
eb37929c14
3 changed files with 12 additions and 7 deletions
|
@ -1098,7 +1098,7 @@ export class DaemonService {
|
|||
throw new Error(response.status);
|
||||
}
|
||||
|
||||
return TxPoolStats.parse(response);
|
||||
return TxPoolStats.parse(response.pool_stats);
|
||||
}
|
||||
|
||||
public async getTransactionPoolHashes(): Promise<string[]> {
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
<div class="col-md-6">
|
||||
<h6>Bytes</h6>
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item"><strong>Bytes Max:</strong> {{ txPoolStats.bytesMax }} bytes</li>
|
||||
<li class="list-group-item"><strong>Bytes Med:</strong> {{ txPoolStats.bytesMed }} units</li>
|
||||
<li class="list-group-item"><strong>Bytes Max:</strong> {{ txPoolStats.bytesMax }}</li>
|
||||
<li class="list-group-item"><strong>Bytes Med:</strong> {{ txPoolStats.bytesMed }}</li>
|
||||
<li class="list-group-item"><strong>Bytes Min:</strong> {{ txPoolStats.bytesMin }}</li>
|
||||
<li class="list-group-item"><strong>Bytes Total:</strong> {{ txPoolStats.bytesTotal }}</li>
|
||||
</ul>
|
||||
|
@ -51,6 +51,7 @@
|
|||
<li class="list-group-item"><strong>Failing transactions:</strong> {{ txPoolStats.numFailing }}</li>
|
||||
<li class="list-group-item"><strong>Non-relayed transactions:</strong> {{ txPoolStats.numNotRelayed }}</li>
|
||||
<li class="list-group-item"><strong>Oldest transaction in the pool:</strong> {{ txPoolStats.oldest }}</li>
|
||||
<li class="list-group-item"><strong>Fee total:</strong> {{ txPoolStats.feeTotalXMR }} XMR</li>
|
||||
<li class="list-group-item"><strong>Total number of transactions:</strong> {{ txPoolStats.txsTotal }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -16,6 +16,10 @@ export class TxPoolStats {
|
|||
public readonly oldest: number;
|
||||
public readonly txsTotal: number;
|
||||
|
||||
public get feeTotalXMR(): number {
|
||||
return this.feeTotal / 1e12;
|
||||
}
|
||||
|
||||
constructor(bytesMax: number, bytesMed: number, bytesMin: number, bytesTotal: number,
|
||||
feeTotal: number, histo: TxPoolHisto, histo98pc: number, num10m: number,
|
||||
numDoubleSpends: number, numFailing: number, numNotRelayed: number, oldest: number,
|
||||
|
@ -41,10 +45,10 @@ export class TxPoolStats {
|
|||
const bytesMed: number = txPoolStats.bytes_med;
|
||||
const bytesMin: number = txPoolStats.bytes_min;
|
||||
const bytesTotal: number = txPoolStats.bytes_total;
|
||||
const feeTotal: number = txPoolStats.total_fee;
|
||||
const histo: TxPoolHisto = TxPoolHisto.parse(txPoolStats.histo);
|
||||
const histo98pc: number = txPoolStats.histo98pc;
|
||||
const num10m: number = txPoolStats.num10m;
|
||||
const feeTotal: number = txPoolStats.fee_total;
|
||||
const histo: TxPoolHisto = txPoolStats.histo ? TxPoolHisto.parse(txPoolStats.histo) : new TxPoolHisto(0, 0);
|
||||
const histo98pc: number = txPoolStats.histo_98pc;
|
||||
const num10m: number = txPoolStats.num_10m;
|
||||
const numDoubleSpends: number = txPoolStats.num_double_spends;
|
||||
const numFailing: number = txPoolStats.num_failing;
|
||||
const numNotRelayed: number = txPoolStats.num_not_relayed;
|
||||
|
|
Loading…
Reference in a new issue