Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store historical issuers and use that data #925

Merged
merged 4 commits into from
May 2, 2019

Conversation

dexX7
Copy link
Member

@dexX7 dexX7 commented Apr 25, 2019

During startup, when reloading the effect of freeze transactions, it is checked, whether the sender of a freeze transaction is the issuer of that token and thus allowed to freeze tokens. However, if the issuer of the token has been changed in the meantime, that check fails. Such a fail is interpreted as state inconsistency, which is critical and causes a shutdown of the client.

With this change, historical issuers are persisted and can be accessed for any given block. When there is an issuer check, it now checks against the issuer at that point.

Please note: the internal database of Omni Core is upgraded, which triggers a reparse of Omni Layer transactions the first time this version is started. This can take between 30 minutes and a few hours of processing time, during which Omni Core is unusable!

This pull request resolves #922.

@john-shine
Copy link

When fix master branch, the top priority?

@dexX7
Copy link
Member Author

dexX7 commented May 1, 2019

Hi @john-shine, we are currently testing, but I except a release of the new version this week.

@john-shine
Copy link

@dexX7 Many thanks for your works

@dexX7 dexX7 merged commit b2900f1 into OmniLayer:develop May 2, 2019
dexX7 added a commit that referenced this pull request May 2, 2019
b2900f1 Bump DB version to trigger reparse (dexX7)
28ff1c4 Add unit tests for getting historical issuers (dexX7)
bfc3016 Store historical issuers and check against it (dexX7)
901e97c Add support to store historical issuers (dexX7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants