Skip to content

Commit

Permalink
Merge pull request #7500 from MinaProtocol/fix/observed-block-height-…
Browse files Browse the repository at this point in the history
…status

fix max observed block length
  • Loading branch information
es92 authored Jan 15, 2021
2 parents 4c2fefd + ba68a0a commit 55f156f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lib/mina_commands/mina_commands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ let get_status ~flag t =
; sync_status
; catchup_status
; blockchain_length
; highest_block_length_received= !max_block_height
; highest_block_length_received=
(*if this function is not called until after catchup max_block_height will be 1 and most_recent_valid_transition pipe might have the genesis block as the latest transition in which case return the best tip length*)
max (Option.value ~default:1 blockchain_length) !max_block_height
; uptime_secs
; ledger_merkle_root
; state_hash
Expand Down
2 changes: 1 addition & 1 deletion src/lib/network_pool/network_pool_base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ end)
| `Within_capacity -> (
match%bind Resource_pool.Diff.verify t.resource_pool diff with
| Error err ->
[%log' warn t.logger]
[%log' debug t.logger]
"Refusing to rebroadcast $diff. Verification error: \
$error"
~metadata:
Expand Down

0 comments on commit 55f156f

Please sign in to comment.