Created
February 25, 2020 06:06
-
-
Save 0xbunyip/b55a1d5ccefdebe00d3131392301da9d to your computer and use it in GitHub Desktop.
highway interface
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
type Highway interface { | |
BroadcastBlock(blockHeight int, blockData []byte, shardID int) error | |
ListenToBlock(shardID int) (channel []byte, error) | |
RequestBlock(blockHeight int, shardID int) ([]byte, error) | |
PublishState(pubkey []byte, state []byte, shardID int) error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment