update scripts for python3
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
import util, sys
|
||||
try:
|
||||
tx = sys.argv[1]
|
||||
except:
|
||||
print "usage: txradar txid"
|
||||
print("usage: txradar txid")
|
||||
sys.exit(1)
|
||||
|
||||
peers = util.get_peers()
|
||||
@@ -15,5 +15,5 @@ r2 = []
|
||||
for k, v in results.items():
|
||||
(r1 if v else r2).append(k)
|
||||
|
||||
print "Received %d answers"%len(results)
|
||||
print "Propagation rate: %.1f percent" % (len(r1) *100./(len(r1)+ len(r2)))
|
||||
print("Received %d answers"%len(results))
|
||||
print("Propagation rate: %.1f percent" % (len(r1) *100./(len(r1)+ len(r2))))
|
||||
|
||||
Reference in New Issue
Block a user