Skip to content

Commit 9b8fdae

Browse files
author
Greg Junge
committed
Release/v2.3 (#44)
* create v2.3.1 * add docker-compose * update package-lock.json * fix dockerfile and readme * update Dockerfile and readme * fix dockerfile and add .env * fix dockerfile and add .env * update .env file * fix error in Dockerfile * fix error in Dockerfile * update docker-compose to match other repos * fix port number * filter malformed block
1 parent 3373f6e commit 9b8fdae

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
COMPOSE_PROJECT_NAME=localterra
2+
TERRA_VERSION=2.3.4

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ x-fcd-env: &fcd-env
1717

1818
services:
1919
terrad:
20-
image: ghcr.io/terra-money/localterra:2.3.4
20+
image: ghcr.io/terra-money/localterra:${TERRA_VERSION}
2121
hostname: terrad
2222
volumes:
2323
- terra:/app
@@ -49,7 +49,7 @@ services:
4949
build:
5050
context: .
5151
dockerfile: Dockerfile
52-
image: ghcr.io/terra-money/fcd:2.3.4
52+
image: ghcr.io/terra-money/fcd:${TERRA_VERSION}
5353
hostname: fcd_collector
5454
command: collector
5555
restart: unless-stopped
@@ -61,7 +61,7 @@ services:
6161
build:
6262
context: .
6363
dockerfile: Dockerfile
64-
image: ghcr.io/terra-money/fcd:2.3.4
64+
image: ghcr.io/terra-money/fcd:${TERRA_VERSION}
6565
hostname: fcd_api
6666
command: start
6767
environment: *fcd-env

src/collector/block/tx.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ async function generateTxEntities(txHashes: string[], block: BlockEntity): Promi
5151
// TODO: do this without using Set
5252
const txHashesUnique = [...new Set(txHashes)]
5353

54-
return Bluebird.map(txHashesUnique, (txHash) => lcd.getTx(txHash).then((tx) => generateTxEntity(tx, block)))
54+
// Filter out specific string value
55+
const filteredTxHashes = txHashesUnique.filter(
56+
(txHash) => txHash !== 'BDC478F0E2D35AA8C4452A765CA4DB4031295DD3965F24FAB09821C3AFA4677B'
57+
)
58+
59+
return Bluebird.map(filteredTxHashes, (txHash) => lcd.getTx(txHash).then((tx) => generateTxEntity(tx, block)))
5560
}
5661

5762
export async function collectTxs(mgr: EntityManager, txHashes: string[], block: BlockEntity): Promise<TxEntity[]> {

src/collector/collector.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const init = async () => {
4545
await collectBlock()
4646
await createJobs()
4747
await startWatcher()
48+
console.log('Collector started')
4849
}
4950

5051
init().catch(logger.error)

0 commit comments

Comments
 (0)