Skip to content

Commit a29e014

Browse files
committed
fastcopy-chaindata: Leveldb file numbers can exceed 6 digits
For long-running instances, leveldb file numbers can go on beyond 6 digits. Adapt the regexp to this.
1 parent 0cb8c9b commit a29e014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastcopy-chaindata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def link_leveldb(src: str, dst: str):
4747
ldb_files = []
4848
other_files = []
4949
for fname in os.listdir(src):
50-
if re.match('^[0-9]{6}.ldb$', fname):
50+
if re.match('^[0-9]{6,}.ldb$', fname):
5151
ldb_files.append(fname)
5252
else:
5353
other_files.append(fname)

0 commit comments

Comments
 (0)