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

Write beacon slot to summary chain #358

Merged
1 commit merged into from
Jun 5, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jun 2, 2022

Description

Add the transaction slot to the summary chain by giving the genesis address (from the previous summary date) to append the transaction to.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Author

ghost commented Jun 2, 2022

Current dependencies on this PR:

Current dependencies for this PR:

@ghost ghost force-pushed the 06-02-Write_beacon_slot_to_summary_chain branch from 99279c8 to bee933b Compare June 2, 2022 14:31
@ghost ghost added beacon chain Involve BeaconChain API Involve API facing user labels Jun 2, 2022
@ghost ghost marked this pull request as ready for review June 2, 2022 14:50
@ghost ghost added feature New feature request and removed API Involve API facing user labels Jun 2, 2022
@ghost ghost self-assigned this Jun 2, 2022
@ghost ghost requested a review from imnik11 June 2, 2022 15:10
@ghost ghost changed the base branch from remove_top_transaction_live_unused to develop June 2, 2022 15:53
@ghost ghost changed the base branch from develop to 06-02-Write_transaction_to_specific_genesis_address June 3, 2022 06:21
@ghost ghost changed the base branch from 06-02-Write_transaction_to_specific_genesis_address to develop June 3, 2022 06:21
@ghost ghost added the core team Assigned to the core team label Jun 3, 2022
genesis_address =
Crypto.derive_beacon_chain_address(subset, SummaryTimer.previous_summary(time))

TransactionChain.write_transaction_at(beacon_transaction, genesis_address)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, This is where we are caching as well as writing to the DB

@ghost ghost merged commit 19c6f3a into develop Jun 5, 2022
@ghost ghost deleted the 06-02-Write_beacon_slot_to_summary_chain branch June 5, 2022 17:55
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beacon chain Involve BeaconChain core team Assigned to the core team feature New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant