You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2020/06/02 07:05:43 UTC
[incubator-tuweni] branch master updated: remove non-null assertion
This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/master by this push:
new 5cddd34 remove non-null assertion
5cddd34 is described below
commit 5cddd34ad125570e975dfea295b2b9e4a203ed5c
Author: Antoine Toulme <an...@lunar-ocean.com>
AuthorDate: Tue Jun 2 00:05:33 2020 -0700
remove non-null assertion
---
les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt b/les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt
index 7734bd2..3a7c0c9 100644
--- a/les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt
+++ b/les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt
@@ -166,7 +166,7 @@ internal class LESSubProtocolHandler(
override fun handleNewPeerConnection(connectionId: String): AsyncCompletion {
return asyncCompletion {
val head = repo.retrieveChainHead()!!
- val genesis = repo.retrieveGenesisBlock()!!
+ val genesis = repo.retrieveGenesisBlock()
val headTd = head.getHeader().getDifficulty()
val headHash = head.getHeader().getHash()
val state = peerStateMap.computeIfAbsent(connectionId) { LESPeerState() }
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org