mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-24 15:02:32 +00:00

* [NOD-1225] Rename wire to domainmessage * [NOD-1225] Get rid of references to package wire in the code, and get rid of InvType
21 lines
578 B
Go
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
|
|
}
|