Conversation
5455e2f to
463df04
Compare
|
@kdeme Did you think we should ban nodes that have no compatible portal version? |
Yes, good point. I hadn't considered this but that would be a better way than just blocking in the I think following steps would be then to test & enable banning. Then we alter the code to ban on incompatible version (with a small banned time period). |
- Added portal versioning system based on field in ENR as per Portal specifications - Implemented Portal wire v1 functionality: - Accept codes - varint size prefix on FindContent uTP transfer - Enabled Portal wire v0 + v1 versions
463df04 to
2d66b29
Compare
Sure, makes sense. Can be done in a separate PR. |
Incomplete as it is currently not possible to always retrieve the ENR from a peer from which the node gets an incoming request.
The best solution that I see for this right now is to add ENRs to the discv5 SessionCache and thus make this retrievable for each node that has an ongoing session.
edit: currently fully implemented with v1 functionality enabled also, relies on status-im/nim-eth#790