Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion backend/src/api/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,9 @@ class Blocks {

const angorDecoder = new AngorTransactionDecoder(
transactionHex,
AngorSupportedNetworks.Testnet
config.MEMPOOL.NETWORK === 'mainnet'
? AngorSupportedNetworks.Bitcoin
: AngorSupportedNetworks.Testnet
);

await angorDecoder
Expand Down
4 changes: 3 additions & 1 deletion backend/src/api/mempool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ class Mempool {

const angorDecoder = new AngorTransactionDecoder(
transactionHex,
AngorSupportedNetworks.Testnet
config.MEMPOOL.NETWORK === 'mainnet'
? AngorSupportedNetworks.Bitcoin
: AngorSupportedNetworks.Testnet
);

await angorDecoder
Expand Down
4 changes: 3 additions & 1 deletion backend/src/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ class Indexer {

const angorDecoder = new AngorTransactionDecoder(
transactionHex,
AngorSupportedNetworks.Testnet
config.MEMPOOL.NETWORK === 'mainnet'
? AngorSupportedNetworks.Bitcoin
: AngorSupportedNetworks.Testnet
);

// Try to decode and store transaction as Angor project creation transaction.
Expand Down
1 change: 1 addition & 0 deletions docker-angor-api/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ services:
container_name: mempool-api
image: blockcore/mempool-backend:latest
environment:
MEMPOOL_NETWORK: "signet"
MEMPOOL_BACKEND: "esplora" # can be esplora or electrum
ESPLORA_REST_API_URL: "http://mempool-electrs:3003"
ESPLORA_REQUEST_TIMEOUT: "50000"
Expand Down