jrhea / mothra

Libp2p for dummies
Apache License 2.0
11 stars 2 forks source link

externalize enr_fork_id logic #46

Closed jrhea closed 4 years ago

jrhea commented 4 years ago

mothra should not maintain the logic for this. Initially, something like this should work:

        EnrForkId {
            fork_digest: compute_fork_digest([0; 4],[0;32]).to_le_bytes(),
            next_fork_version: [0;4], //genesis_fork_version,
            next_fork_epoch: u64::max_value(), //far_future_epoch,
        }

where compute_fork_digest is define in spec