Python based Bytom wallet tools
修订版 | 08d7d92a8cbf0809f1ead8d68fd6aa3bfc3893ae (tree) |
---|---|
时间 | 2018-06-26 18:15:16 |
作者 | successli <successli@outl...> |
Commiter | successli |
docs(README.md): add One last disclaimer.
@@ -1,5 +1,15 @@ | ||
1 | 1 | # UTXO merger |
2 | 2 | |
3 | + | |
4 | +> **One last disclaimer:** | |
5 | + | |
6 | +**the code we are about to go over is in no way intended to be used as an example of a robust solution.** | |
7 | + | |
8 | +**We wouldn't be responsible for the consequences of using this tool.** | |
9 | + | |
10 | +**please check this python code carefully and use it later.** | |
11 | + | |
12 | + | |
3 | 13 | Requirements: Python 3.x, with requests package |
4 | 14 | |
5 | 15 | Dependencies: |
@@ -88,6 +88,10 @@ def main(): | ||
88 | 88 | utxo_total = [] |
89 | 89 | utxolist = list_utxo(options.url, options.account_alias, options.min_amount, options.max_amount) |
90 | 90 | |
91 | + if (options.merge_list * options.for_loop) > len(utxolist): | |
92 | + print('input size is too large, please check it later.') | |
93 | + return | |
94 | + | |
91 | 95 | for i, utxo in enumerate(utxolist): |
92 | 96 | print('{:4}. {:13.8f} BTM {}{}'.format(i, utxo['amount'] / 1e8, utxo['id'], ' (mature)')) |
93 | 97 | if i >= options.merge_list * options.for_loop: |