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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to