janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.58k stars 1.18k forks source link

BTCEXP_UI_HOME_PAGE_LATEST_BLOCKS_COUNT is multiplied by 10 #330

Closed pointbiz closed 3 years ago

pointbiz commented 3 years ago

Describe the bug

When setting the configuration value for BTCEXP_UI_HOME_PAGE_LATEST_BLOCKS_COUNT the number of blocks shown on the homepage is 10 times the value in the config.

The value on the browse blocks page works fine.

Environment (please complete the following information):

BTCEXP_SLOW_DEVICE_MODE=false BTCEXP_NO_RATES=false
BTCEXP_UI_HOME_PAGE_LATEST_BLOCKS_COUNT=3 BTCEXP_UI_BLOCKS_PAGE_BLOCK_COUNT=5

include the content from the following files. BE SURE TO MODIFY YOUR CREDENTIALS BEFORE SUBMITTING!!!

To Reproduce

Steps to reproduce the behavior:

  1. Go to homepage
  2. Look at latest blocks
  3. I expect to see 3 blocks.
  4. I actually see 30 blocks.

Screenshots or Log Output

If applicable, add screenshots or log output to help explain your problem.

Additional context

Add any other context about the problem here.