public Masternode(NetworkParameters params, byte [] payload, int cursor) { super(params, payload, cursor); context = Context.get(); //calculateScoreTest(); }
public MasternodeSignature(byte [] signature) { super(Context.get().getParams()); bytes = new byte[signature.length]; System.arraycopy(signature, 0, bytes, 0, signature.length); }
/** Use "Context.get().getConfidenceTable()" instead */ @Deprecated @Nullable public TxConfidenceTable getMemoryPool() { return Context.get().getConfidenceTable(); }
/** Use "Context.get().getConfidenceTable()" instead */ @Deprecated @Nullable public TxConfidenceTable getMemoryPool() { return Context.get().getConfidenceTable(); }
public FlatDB() { context = Context.get(); } public FlatDB(String directory, String fileName, String magicMessage) {
public static Context getOrCreate(NetworkParameters params) { Context context; try { context = get(); } catch (IllegalStateException e) { log.warn("Implicitly creating context. This is a migration step and this message will eventually go away."); context = new Context(params); return context; } if (context.getParams() != params) throw new IllegalStateException("Context does not match implicit network params: " + context.getParams() + " vs " + params); return context; }
/** Use "Context.get().getConfidenceTable()" instead */ @Deprecated @Nullable public TxConfidenceTable getMemoryPool() { return Context.get().getConfidenceTable(); }
TransactionLockVote(NetworkParameters params, byte[] payload) { super(params, payload, 0); // this.system = MasterNodeSystem.get(); masternodeManager = Context.get().masternodeManager; }
public static Context getOrCreate(NetworkParameters params) { Context context; try { context = get(); } catch (IllegalStateException e) { log.warn("Implicitly creating context. This is a migration step and this message will eventually go away."); context = new Context(params); return context; } if (context.getParams() != params) throw new IllegalStateException("Context does not match implicit network context: " + context.getParams() + " vs " + params); return context; }
/** Use "Context.get().getConfidenceTable()" instead */ @Deprecated @Nullable public TxConfidenceTable getMemoryPool() { return Context.get().getConfidenceTable(); }
MasternodePing(NetworkParameters params, byte[] bytes) { super(params, bytes, 0); this.context = Context.get(); }
public MasternodeDB() { context = Context.get(); } public MasternodeDB(String directory) {
public MasternodeManager(NetworkParameters params, byte [] payload, int cursor) { super(params, payload, cursor); context = Context.get(); eventListeners = new CopyOnWriteArrayList<ListenerRegistration<MasternodeManagerListener>>(); }
/** * Returns the confidence object for this transaction from the {@link org.bitcoinj.core.TxConfidenceTable} * referenced by the implicit {@link Context}. */ public TransactionConfidence getConfidence() { return getConfidence(Context.get()); }
public FlatDB(String directory, String fileName, String magicMessage) { context = Context.get(); this.magicMessage = magicMessage; this.fileName = fileName; setPath(directory, fileName); }
/** * Returns the confidence object for this transaction from the {@link org.bitcoinj.core.TxConfidenceTable} * referenced by the implicit {@link Context}. */ public TransactionConfidence getConfidence() { return getConfidence(Context.get()); }
/** * Returns the confidence object for this transaction from the {@link org.bitcoinj.core.TxConfidenceTable} * referenced by the implicit {@link Context}. */ public TransactionConfidence getConfidence() { return getConfidence(Context.get()); }
/** * Returns the confidence object for this transaction from the {@link org.bitcoinj.core.TxConfidenceTable} * referenced by the implicit {@link Context}. */ public TransactionConfidence getConfidence() { return getConfidence(Context.get()); }
protected void setChainHead(StoredBlock chainHead) throws BlockStoreException { doSetChainHead(chainHead); synchronized (chainHeadLock) { this.chainHead = chainHead; } Context.get().updatedChainHead(chainHead); }
@Override public void onSyncStatusChanged(int newStatus, double syncStatus) { if(newStatus == MasternodeSync.MASTERNODE_SYNC_FINISHED) { FlatDB<MasternodeManager> mndb = new FlatDB<MasternodeManager>(kit.directory().getAbsolutePath(), "mncache.dat", "magicMasternodeCache"); mndb.dump(Context.get().masternodeManager); //ArrayList<Pair<Integer, Masternode>> results = Context.get().masternodeManager.getMasternodeRanks(27143, 0); //System.out.println(results.toString()); } } });