diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2018-05-17 21:11:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 21:11:27 +0800 |
commit | 6286c255f16a914b39ffd3389cba154a53e66a13 (patch) | |
tree | fabba7bb458dfb495df7efcd3c4f7022aa65bd96 /core/tx_journal.go | |
parent | f6bc65fc681177b190522c92887979690f9ceefa (diff) | |
download | dexon-6286c255f16a914b39ffd3389cba154a53e66a13.tar.gz dexon-6286c255f16a914b39ffd3389cba154a53e66a13.tar.zst dexon-6286c255f16a914b39ffd3389cba154a53e66a13.zip |
p2p/enr: updates for discovery v4 compatibility (#16679)
This applies spec changes from ethereum/EIPs#1049 and adds support for
pluggable identity schemes.
Some care has been taken to make the "v4" scheme standalone. It uses
public APIs only and could be moved out of package enr at any time.
A couple of minor changes were needed to make identity schemes work:
- The sequence number is now updated in Set instead of when signing.
- Record is now copy-safe, i.e. calling Set on a shallow copy doesn't
modify the record it was copied from.
Diffstat (limited to 'core/tx_journal.go')
0 files changed, 0 insertions, 0 deletions