-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9208c16
commit fa06b2b
Showing
8 changed files
with
139 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package units.network | ||
|
||
import io.netty.channel.Channel | ||
|
||
case class PayloadMessageWithChannel(pm: PayloadMessage, ch: Channel) |
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,12 +1,17 @@ | ||
package units.network | ||
|
||
import units.network.PayloadObserverImpl.PayloadInfoWithChannel | ||
import com.wavesplatform.network.ChannelObservable | ||
import com.wavesplatform.account.PrivateKey | ||
import monix.execution.CancelableFuture | ||
import monix.reactive.Observable | ||
import play.api.libs.json.JsObject | ||
import units.{BlockHash, ExecutionPayloadInfo} | ||
|
||
trait PayloadObserver { | ||
def getPayloadStream: ChannelObservable[ExecutionPayloadInfo] | ||
def getPayloadStream: Observable[ExecutionPayloadInfo] | ||
|
||
def loadPayload(req: BlockHash): CancelableFuture[PayloadInfoWithChannel] | ||
def loadPayload(req: BlockHash): CancelableFuture[ExecutionPayloadInfo] | ||
|
||
def broadcastSigned(payloadJson: JsObject, signer: PrivateKey): Either[String, PayloadMessage] | ||
|
||
def broadcast(hash: BlockHash): Unit | ||
} |
Oops, something went wrong.