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

geth sharding entrypoint and contract deployment #3

Merged
merged 26 commits into from
Jan 22, 2018

Conversation

prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented Jan 15, 2018

Some feature / TODO items to be completed in another pull request.

Feature status:

  • Create geth entrypoint geth shard
  • Accept --datadir flag
  • Accept geth shard [path/to/geth.ipc] (same as geth attach)
  • Check for existing validator management contract (VMC)
  • Deploy static contract bytecode when VMC is not present (i.e. on testnets)
  • Verify existing VMC is expected bytecode Do this in another PR.

TODOs before submit:

  • Load password from file (currently hardcoded as "password")
  • Comment on lookahead periods
  • Code comments on all public methods
  • Code comments on private methods (as needed)
  • Handle keystore panic Do this in another PR.
  • Add brief sharding command description
  • Fix/add basic tests

@prestonvanloon prestonvanloon self-assigned this Jan 15, 2018
@prestonvanloon prestonvanloon changed the title WIP: geth sharding entrypoint and contract deployment geth sharding entrypoint and contract deployment Jan 21, 2018
@Magicking
Copy link
Contributor

@rauljordan
Copy link
Contributor

Agree with @Magicking. The code does work though and it is a good entry point so far into our implementation. I suggest we do merge and then refactor using these internal functions to reduce the amt of code. I really want these changes into master for my development. I did get some issues running tests: the /geth.ipc endpoint tmp file creation is an invalid argument to the node config. Also, I would like to see a bit more comments on the tests if possible as they are the first files I look at when trying out a new branch.

I would like to definitely get this merged asap, however.

Copy link
Contributor

@rauljordan rauljordan left a comment

Choose a reason for hiding this comment

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

Everything good for a first run. The code works and it's just a matter of refactoring vmc.go in the future to incorporate the internal ABI helpers.

@rauljordan rauljordan merged commit 6bd2d29 into prysmaticlabs:master Jan 22, 2018
prestonvanloon pushed a commit that referenced this pull request Jul 22, 2018
geth sharding entrypoint and contract deployment
prestonvanloon pushed a commit that referenced this pull request Jul 22, 2018
geth sharding entrypoint and contract deployment

Former-commit-id: b3969a9
prestonvanloon pushed a commit that referenced this pull request Jul 22, 2018
geth sharding entrypoint and contract deployment

Former-commit-id: ba96e81a08e862ab78d7aaf96eba5709875d9704 [formerly b3969a9]
Former-commit-id: 4b8e449
potuz added a commit that referenced this pull request Apr 5, 2022
prylabs-bulldozer bot pushed a commit that referenced this pull request Apr 6, 2022
* Remove synced tips

use last valid hash in removing invalid nodes.

* add test

* Remove unused code

* More unused parameters

* Fix proposer boost

* terence's review #1

* Fix conflicts

* terence's review 2

* rename argument

* terence's review #3

* rename optimistic -> status

* Minor clean up

* revert loop variable change

* do not mark lvh as valid

Co-authored-by: terence tsao <terence@prysmaticlabs.com>
potuz added a commit that referenced this pull request May 17, 2022
Run Github Actions for GoHashtree Builds
mdehoog added a commit to mdehoog/prysm that referenced this pull request Jun 13, 2022
draganm pushed a commit to manifoldfinance/prysm that referenced this pull request Mar 13, 2023
MariusVanDerWijden pushed a commit to MariusVanDerWijden/prysm that referenced this pull request Aug 15, 2023
fuzz_utils: add helper functions, cleanup on isle three
Redidacove referenced this pull request in Redidacove/prysm Aug 13, 2024
potuz added a commit that referenced this pull request Mar 7, 2025
potuz added a commit that referenced this pull request Mar 7, 2025
github-merge-queue bot pushed a commit that referenced this pull request Mar 10, 2025
* Add feature flag to start from any beacon block in db

The new feature flag called --sync-from takes a string that can take
values:

- `head` or
- a 0x-prefixed hex encoded beacon block root.

The beacon block root or the head block root has to be known in db and
has to be a descendant of the current justified checkpoint.

* Fix Bugs In Sync From Head (#15006)

* Fix Bugs

* Remove log

* missing save

* add tests

* Kasey review #1

* Kasey's review #2

* Kasey's review #3

---------

Co-authored-by: Nishant Das <nishdas93@gmail.com>
rkapka pushed a commit that referenced this pull request Mar 19, 2025
* Add feature flag to start from any beacon block in db

The new feature flag called --sync-from takes a string that can take
values:

- `head` or
- a 0x-prefixed hex encoded beacon block root.

The beacon block root or the head block root has to be known in db and
has to be a descendant of the current justified checkpoint.

* Fix Bugs In Sync From Head (#15006)

* Fix Bugs

* Remove log

* missing save

* add tests

* Kasey review #1

* Kasey's review #2

* Kasey's review #3

---------

Co-authored-by: Nishant Das <nishdas93@gmail.com>
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.

6 participants