Fixed | Initialising the encodedPubKey with empty String in case userInfo is null (#7508)

Signed-off-by: kesrishubham2510 <shubhamkeshari90@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/7517/head
shubham kesri 3 months ago committed by GitHub
parent c3f455c691
commit 4801106674
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/dns/DNSEntry.java

@ -50,6 +50,7 @@
- Correct entrypoint in Docker evmtool [#7430](https://github.com/hyperledger/besu/pull/7430)
- Fix protocol schedule check for devnets [#7429](https://github.com/hyperledger/besu/pull/7429)
- Fix behaviour when starting in a pre-merge network [#7431](https://github.com/hyperledger/besu/pull/7431)
- Fix Null pointer from DNS daemon [#7505](https://github.com/hyperledger/besu/issues/7505)
## 24.7.1

@ -243,7 +243,7 @@ public interface DNSEntry {
public ENRTreeLink(final String enrTreeLink) {
final URI uri = URI.create(enrTreeLink);
this.domainName = uri.getHost();
this.encodedPubKey = uri.getUserInfo();
this.encodedPubKey = uri.getUserInfo() == null ? "" : uri.getUserInfo();
this.pubKey = fromBase32(encodedPubKey);
}

Loading…
Cancel
Save