Skip to content

Commit

Permalink
fix: increase tip in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
magicalne committed Sep 26, 2022
1 parent 1b640cc commit 1845c51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agent/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ def update_metrics(tip_number, ping, last_block_hash: str,
global DepositDict
global WithdrawalDict

BlockNumber = tip_number
Ping = ping
LastBlockHash = last_block_hash
LastBlockTimestamp = last_block_ts
BlockTimeDifference = block_time_diff
TPS = tps
CommitTransacionCount[tip_number] = tx_cnt
DepositDict[tip_number] = deposit
WithdrawalDict[tip_number] = withdrawal
CommitTransacionCount[BlockNumber] = tx_cnt
DepositDict[BlockNumber] = deposit
WithdrawalDict[BlockNumber] = withdrawal
BlockNumber = tip_number # increase tip in the end


"""
Expand Down

0 comments on commit 1845c51

Please sign in to comment.