Skip to content

Commit

Permalink
chore: add CARDANO_NODE_NETWORK_ID env var (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
avatxus authored Mar 28, 2024
1 parent 578b239 commit 03c186c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion operator/src/shared/cardano-node-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const MAGIC_BY_NETWORK: Record<string, string> = {
mainnet: '764824073',
sanchonet: '4',
'cc-private': '5',
'vector-testnet': '1177'
'vector-testnet': '1177',
};

function networkMagic(network: Network): string | undefined {
Expand Down Expand Up @@ -48,6 +48,7 @@ export function getCardanoNodeEnvVars(dep: DependencyResource, service: ServiceP
{ name: 'CARDANO_NODE_PORT', value: port },
{ name: 'CARDANO_NODE_MAGIC', value: networkMagic(network)! },
{ name: 'CARDANO_TESTNET_MAGIC', value: networkMagic(network)! },
{ name: 'CARDANO_NODE_NETWORK_ID', value: networkMagic(network)! },
{ name: 'CARDANO_NODE_SOCKET_PATH', value: '/ipc/node.socket' },
];
}
Expand Down

0 comments on commit 03c186c

Please sign in to comment.