feat: register hash query in protocol
This commit is contained in:
parent
d51f5e4590
commit
83be618dc0
|
@ -22,9 +22,13 @@ func init() {
|
||||||
RegisterMessageType(types.ProtocolMethodHandshakeOpen, func() base.IncomingMessage {
|
RegisterMessageType(types.ProtocolMethodHandshakeOpen, func() base.IncomingMessage {
|
||||||
return NewHandshakeOpen([]byte{}, "")
|
return NewHandshakeOpen([]byte{}, "")
|
||||||
})
|
})
|
||||||
|
RegisterMessageType(types.ProtocolMethodHashQuery, func() base.IncomingMessage {
|
||||||
|
return NewHashQuery()
|
||||||
|
})
|
||||||
RegisterMessageType(types.ProtocolMethodSignedMessage, func() base.IncomingMessage {
|
RegisterMessageType(types.ProtocolMethodSignedMessage, func() base.IncomingMessage {
|
||||||
return signed.NewSignedMessage()
|
return signed.NewSignedMessage()
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterMessageType(messageType types.ProtocolMethod, factoryFunc func() base.IncomingMessage) {
|
func RegisterMessageType(messageType types.ProtocolMethod, factoryFunc func() base.IncomingMessage) {
|
||||||
|
|
Loading…
Reference in New Issue