file reorganization with top-level module
This commit is contained in:
14
electrum/scripts/peers.py
Executable file
14
electrum/scripts/peers.py
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from . import util
|
||||
|
||||
from electrum.network import filter_protocol
|
||||
from electrum.blockchain import hash_header
|
||||
|
||||
peers = util.get_peers()
|
||||
peers = filter_protocol(peers, 's')
|
||||
|
||||
results = util.send_request(peers, 'blockchain.headers.subscribe', [])
|
||||
|
||||
for n,v in sorted(results.items(), key=lambda x:x[1].get('block_height')):
|
||||
print("%60s"%n, v.get('block_height'), hash_header(v))
|
||||
Reference in New Issue
Block a user