func (msg *MsgMasternodeWinner) BtcDecode(r io.Reader, pver uint32, enc MessageEncoding) error {
	err := readTxIn(r, pver, 0, &msg.MasternodeInput)
	if err != nil {
		return err
	}

	err = readElement(r, &msg.BlockHeight)
	if err != nil {
		return err
	}

	p, err := ReadVarBytes(r, pver, 100000, "payee")
	if err != nil {
		return err
	}
	msg.Payee = p

	s, err := ReadVarBytes(r, pver, 100000, "signature")
	if err != nil {
		return err
	}
	msg.Signature = s
	return nil
}
// BtcDecode decodes r using the bitcoin protocol encoding into the receiver.
// This is part of the Message interface implementation.
BtcDecode decodes r using the bitcoin protocol encoding into the receiver.
This is part of the Message interface implementation.
// BtcDecode decodes r using the bitcoin protocol encoding into the receiver . // This is part of the Message interface implementation .
func (msg *MsgMasternodeWinner) BtcDecode(r io.Reader, pver uint32, enc MessageEncoding) error {
	err := readTxIn(r, pver, 0, &msg.MasternodeInput)
	if err != nil {
		return err
	}
	err = readElement(r, &msg.BlockHeight)
	if err != nil {
		return err
	}
	p, err := ReadVarBytes(r, pver, 100000, "payee")
	if err != nil {
		return err
	}
	msg.Payee = p
	s, err := ReadVarBytes(r, pver, 100000, "signature")
	if err != nil {
		return err
	}
	msg.Signature = s
	return nil
}
func ( msg * MsgMasternodeWinner ) BtcDecode ( r io . Reader , pver uint32 , enc MessageEncoding ) error { err := readTxIn ( r , pver , 0 , & msg . MasternodeInput ) if err != nil { return err } err = readElement ( r , & msg . BlockHeight ) if err != nil { return err } p , err := ReadVarBytes ( r , pver , 100000 , " " ) if err != nil { return err } msg . Payee = p s , err := ReadVarBytes ( r , pver , 100000 , " " ) if err != nil { return err } msg . Signature = s return nil }
BtcDecode decodes r using the bitcoin protocol encoding into the receiver.
BtcDecode decodes r using the bitcoin protocol encoding into the receiver .