jrhea / mothra

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

Configure ENR externally #68

Open jrhea opened 4 years ago

jrhea commented 4 years ago

currently we pass in an enr_fork_id (and simply set enr_bitfields to [0u8,8]). instead, we should allow the Enr to just be created externally with enr_fork_id, enr_bitfields, or any application specific ENR fields already configured. this logic doesn't belong in Mothra if it is supposed to be "generic" 🙄