bitshares / bitshares/bitshares-core

Improve update_last_irreversible_block() performance

Open
#1,105 3 comments 0 reactions 0 assignees View on GitHub
1c Task 4b Normal Priority 6 Performance 9b Small performance
Dominant language
C++
Stars
1.2k
Forks
660
Avg merge
8h 17m
Merged PRs (30d)
26

Description

For better performance, do this in maintenance interval rather than on every new block: https://github.com/bitshares/bitshares-core/blob/06aee789a4e2045d899e02b096d5a1a908be2865/libraries/chain/db_update.cpp#L129-L132

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in libraries/chain/db_update.cpp at lines 129-132 and trace how update_last_irreversible_block() is currently invoked for each new block. Read the maintenance-interval handling and identify the existing execution path to use; done means the update runs there rather than on every block, with behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
blockchain
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.