File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -987,7 +987,9 @@ class Blocks {
987987
988988 const angorDecoder = new AngorTransactionDecoder (
989989 transactionHex ,
990- AngorSupportedNetworks . Testnet
990+ config . MEMPOOL . NETWORK === 'mainnet'
991+ ? AngorSupportedNetworks . Bitcoin
992+ : AngorSupportedNetworks . Testnet
991993 ) ;
992994
993995 await angorDecoder
Original file line number Diff line number Diff line change @@ -391,7 +391,9 @@ class Mempool {
391391
392392 const angorDecoder = new AngorTransactionDecoder (
393393 transactionHex ,
394- AngorSupportedNetworks . Testnet
394+ config . MEMPOOL . NETWORK === 'mainnet'
395+ ? AngorSupportedNetworks . Bitcoin
396+ : AngorSupportedNetworks . Testnet
395397 ) ;
396398
397399 await angorDecoder
Original file line number Diff line number Diff line change @@ -256,7 +256,9 @@ class Indexer {
256256
257257 const angorDecoder = new AngorTransactionDecoder (
258258 transactionHex ,
259- AngorSupportedNetworks . Testnet
259+ config . MEMPOOL . NETWORK === 'mainnet'
260+ ? AngorSupportedNetworks . Bitcoin
261+ : AngorSupportedNetworks . Testnet
260262 ) ;
261263
262264 // Try to decode and store transaction as Angor project creation transaction.
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ services:
5252 container_name : mempool-api
5353 image : blockcore/mempool-backend:latest
5454 environment :
55+ MEMPOOL_NETWORK : " signet"
5556 MEMPOOL_BACKEND : " esplora" # can be esplora or electrum
5657 ESPLORA_REST_API_URL : " http://mempool-electrs:3003"
5758 ESPLORA_REQUEST_TIMEOUT : " 50000"
You can’t perform that action at this time.
0 commit comments