mirror of
https://github.com/Retropex/bitfeed.git
synced 2025-05-12 19:20:46 +02:00
Tweak new block animation
This commit is contained in:
parent
9f5d2853a4
commit
6fb78ecd2d
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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) |
|
||||
|
Loading…
Reference in New Issue
Block a user