Ori Newman 8e170cf327
[NOD-1225] Rename wire to domainmessage and get rid of InvType (#853)
* [NOD-1225] Rename wire to domainmessage

* [NOD-1225] Get rid of references to package wire in the code, and get rid of InvType
2020-08-09 12:39:15 +03:00

19 lines
373 B
Go

package protowire
import (
"github.com/kaspanet/kaspad/domainmessage"
)
func (x *KaspadMessage_Pong) toDomainMessage() (domainmessage.Message, error) {
return &domainmessage.MsgPong{
Nonce: x.Pong.Nonce,
}, nil
}
func (x *KaspadMessage_Pong) fromDomainMessage(msgPong *domainmessage.MsgPong) error {
x.Pong = &PongMessage{
Nonce: msgPong.Nonce,
}
return nil
}