-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved Peer related classes from network.rlpx package to network package
- Loading branch information
Showing
20 changed files
with
71 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hipu/network/rlpx/KnownNodesService.scala → ...ala/khipu/network/KnownNodesService.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../main/scala/khipu/network/rlpx/Peer.scala → ...h/src/main/scala/khipu/network/Peer.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package khipu.network.rlpx | ||
package khipu.network | ||
|
||
import akka.actor.ActorRef | ||
import java.net.InetSocketAddress | ||
|
2 changes: 1 addition & 1 deletion
2
...scala/khipu/network/rlpx/PeerEntity.scala → ...main/scala/khipu/network/PeerEntity.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package khipu.network.rlpx | ||
package khipu.network | ||
|
||
import akka.actor.Actor | ||
import akka.actor.ActorLogging | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,38 @@ | ||
package khipu | ||
|
||
import scala.concurrent.duration.FiniteDuration | ||
|
||
package object network { | ||
sealed trait Control | ||
case object Tick extends Control | ||
case object WireDisconnected extends Control | ||
|
||
trait RLPxConfiguration { | ||
val waitForHandshakeTimeout: FiniteDuration | ||
val waitForTcpAckTimeout: FiniteDuration | ||
} | ||
|
||
trait PeerConfiguration { | ||
val connectRetryDelay: FiniteDuration | ||
val connectMaxRetries: Int | ||
val disconnectPoisonPillTimeout: FiniteDuration | ||
val waitForHelloTimeout: FiniteDuration | ||
val waitForStatusTimeout: FiniteDuration | ||
val waitForChainCheckTimeout: FiniteDuration | ||
val fastSyncHostConfiguration: FastSyncHostConfiguration | ||
val rlpxConfiguration: RLPxConfiguration | ||
val maxPeers: Int | ||
val maxIncomingPeers: Int | ||
val networkId: Int | ||
val updateNodesInitialDelay: FiniteDuration | ||
val updateNodesInterval: FiniteDuration | ||
} | ||
|
||
trait FastSyncHostConfiguration { | ||
val maxBlocksHeadersPerMessage: Int | ||
val maxBlocksBodiesPerMessage: Int | ||
val maxReceiptsPerMessage: Int | ||
val maxMptComponentsPerMessage: Int | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters