fix pixels staying on after render

This commit is contained in:
2023-12-21 18:27:10 -05:00
parent babd5d8253
commit 6516c40862
5 changed files with 51 additions and 3 deletions
+6 -1
View File
@@ -61,6 +61,11 @@ func main() {
log.Fatal(err)
}
currentPrice, err := mp.CurrentPrice()
if err != nil {
log.Fatal(err)
}
var blockHeight int
blockHeightMutex := &sync.Mutex{}
var fees mempool.Fees
@@ -72,6 +77,7 @@ func main() {
fees.FastestFee = highfee
fees.HalfHourFee = medfee
fees.HourFee = lowfee
price = currentPrice
go mp.Listen(ctx, msgs, errs, mdone)
@@ -105,7 +111,6 @@ func main() {
return
case <-ticker.C:
d.Clear()
d.Render()
err = updateSlots(d, price, blockHeight, fees.HourFee, fees.HalfHourFee, fees.FastestFee)
if err != nil {
log.Fatal(err)