Logo
Explore Help
Sign In
davide/pallectrum
1
0
Fork 0
You've already forked pallectrum
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
b1cd260aa9b1bcfb5c3587f78ed4b00a5200ed78
pallectrum/scripts/estimate_fee

7 lines
231 B
Plaintext
Raw Normal View History

use python3 in scripts shebang, fix #4519
2018-07-10 13:49:51 +02:00
#!/usr/bin/env python3
new scripts: bip70 and estimate_fee
2015-02-16 14:05:04 +01:00
import util, json
use python3 in scripts shebang, fix #4519
2018-07-10 13:49:51 +02:00
from electrum.network import filter_protocol
peers = filter_protocol(util.get_peers())
Unify message IDs between network and interfaces Previously network.py had its own idea of request IDs, and each interface had its own which was sent on the wire. The interface would jump through hoops to translate one to the other. This unifies them so that a message ID is passed when queueing a request, in addition to the method and params. network.py is now solely responsible for message ID management. Apart from being simpler and clearer, this also should be faster as there is much less data structure manipulation and rebuilding happening.
2015-09-09 20:41:08 +09:00
results = util.send_request(peers, 'blockchain.estimatefee', [2])
migrating print() to python 3
2017-09-12 17:01:55 +02:00
print(json.dumps(results, indent=4))
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 2063ms Template: 15ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API