Skip to content

Commit 186ea18

Browse files
committed
Removed the test blockchain service as it is no longer used
Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
1 parent 657aa1d commit 186ea18

File tree

4 files changed

+0
-106
lines changed

4 files changed

+0
-106
lines changed

src/infrastructure/BlockchainServices/TestBlockchainService.ts

Lines changed: 0 additions & 97 deletions
This file was deleted.

src/infrastructure/Workers/BlockIndexer/BlockIndexer.worker.logic.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Database from 'better-sqlite3';
22
import { Observable } from 'observable-fns';
33
import { ChiaBlockchainService } from '../../BlockchainServices/ChiaBlockchainService';
4-
import { TestBlockchainService } from '../../BlockchainServices/TestBlockchainService';
54
import { IBlockchainService } from '../../BlockchainServices/IBlockChainService';
65
import { CREATE_BLOCKS_TABLE_SQL } from '../../../application/repositories/BlockRepository';
76
import { Block } from '../../../application/types/Block';
@@ -56,9 +55,6 @@ export const api = {
5655
db.exec(CREATE_BLOCKS_TABLE_SQL);
5756

5857
switch (blockchainType) {
59-
case BlockChainType.Test:
60-
blockchainService = new TestBlockchainService();
61-
break;
6258
case BlockChainType.Chia:
6359
default:
6460
blockchainService = new ChiaBlockchainService();

src/infrastructure/Workers/CoinIndexer/CoinIndexer.worker.logic.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Observable } from 'observable-fns';
22
import { CoinRepository, CoinRow } from '../../Repositories/CoinRepository';
33
import { PeerType, Tls, type Coin } from '@dignetwork/datalayer-driver';
4-
import { TestBlockchainService } from '../../BlockchainServices/TestBlockchainService';
54
import { ChiaBlockchainService } from '../../BlockchainServices/ChiaBlockchainService';
65
import { IBlockchainService } from '../../BlockchainServices/IBlockChainService';
76
import { WalletRepository, AddressRow } from '../../../application/repositories/WalletRepository';
@@ -114,9 +113,6 @@ export const api = {
114113
walletRepo = new WalletRepository();
115114

116115
switch (_blockchainType) {
117-
case BlockChainType.Test:
118-
blockchainService = new TestBlockchainService();
119-
break;
120116
case BlockChainType.Chia:
121117
default:
122118
blockchainService = new ChiaBlockchainService();

test/application/types/ColdWallet.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { ColdWallet } from '../../../src/application/types/ColdWallet';
22
import config from '../../../src/config';
3-
import { TestBlockchainService } from '../../../src/infrastructure/BlockchainServices/TestBlockchainService';
43

54
const TEST_ADDRESS = 'xch1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqc8249j';
65
const TEST_puzzleHash = Buffer.from('aabbcc', 'hex');

0 commit comments

Comments
 (0)