Skip to content

Commit 9f5ff78

Browse files
committed
Server: GUI2: Enable stats_support for elementsregtest
1 parent 0e5fa2f commit 9f5ff78

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

explorer/env_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@
8787
'zmq': os.environ.get('ELEMENTSREGTEST_ZMQ'),
8888
'db': DB_FACTORY,
8989
'properties': {
90-
'stats_support': False,
90+
'stats_support': True,
9191
'chain_id': 'elementsregtest_genesis_hash',
9292
'parent_chain': 'regtest',
9393
},
9494
'proc': {
95-
'reorg_cron': [60, 60, False, False], # every 1 min after 1 min, don't cache txs, don't cache stats
95+
'reorg_cron': [60, 60, False, True], # every 1 min after 1 min, don't cache txs, cache stats
9696
'mempool_cacher': [60, 60], # every 1 min after 1 min
97-
'greedy_cacher': [60, 60 * 10, True, False], # every 1 min after 10 min, cache txs, don't cache stats
97+
'greedy_cacher': [60, 60 * 10, True, True], # every 1 min after 10 min, cache txs, cache stats
9898
'block_gen': [60 * 5, 60], # every 5 min after 1 min
9999
'tx_gen': [30, 60], # every 30 secs after 1 min
100100
'pegin_gen': [60, 60], # every 1 min after 1 min

gui2/src/components/block_page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class BlockPage extends Component {
101101

102102
const loadedTransactions = this.state.transactions;
103103
const { chain, chainInfo } = this.props;
104-
const hasBlockStats = !['liquid', 'elementsregtest'].includes(chain);
104+
const hasBlockStats = !['liquid'].includes(chain);
105105
const time = block.mediantime;
106106
const formattedTime = time ? format.formatDate(time * 1000) : '';
107107
const transactionCount = (block.tx) ? block.tx.length : 0;

0 commit comments

Comments
 (0)