Hi Substrate Community,
is there any way to get the current block weight? This is especially useful, when deciding in
on_finalize if there is space left to put in some logic. I know, that
on_finalize is guaranteed to run, but I would only run if a block is not full.
How can I manage to do this with Substrate?
I already tried to look into the
frame_system pallet. I could find a
BlockWeights struct, but it hasn't the current block weight inside it.