Skip to content

Commit

Permalink
feat: add signet network (#545)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Potdevin <[email protected]>
  • Loading branch information
douglaz and apotdevin authored Jul 20, 2023
1 parent ec2857b commit accdc5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/server/modules/files/files.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ import { getSHA256Hash, hashPassword } from 'src/server/utils/crypto';
import { resolveEnvVarsInAccount } from 'src/server/utils/env';

const isValidNetwork = (network: string | null): network is BitcoinNetwork =>
network === 'mainnet' || network === 'regtest' || network === 'testnet';
network === 'mainnet' ||
network === 'regtest' ||
network === 'testnet' ||
network == 'signet';

export const PRE_PASS_STRING = 'thunderhub-';

Expand Down
2 changes: 1 addition & 1 deletion src/server/modules/files/files.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type EncodingType = 'hex' | 'utf-8';
export type BitcoinNetwork = 'mainnet' | 'regtest' | 'testnet';
export type BitcoinNetwork = 'mainnet' | 'regtest' | 'testnet' | 'signet';

export type AccountType = {
name?: string;
Expand Down

0 comments on commit accdc5e

Please sign in to comment.