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

Persist ETH1 Information #4305

Merged
merged 12 commits into from
Dec 18, 2019
Merged

Persist ETH1 Information #4305

merged 12 commits into from
Dec 18, 2019

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Dec 17, 2019

Part of #1430
Eth1ChainData is used represent all our eth1 chain data so that it can be serialized for persistent storage.

  • Add separate data structures of what to persist in the db.
  • Generate proto file for those structures

@nisdas nisdas marked this pull request as ready for review December 17, 2019 11:21
@nisdas nisdas added the Ready For Review A pull request ready for code review label Dec 17, 2019
@nisdas nisdas mentioned this pull request Dec 17, 2019
2 tasks
@codecov
Copy link

codecov bot commented Dec 17, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@fb431c1). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master   #4305   +/-   ##
========================================
  Coverage          ?   49.6%           
========================================
  Files             ?     180           
  Lines             ?   12731           
  Branches          ?       0           
========================================
  Hits              ?    6315           
  Misses            ?    5427           
  Partials          ?     989

message LatestETH1Data {
uint64 block_height = 2;
uint64 block_time = 3;
repeated bytes block_hash = 4;
Copy link
Member

Choose a reason for hiding this comment

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

do we need ssz-size tag for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

we do not need it, we are just using protobufs to serialize this for disk storage.

@terencechain
Copy link
Member

Can you please add the purpose of the Eth1ChainData message in the description?

@nisdas
Copy link
Member Author

nisdas commented Dec 17, 2019

Added in a comment on it @terencechain

terencechain
terencechain previously approved these changes Dec 17, 2019
@@ -0,0 +1 @@
package kv
Copy link
Member

Choose a reason for hiding this comment

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

What's up with this?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 on this package name, it can be specified in the .proto file

Copy link
Member Author

Choose a reason for hiding this comment

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

removed it

@prylabs-bulldozer prylabs-bulldozer bot merged commit e27bc83 into master Dec 18, 2019
@delete-merged-branch delete-merged-branch bot deleted the saveETH1Data branch December 18, 2019 05:57
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
* add data structures
* generate proto
* add in new fields
* Merge branch 'master' of https://github.com/prysmaticlabs/geth-sharding into saveETH1Data
* add comments
* Merge branch 'master' into saveETH1Data
* remove file
* Merge branch 'saveETH1Data' of https://github.com/prysmaticlabs/geth-sharding into saveETH1Data
* Merge branch 'master' into saveETH1Data
* Merge branch 'master' into saveETH1Data
* Merge refs/heads/master into saveETH1Data
* Merge refs/heads/master into saveETH1Data
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
* add data structures
* generate proto
* add in new fields
* Merge branch 'master' of https://github.com/prysmaticlabs/geth-sharding into saveETH1Data
* add comments
* Merge branch 'master' into saveETH1Data
* remove file
* Merge branch 'saveETH1Data' of https://github.com/prysmaticlabs/geth-sharding into saveETH1Data
* Merge branch 'master' into saveETH1Data
* Merge branch 'master' into saveETH1Data
* Merge refs/heads/master into saveETH1Data
* Merge refs/heads/master into saveETH1Data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants