private static void addWalletTransactionsToSet(Set<BitWalletTransaction> txs, WalletTransaction.Pool poolType, Collection<BitTransaction> pool) { for (BitTransaction tx : pool) { txs.add(new BitWalletTransaction(poolType, tx)); } }
/** * Adds a transaction that has been associated with a particular wallet pool. This is intended for usage by * deserialization code, such as the {@link WalletPocketProtobufSerializer} class. It isn't normally useful for * applications. It does not trigger auto saving. */ public void addWalletTransaction(BitWalletTransaction wtx) { lock.lock(); try { addWalletTransaction(wtx.getPool(), wtx.getTransaction(), true); } finally { lock.unlock(); } }
private static Protos.Transaction makeBitTxProto(BitWalletTransaction wtx) { BitTransaction bitTx = wtx.getTransaction(); boolean isTrimmed = bitTx.isTrimmed(); Transaction tx = bitTx.getRawTransaction();
return new BitWalletTransaction(pool, tx);