ArrayList<Transaction> pendingList = new ArrayList<>(wallet.getPendingTransactions());
pendingList.get(0).verify(); // Read console to see transaction info After that you need to use the code below to realize the replace-by-fee algorithm: Transaction transaction = pendingList.get(0);SendRequest request = SendRequest.forTx(transaction); request.feePerKb = Transaction.REFERENCE_DEFAULT_MIN_TX_FEE; // Or you can make other highter fee to spped it up wallet.completeTx(request); wallet.commitTx(request); In the output, you will see more TransactionOutputs in this Transaction details. Thats it понедельник, 30 июля 2018 г., 12:37:09 UTC+3 пользователь Vladimir Muraviov написал: > > Was faced with endless pending Transaction in BitcoinJ FrameWork > > > The main documentation says that it can be made by Replace-By-Fee. So you > need to take the old transaction and create a new one but based on previous. > > > Sounds good, but how correctly, using Bitcoinj framework create another > one? > > > bitcoinService = new BitCoinService(); > bitcoinService.startService(); > > ArrayList pendingList = new > ArrayList<>(bitCoinService.wallet.getPendingTransactions()); > > > What is next? > Transaction nextTx = new Transaction(pendingList.get(0)); // is not > possible > -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
