mirror of
https://github.com/monero-project/monero.git
synced 2025-08-03 18:14:18 -04:00
block_weight: fix python 2/3 compatibility
This commit is contained in:
parent
55d7eb06a8
commit
1a91385eaf
2 changed files with 7 additions and 5 deletions
|
@ -3,6 +3,7 @@
|
|||
# This uses the scheme proposed by ArticMine
|
||||
# Written by Sarang Nother
|
||||
# Copyright (c) 2019 The Monero Project
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import math
|
||||
|
||||
|
@ -67,7 +68,7 @@ def run(t, blocks):
|
|||
lt_weights.append(min(max_weight,int(ltembw + int(ltembw * 2 / 5))))
|
||||
|
||||
#print "H %u, r %u, BW %u, EMBW %u, LTBW %u, LTEMBW %u, ltmedian %u" % (block, r, max_weight, embw, lt_weights[-1], ltembw, ltmedian)
|
||||
print "H %u, BW %u, EMBW %u, LTBW %u" % (block, max_weight, embw, lt_weights[-1])
|
||||
print("H %u, BW %u, EMBW %u, LTBW %u" % (block, max_weight, embw, lt_weights[-1]))
|
||||
|
||||
run(0, 2 * MEDIAN_WINDOW_BIG)
|
||||
run(1, 9 * MEDIAN_WINDOW_BIG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue