-
Notifications
You must be signed in to change notification settings - Fork 740
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
Eth1 Integration #542
Eth1 Integration #542
Conversation
…ixes * Fix update_cache function * Move fetch_eth1_data to impl block * Fix deposit tests
* Add `run` function for running update_cache and subscribe_deposit_logs tasks * Add logging
This is finally ready for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woah that's a lotta code. I think I've reviewed the most important parts thoroughly, and I've had a skim through the other parts.
I only found a few typos and nitpicks, no major changes. Happy to merge once they're addressed
Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Issue Addressed
Proposed Changes
eth1
node to get relevant theEth1Data
using theweb3
crate.get_eth1_vote
function to determine new state for Beacon chainstate.eth1_data
using the above data.rustfmt
Fork
to be defined inChainSpec
.Fork
for verifyingDeposit
is always a constant[0, 0, 0, 0]
.SignatureSet
.beacon_node
andvalidator_client
into a singleligyhthouse
binary.Environment
and aContext
, which provide access to tokio and logging.BeaconNode
in-process0
(i.e., let the OS choose a free port) and read which port was actually used.