Skip to content

chore(db): Link vault archival job to Issue 37#193

Merged
JerryIdoko merged 1 commit intoVesting-Vault:mainfrom
AlAfiz:fix/network-validation-startup
Mar 26, 2026
Merged

chore(db): Link vault archival job to Issue 37#193
JerryIdoko merged 1 commit intoVesting-Vault:mainfrom
AlAfiz:fix/network-validation-startup

Conversation

@AlAfiz
Copy link
Copy Markdown
Contributor

@AlAfiz AlAfiz commented Mar 26, 2026

Resolves #38

Summary

This PR integrates the network validation logic to execute during the application's startup sequence.

Key Changes

  • Environment Driven: Enforces that STELLAR_RPC_URL and STELLAR_NETWORK_PASSPHRASE must be defined and strictly matching in the environment.
  • Database Protection: Integrates validateNetworkOnStartup in src/index.js immediately after database authentication. This ensures the genesis hash is verified against the network_configuration table, preventing scenarios where a Mainnet DB accidentally connects to a Testnet/Futurenet RPC.

Adds documentation mapping the existing vault archival job to the cold storage issue requirements. Fixes Vesting-Vault#37
@JerryIdoko JerryIdoko merged commit c50b370 into Vesting-Vault:main Mar 26, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants