-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1839 from ergoplatform/v4.0.46
Candidate for 4.0.46
- Loading branch information
Showing
26 changed files
with
195 additions
and
199 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
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
41 changes: 41 additions & 0 deletions
41
src/main/scala/org/ergoplatform/settings/PeerFeatureDescriptors.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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.ergoplatform.settings | ||
|
||
import org.ergoplatform.network.ModeFeatureSerializer | ||
import scorex.core.network.PeerFeature | ||
import scorex.core.network.peer.{LocalAddressPeerFeatureSerializer, RestApiUrlPeerFeatureSerializer, SessionIdPeerFeatureSerializer} | ||
|
||
/** | ||
* Repository of existing peer feature identifiers, stores their ids along with serializers | ||
*/ | ||
object PeerFeatureDescriptors { | ||
/** | ||
* See `LocalAddressPeerFeature` | ||
*/ | ||
val LocalAddressPeerFeatureId: Byte = 2: Byte | ||
|
||
/** | ||
* See `SessionIdPeerFeature` | ||
*/ | ||
val SessionIdPeerFeatureId: Byte = 3: Byte | ||
|
||
/** | ||
* See `RestApiUrlPeerFeature` | ||
*/ | ||
val RestApiUrlFeatureId: Byte = 4: Byte | ||
|
||
/** | ||
* See `ModePeerFeature` | ||
*/ | ||
val ModeFeatureId: Byte = 16: Byte | ||
|
||
/** | ||
* All the peer feature serializers should be here | ||
*/ | ||
val FeatureSerializers: PeerFeature.Serializers = Map( | ||
LocalAddressPeerFeatureId -> LocalAddressPeerFeatureSerializer, | ||
SessionIdPeerFeatureId -> SessionIdPeerFeatureSerializer, | ||
RestApiUrlFeatureId -> RestApiUrlPeerFeatureSerializer, | ||
ModeFeatureId -> ModeFeatureSerializer | ||
) | ||
|
||
} |
26 changes: 0 additions & 26 deletions
26
src/main/scala/org/ergoplatform/settings/PeerFeatureIds.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.