Improve logging and metrics for block publication (#5699)

* Improve logging and metrics for block publication

* Add better buckets

* Bump SQL connection timeout for tests.
This commit is contained in:
Michael Sproul
2024-05-03 18:24:49 +10:00
committed by GitHub
parent ee974db0ba
commit d3d429ff5c
4 changed files with 26 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ pub(crate) fn compute_parent_chains(nodes: &[Node]) -> Vec<NodeChain> {
// Iterate blocks with no children
for tip in nodes {
let mut block_root = tip.block_root;
if parent_to_child.get(&block_root).is_none() {
if !parent_to_child.contains_key(&block_root) {
let mut chain = vec![];
// Resolve chain of blocks