Skip to content

Commit 74ed533

Browse files
committed
fix: address Windows filename issues
Use underscore instead of colon since its not allowed in filenames in Windows. This is are some of the fixes required for Windows support which gets introduced/tested in the CI overhaul PR #253.
1 parent 3884314 commit 74ed533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash-spv/src/chain/chainlock_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl ChainLockManager {
333333
}
334334

335335
// Store persistently
336-
let key = format!("chainlock:{}", chain_lock.block_height);
336+
let key = format!("chainlock_{}", chain_lock.block_height);
337337
let data = bincode::serialize(&chain_lock)
338338
.map_err(|e| StorageError::Serialization(e.to_string()))?;
339339
storage.store_metadata(&key, &data).await?;
@@ -414,7 +414,7 @@ impl ChainLockManager {
414414
let mut chain_locks = Vec::new();
415415

416416
for height in start_height..=end_height {
417-
let key = format!("chainlock:{}", height);
417+
let key = format!("chainlock_{}", height);
418418
if let Some(data) = storage.load_metadata(&key).await? {
419419
match bincode::deserialize::<ChainLock>(&data) {
420420
Ok(chain_lock) => {

0 commit comments

Comments
 (0)