package org.bitcoinj.core;

/**
 * Created by Eric 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 = 70206;
    static final int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2 = 70206;

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

    int getMinMasternodePaymentsProto() {
        return context.sporkManager.isSporkActive(SporkManager.SPORK_10_MASTERNODE_PAY_UPDATED_NODES)
                ? 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;
    }
}

@@ -43,12 +43,24 @@
  by 
-Eric
+Hash Engineering
  on 
@@ -346,17 +346,17 @@
 1 = 7020
-6
+8
 ;%0A    st
@@ -415,17 +415,97 @@
 2 = 7020
-6
+8;%0A%0A    final float nStorageCoeff = 1.25f;%0A    final int nMinBlocksToStore = 5000
 ;%0A%0A    M
@@ -1405,11 +1405,158 @@
 e;%0A    %7D
+%0A%0A    public int getStorageLimit()%0A    %7B%0A        return Math.max((int)(context.masternodeManager.size() * nStorageCoeff), nMinBlocksToStore);%0A    %7D
 %0A%7D%0A

Add storage limits