Tweak new block animation

This commit is contained in:
Mononaut 2022-06-10 20:07:16 +00:00
parent 9f5d2853a4
commit 6fb78ecd2d
2 changed files with 10 additions and 5 deletions

View File

@ -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
}
}

View File

@ -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) |