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
9efbb57766bb0ed8e92e470528bfc07036b647c4
pallectrum/scripts/estimate_fee

6 lines
167 B
Plaintext
Raw Normal View History

new scripts: bip70 and estimate_fee
2015-02-16 14:05:04 +01:00
#!/usr/bin/env python
import util, json
peers = 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])
new scripts: bip70 and estimate_fee
2015-02-16 14:05:04 +01:00
print json.dumps(results, indent=4)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 128ms Template: 7ms
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