Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid using same OpAddEntry between different ledger handles #5942
Avoid using same OpAddEntry between different ledger handles.
Add state for OpAddEntry, if op handled by new ledger handle, the op will set to CLOSED state, after the legacy callback happens will check the op state, only INITIATED can be processed.
When ledger rollover happens, pendingAddEntries will be processed. when process pendingAddEntries, will create a new OpAddEntry by the old OpAddEntry to avoid different ledger handles use same OpAddEntry.
Verifying this change
Added new unit test
Does this pull request potentially affect one of the following parts:
2 similar comments