mempool / mempool

Explore the full Bitcoin ecosystem with mempool.space, or self-host your own instance with one-click installation on popular Raspberry Pi fullnode distros including Umbrel, Raspiblitz, Start9, and more!
https://mempool.space
Other
2.06k stars 623 forks source link

Per network block weight support #5201

Open softsimon opened 4 months ago

softsimon commented 4 months ago

Currently, Mainnet has 4000000 BLOCK_WEIGHT_UNITS but Signet has 1000000 which is not configurable as all networks use the same value in production.

We need to somehow be able to set this per network in the frontend build.

I tried sending this value through the websocket from the backend instead, but the delay from the websocket causes race condition rendering issues.

Changing SIGNET: boolean; To something like this might work?

SIGNET: {
 ENABLED: true,
 BLOCK_WEIGHT_UNITS: 1000000
}
knorrium commented 4 months ago

@softsimon After looking into this some more I think we should keep the config flat to avoid extra work to generate-config and the Docker overrides.