diff --git a/client/src/models/TxBlockScene.js b/client/src/models/TxBlockScene.js index 327c7fa..f7fd498 100644 --- a/client/src/models/TxBlockScene.js +++ b/client/src/models/TxBlockScene.js @@ -125,7 +125,7 @@ export default class TxBlockScene extends TxMondrianPoolScene { state: 'ready' }) } else { - const jitter = (Math.random() * 1700) + const jitter = (Math.random() * 1200) tx.view.update({ display: { position: { @@ -140,10 +140,7 @@ export default class TxBlockScene extends TxMondrianPoolScene { }) tx.view.update({ display: { - color: settingsValue.darkMode && false ? { - h: 0.8, - l: 1.0 - } : orange, + color: ice(tx.colors[this.colorMode].block.color), }, start: now, delay: 50 + jitter, @@ -363,3 +360,10 @@ export default class TxBlockScene extends TxMondrianPoolScene { } else return null } } + +function ice (color) { + return { + h: Math.abs(color.h - 0.58) < 0.1 ? (color.h < 0.58 ? 0.48 : 0.68) : color.h, + l: color.h < 0.76 ? 1 : 0.7 + } +} diff --git a/server/README.md b/server/README.md index ab9751d..365bde4 100644 --- a/server/README.md +++ b/server/README.md @@ -51,6 +51,7 @@ The API server expects the following environment variables to be set: | LOG_LEVEL | Tailor logging verbosity. either "error", "info" (default) or "debug" | | RPC_POOLS | Number of connection pools for RPC requests to Bitcoin Core | | RPC_POOL_SIZE | Number of connections maintained per pool (RPC_POOLS x RPC_POOL_SIZE should be substantially lower than `rpcworkqueue` in bitcoin.conf) | +| TARGET | build target "public" or "personal" | | BITCOIN_HOST | Bitcoin node host address | | BITCOIN_ZMQ_RAWBLOCK_PORT | Bitcoin node ZMQ port for block events (to match `zmqpubrawblock` in bitcoin.conf) | | BITCOIN_ZMQ_RAWTX_PORT | Bitcoin node ZMQ port for transaction events (to match `zmqpubrawtx` in bitcoin.conf) |