Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ from web3 import Web3
|
|
| 14 |
# ============================================================
|
| 15 |
CSV_FILE = "14262022_addresses.csv"
|
| 16 |
|
| 17 |
-
NUM_PHRASES =
|
| 18 |
SCAN_MODE = "File"
|
| 19 |
ACC_START = 0
|
| 20 |
ACC_END = 29
|
|
@@ -209,7 +209,7 @@ def main():
|
|
| 209 |
) as pool:
|
| 210 |
|
| 211 |
# chunksize=2 distributes work rapidly across both NUMA nodes
|
| 212 |
-
for paths, matches in pool.imap_unordered(process_phrase_worker, phrases_to_check, chunksize=
|
| 213 |
phrases_checked += 1
|
| 214 |
total_paths_checked += paths
|
| 215 |
|
|
|
|
| 14 |
# ============================================================
|
| 15 |
CSV_FILE = "14262022_addresses.csv"
|
| 16 |
|
| 17 |
+
NUM_PHRASES = 5000
|
| 18 |
SCAN_MODE = "File"
|
| 19 |
ACC_START = 0
|
| 20 |
ACC_END = 29
|
|
|
|
| 209 |
) as pool:
|
| 210 |
|
| 211 |
# chunksize=2 distributes work rapidly across both NUMA nodes
|
| 212 |
+
for paths, matches in pool.imap_unordered(process_phrase_worker, phrases_to_check, chunksize=5):
|
| 213 |
phrases_checked += 1
|
| 214 |
total_paths_checked += paths
|
| 215 |
|