/** * Returns the confidence object for this transaction from the {@link org.bitcoinj.core.TxConfidenceTable} * referenced by the given {@link Context}. */ public TransactionConfidence getConfidence(Context context) { return getConfidence(context.getConfidenceTable()); }
/** 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(); }
/** 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(); }
/** * Returns the confidence object for this transaction from the {@link org.bitcoinj.core.TxConfidenceTable} * referenced by the given {@link Context}. */ public TransactionConfidence getConfidence(Context context) { return getConfidence(context.getConfidenceTable()); }
/** * Returns the confidence object for this transaction from the {@link org.bitcoinj.core.TxConfidenceTable} * referenced by the given {@link Context}. */ public TransactionConfidence getConfidence(Context context) { return getConfidence(context.getConfidenceTable()); }
/** * Returns the confidence object for this transaction from the {@link org.bitcoinj.core.TxConfidenceTable} * referenced by the given {@link Context}. */ public TransactionConfidence getConfidence(Context context) { return getConfidence(context.getConfidenceTable()); }
TxConfidenceTable memPool = Context.get().getConfidenceTable(); memPool.reset();
TransactionConfidence conf = context.getConfidenceTable().seen(item.hash, this.getAddress()); if (conf.numBroadcastPeers() > 1) {
log.debug("Transaction with hash {}", sendRequest.tx.getHashAsString()); log.debug("CoreServices.getContext(): {}", CoreServices.getContext()); log.debug("CoreServices.getContext().getConfidenceTable(): {}", CoreServices.getContext().getConfidenceTable()); log.debug("The CoreServices Context confidence has identity: {}", System.identityHashCode(CoreServices.getContext().getConfidenceTable().get(sendRequest.tx.getHash())));
TransactionConfidence conf = context.getConfidenceTable().seen(item.hash, this.getAddress()); if (conf.numBroadcastPeers() > 1) { TransactionConfidence conf = context.getConfidenceTable().seen(item.hash, this.getAddress()); if (conf.numBroadcastPeers() > 1) {
TransactionConfidence conf = context.getConfidenceTable().seen(item.hash, this.getAddress()); if (conf.numBroadcastPeers() > 1) {
TransactionConfidence conf = context.getConfidenceTable().seen(item.hash, this.getAddress()); if (conf.numBroadcastPeers() > 1) {
@Before public void setup() throws Exception { BriefLogFormatter.init(); Context context = new Context(PARAMS); table = context.getConfidenceTable(); Address to = new ECKey().toAddress(PARAMS); Address change = new ECKey().toAddress(PARAMS); tx1 = FakeTxBuilder.createFakeTxWithChangeAddress(PARAMS, COIN, to, change); tx2 = FakeTxBuilder.createFakeTxWithChangeAddress(PARAMS, COIN, to, change); assertEquals(tx1.getHash(), tx2.getHash()); address1 = new PeerAddress(PARAMS, InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 })); address2 = new PeerAddress(PARAMS, InetAddress.getByAddress(new byte[] { 127, 0, 0, 2 })); address3 = new PeerAddress(PARAMS, InetAddress.getByAddress(new byte[] { 127, 0, 0, 3 })); }