osmosis icon indicating copy to clipboard operation
osmosis copied to clipboard

[Feature]: Patch release improvement to x/slashing begin block logic

Open ValarDragon opened this issue 1 year ago • 0 comments

Summary

BeginBlock logic for slashing takes 2-3% of sync time right now, even in v24. image

We can in a patch release speed this up by:

  • Making signedblocks window not call GetParams. Use passed in params
  • Making a single logger call, not one per validator
  • Cache MinSignedPerWindowInt

That would speedup sync speed by ~.8%.

We may also be able to patch release improve GetMissedBlockBitMapChunk by skipping getting a chunk from state if a validator has 100% uptime and signed the block.

Problem Definition

No response

Proposed Feature

.

ValarDragon avatar Apr 12 '24 09:04 ValarDragon