Skip to content

Instantly share code, notes, and snippets.

@kgreenek
Created November 10, 2014 06:18
Show Gist options
  • Save kgreenek/66e5d7e94922c05e49b7 to your computer and use it in GitHub Desktop.
Save kgreenek/66e5d7e94922c05e49b7 to your computer and use it in GitHub Desktop.
extension PeerConnection {
public enum Message {
case AddressMessage(AddressMessage)
case InventoryMessage(InventoryMessage)
case GetDataMessage(GetDataMessage)
case NotFoundMessage(NotFoundMessage)
case GetBlocksMessage(GetBlocksMessage)
case GetHeadersMessage(GetHeadersMessage)
case Transaction(Transaction)
case Block(Block)
case HeadersMessage(HeadersMessage)
case GetAddressMessage(GetAddressMessage)
case MemPoolMessage(MemPoolMessage)
case PingMessage(PingMessage)
case PongMessage(PongMessage)
case RejectMessage(RejectMessage)
case FilterLoadMessage(FilterLoadMessage)
case FilterAddMessage(FilterAddMessage)
case FilterClearMessage(FilterClearMessage)
case FilteredBlock(FilteredBlock)
case AlertMessage(AlertMessage)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment