mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Add mempool status to daemoninfo.py
This commit is contained in:
parent
a870165de9
commit
e92e7148e2
1 changed files with 7 additions and 0 deletions
|
@ -44,3 +44,10 @@ for hdr in reversed(d.headers(info['height']-6, info['height']-1)):
|
|||
print("{height:10d} {hash} {block_size_kb:6.2f} kB {num_txes:3d} txn(s) "
|
||||
"v{major_version:d}".format(
|
||||
block_size_kb=hdr['block_size']/1024.0, **hdr))
|
||||
mempool = d.mempool()
|
||||
if mempool:
|
||||
print("\n{:d} txn(s) in mempool:".format(len(mempool)))
|
||||
for tx in d.mempool():
|
||||
print("{:>10s} {:s}".format(tx.timestamp.strftime("%H:%M:%S"), tx.hash))
|
||||
else:
|
||||
print("\nMempool is empty")
|
||||
|
|
Loading…
Reference in a new issue