mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
[qa] rpc-tests: Properly use integers, floats
This commit is contained in:
@@ -177,7 +177,7 @@ class MaxUploadTest(BitcoinTestFramework):
|
||||
max_bytes_per_day = 200*1024*1024
|
||||
daily_buffer = 144 * MAX_BLOCK_SIZE
|
||||
max_bytes_available = max_bytes_per_day - daily_buffer
|
||||
success_count = max_bytes_available / old_block_size
|
||||
success_count = max_bytes_available // old_block_size
|
||||
|
||||
# 144MB will be reserved for relaying new blocks, so expect this to
|
||||
# succeed for ~70 tries.
|
||||
|
||||
Reference in New Issue
Block a user