• R/O
  • HTTP
  • SSH
  • HTTPS

bytom-spanner: Commit

Python based Bytom wallet tools


Commit MetaInfo

Revision08d7d92a8cbf0809f1ead8d68fd6aa3bfc3893ae (tree)
Zeit2018-06-26 18:15:16
Autorsuccessli <successli@outl...>
Commitersuccessli

Log Message

docs(README.md): add One last disclaimer.

Ändern Zusammenfassung

Diff

--- a/utxomerger/README.md
+++ b/utxomerger/README.md
@@ -1,5 +1,15 @@
11 # UTXO merger
22
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+
313 Requirements: Python 3.x, with requests package
414
515 Dependencies:
--- a/utxomerger/merge_utxo.py
+++ b/utxomerger/merge_utxo.py
@@ -88,6 +88,10 @@ def main():
8888 utxo_total = []
8989 utxolist = list_utxo(options.url, options.account_alias, options.min_amount, options.max_amount)
9090
91+ if (options.merge_list * options.for_loop) > len(utxolist):
92+ print('input size is too large, please check it later.')
93+ return
94+
9195 for i, utxo in enumerate(utxolist):
9296 print('{:4}. {:13.8f} BTM {}{}'.format(i, utxo['amount'] / 1e8, utxo['id'], ' (mature)'))
9397 if i >= options.merge_list * options.for_loop:
Show on old repository browser