revert test fixes for invites
This commit is contained in:
2025-12-17 21:09:01 -05:00
parent 7469c84692
commit 4f450e804d
2 changed files with 6 additions and 16 deletions
+2 -4
View File
@@ -711,11 +711,9 @@ async function setupP2NS() {
state.keypair = keypair;
logInfo('Main', 'Persistent keypair loaded');
// 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 });
const store = new Corestore(config.STORAGE_DIR);
state.store = store;
logInfo('Main', `Corestore initialized with stable primaryKey`, { storageDir: config.STORAGE_DIR });
logInfo('Main', `Corestore initialized`, { storageDir: config.STORAGE_DIR });
// Use the persistent keypair from state
// Configure Hyperswarm for better local network peer discovery