1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Show # of mempool transactions

This commit is contained in:
Roman Zeyde 2018-07-03 15:37:49 +03:00
parent 91f9a90ca0
commit 23b2e4ea9c
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

2
tools/mempool.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import binascii
import json
import socket
@ -49,6 +50,7 @@ def main():
plt.semilogy(vsize / 1e6, rate, '-')
plt.xlabel('Mempool size (MB)')
plt.ylabel('Fee rate (sat/vbyte)')
plt.title('{} transactions'.format(len(entries)))
plt.grid()
plt.show()