func (msg *MsgMasternodeWinner) BtcEncode(w io.Writer, pver uint32, enc MessageEncoding) error {
	err := writeTxIn(w, pver, 0, &msg.MasternodeInput)
	if err != nil {
		return err
	}

	err = writeElement(w, msg.BlockHeight)
	if err != nil {
		return err
	}

	err = WriteVarBytes(w, pver, msg.Payee)
	if err != nil {
		return err
	}

	return WriteVarBytes(w, pver, msg.Signature)
}
// BtcEncode encodes the receiver to w using the bitcoin protocol encoding.
// This is part of the Message interface implementation.
BtcEncode encodes the receiver to w using the bitcoin protocol encoding.
This is part of the Message interface implementation.
// BtcEncode encodes the receiver to w using the bitcoin protocol encoding . // This is part of the Message interface implementation .
func (msg *MsgMasternodeWinner) BtcEncode(w io.Writer, pver uint32, enc MessageEncoding) error {
	err := writeTxIn(w, pver, 0, &msg.MasternodeInput)
	if err != nil {
		return err
	}
	err = writeElement(w, msg.BlockHeight)
	if err != nil {
		return err
	}
	err = WriteVarBytes(w, pver, msg.Payee)
	if err != nil {
		return err
	}
	return WriteVarBytes(w, pver, msg.Signature)
}
func ( msg * MsgMasternodeWinner ) BtcEncode ( w io . Writer , pver uint32 , enc MessageEncoding ) error { err := writeTxIn ( w , pver , 0 , & msg . MasternodeInput ) if err != nil { return err } err = writeElement ( w , msg . BlockHeight ) if err != nil { return err } err = WriteVarBytes ( w , pver , msg . Payee ) if err != nil { return err } return WriteVarBytes ( w , pver , msg . Signature ) }
BtcEncode encodes the receiver to w using the bitcoin protocol encoding.
BtcEncode encodes the receiver to w using the bitcoin protocol encoding .