kaspad/netadapter/server/grpcserver/protowire/message_transaction_not_found.go
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

21 lines
578 B
Go

package protowire
import (
"github.com/kaspanet/kaspad/domainmessage"
)
func (x *KaspadMessage_TransactionNotFound) toDomainMessage() (domainmessage.Message, error) {
id, err := x.TransactionNotFound.Id.toWire()
if err != nil {
return nil, err
}
return domainmessage.NewMsgTransactionNotFound(id), nil
}
func (x *KaspadMessage_TransactionNotFound) fromDomainMessage(msgTransactionsNotFound *domainmessage.MsgTransactionNotFound) error {
x.TransactionNotFound = &TransactionNotFoundMessage{
Id: wireTransactionIDToProto(msgTransactionsNotFound.ID),
}
return nil
}