Skip to content

Commit

Permalink
merlion audit
Browse files Browse the repository at this point in the history
  • Loading branch information
freddi8e committed Mar 6, 2024
1 parent adbfd6c commit 8f45d1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions consensus/merlion/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ func (api *API) Status() (*status, error) {
var (
numBlocks = uint64(64)
header = api.chain.CurrentHeader()
diff = uint64(0)
optimals = 0
// diff = uint64(0)
optimals = 0
)
snap, err := api.merlion.snapshot(api.chain, header.Number.Uint64(), header.Hash(), nil)
if err != nil {
Expand All @@ -132,7 +132,7 @@ func (api *API) Status() (*status, error) {
if h.Difficulty.Cmp(diffInTurn) == 0 {
optimals++
}
diff += h.Difficulty.Uint64()
// diff += h.Difficulty.Uint64()
sealer, err := api.merlion.Author(h)
if err != nil {
return nil, err
Expand Down

0 comments on commit 8f45d1c

Please sign in to comment.