feat: register hash query in protocol

This commit is contained in:
Derrick Hammer 2024-01-08 12:42:02 -05:00
parent d51f5e4590
commit 83be618dc0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -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) {