package org.bitcoinj.core;

/**
 * Created by Hash Engineering on 2/21/2016.
 */
public class MasternodePayments {
    Context context;

    //! minimum peer version that can receive masternode payments
    // V1 - Last protocol version before update
    // V2 - Newest protocol version
    static final int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1 = 70208;
    static final int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2 = 70208;

    final float nStorageCoeff = 1.25f;
    final int nMinBlocksToStore = 5000;

    MasternodePayments(Context context)
    {
        this.context = context;
    }

    int getMinMasternodePaymentsProto() {
        //return context.sporkManager.isSporkActive(SporkId.SPORK_10_MASTERNODE_PAY_UPDATED_NODES)
        //        ?
        return MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2;
            //    : MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1;
    }

    public void cleanPaymentList()
    {

    }
    public void checkAndRemove()
    {

    }
    boolean isEnoughData() {
        /*if(GetBlockCount() > nMnCount * nStorageCoeff && GetBlockCount() > nMinBlocksToStore)
        {
            float nAverageVotes = (MNPAYMENTS_SIGNATURES_TOTAL + MNPAYMENTS_SIGNATURES_REQUIRED) / 2;
            if(GetVoteCount() > nMnCount * nStorageCoeff * nAverageVotes && GetVoteCount() > nMinBlocksToStore * nAverageVotes)
            {
                return true;
            }
        }*/
        return false;
    }
}

@@ -638,768 +638,184 @@
     
-//return context.sporkManager.isSporkActive(SporkId.SPORK_10_MASTERNODE_PAY_UPDATED_NODES)%0A        //        ?%0A        return MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2;%0A            //    : MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1;%0A    %7D%0A%0A    public void cleanPaymentList()%0A    %7B%0A%0A    %7D%0A    public void checkAndRemove()%0A    %7B%0A%0A    %7D%0A    boolean isEnoughData() %7B%0A        /*if(GetBlockCount() %3E nMnCount * nStorageCoeff && GetBlockCount() %3E nMinBlocksToStore)%0A        %7B%0A            float nAverageVotes = (MNPAYMENTS_SIGNATURES_TOTAL + MNPAYMENTS_SIGNATURES_REQUIRED) / 2;%0A            if(GetVoteCount() %3E nMnCount * nStorageCoeff * nAverageVotes && GetVoteCount() %3E nMinBlocksToStore * nAverageVotes)%0A            %7B%0A                return true;%0A            %7D%0A        %7D*/
+return MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2;%0A    %7D%0A%0A    public void cleanPaymentList()%0A    %7B%0A%0A    %7D%0A    public void checkAndRemove()%0A    %7B%0A%0A    %7D%0A    boolean isEnoughData() %7B
 %0A   

remove commented code regarding in MasternodePayments