revert fixes
This commit is contained in:
2025-12-17 21:08:53 -05:00
parent d3b61e9823
commit 7469c84692
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ async function main() {
// Initialize corestore with a stable primaryKey derived from our persistent keypair
// This ensures core keys are deterministic and persistent across restarts
const primaryKey = crypto.createHash('sha256').update(keypair.secretKey).digest();
const store = new Corestore(process.env.STORAGE_DIR || './my-storage', { primaryKey, unsafe: true });
const store = new Corestore(process.env.STORAGE_DIR || './my-storage', { primaryKey });
logInfo('Main', `Corestore initialized with stable primaryKey and storage: ${process.env.STORAGE_DIR || 'my-storage'}`);
// Use the persistent keypair that was loaded earlier (already in state.keypair)
// Configure Hyperswarm for better local network peer discovery
+1 -1
View File
@@ -713,7 +713,7 @@ async function setupP2NS() {
// Initialize corestore with a stable primaryKey derived from our persistent keypair
const primaryKey = crypto.createHash('sha256').update(keypair.secretKey).digest();
const store = new Corestore(config.STORAGE_DIR, { primaryKey, unsafe: true });
const store = new Corestore(config.STORAGE_DIR, { primaryKey });
state.store = store;
logInfo('Main', `Corestore initialized with stable primaryKey`, { storageDir: config.STORAGE_DIR });