Skip to content

Commit

Permalink
feat: add signet network
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaz committed Jul 12, 2023
1 parent 8a55db4 commit 165eba3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/modules/files/files.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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 165eba3

Please sign in to comment.