-
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
216e1da
commit 5722acb
Showing
7 changed files
with
65 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package units.network | ||
|
||
import units.network.PayloadObserverImpl.PayloadWithChannel | ||
import units.network.PayloadObserverImpl.PayloadInfoWithChannel | ||
import com.wavesplatform.network.ChannelObservable | ||
import monix.eval.Task | ||
import monix.execution.CancelableFuture | ||
import units.BlockHash | ||
import units.{BlockHash, ExecutionPayloadInfo} | ||
|
||
trait PayloadObserver { | ||
def getPayloadStream: ChannelObservable[PayloadMessage] | ||
def getPayloadStream: ChannelObservable[ExecutionPayloadInfo] | ||
|
||
def requestPayload(req: BlockHash): Task[PayloadWithChannel] | ||
|
||
def loadPayload(req: BlockHash): CancelableFuture[PayloadWithChannel] | ||
def loadPayload(req: BlockHash): CancelableFuture[PayloadInfoWithChannel] | ||
} |
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