Found a bug in signature catchup: Namely, we do not verify the header we receive is valid.
This can easily crash the node, which is how I noticed it. While looking deeper, I also noticed that this function is quite expensive, so here's an attempt at optimizing it. See each commit for a description. Still need some testing.
Found a bug in signature catchup: Namely, we do not verify the header we receive is valid. This can easily crash the node, which is how I noticed it. While looking deeper, I also noticed that this function is quite expensive, so here's an attempt at optimizing it. See each commit for a description. Still need some testing.