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

removes hash from account createdAt #5044

Open
wants to merge 4 commits into
base: staging
Choose a base branch
from

Conversation

hughy
Copy link
Contributor

@hughy hughy commented Jun 14, 2024

Summary

sets createdAt sequence to 'head.sequence - confirmations' to mitigate issues with setting account createdAt around the time of a chain reorg.

adds migrations 33 to migrate existing account.createdAt values to use the existing createdAt.sequence - confirmations

removes unused function chainGetPreviousBlockHash

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

@hughy hughy requested a review from a team as a code owner June 14, 2024 16:29
Base automatically changed from feat/hughy/account-import-networkid to staging June 17, 2024 23:33
@hughy hughy marked this pull request as draft June 20, 2024 20:11
sets createdAt sequence to 'head.sequence - confirmations' to mitigate issues
with setting account createdAt around the time of a chain reorg.

adds migrations 33 to migrate existing account.createdAt values to use the
existing createdAt.sequence - confirmations

removes unused function chainGetPreviousBlockHash
uses single number value instead of nesting sequence in object

updates all account fixtures
@hughy hughy force-pushed the feat/hughy/createdat-sequence branch from 4b7c12e to ab981cd Compare June 21, 2024 23:03
@hughy hughy marked this pull request as ready for review June 26, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants