Skip to content

StateDB corrector extension performance improvement #78

Description

@wsodsong

Current implementation works correctly, but db read is blocking therefore there is slight delay)

solution is to change getException to exceptionIterator.Next. currentBlockException *substate.Exception used troughout the exception_pre_trasaction_updator.go should be changed to NewExceptionIterator logic will that all functions will be reading from currentBlockException which will be accessible as Iter.Value(), but only in PreBlock there will be call for Iter.Next() if it is current block then set it to currentBlockException if it is past it has to be compared with currentBlockException if there is a gap in PreBlock fix of empty blocks (blocks with just skippedTx) have to be iterated trough and only then Iter.Next() can be called.

Create an issue from #70 discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions