Hi, I am fairly new to android bitcoin development. I have been given a task by my client to increase the bitcoin transaction fees in his wallet program so that transactions are approved quicker. he is using bitcoinj api.
here is the code for send request:- public Map sendCoin(String fid,String address,String coin1,String coin2){ Map rm=new HashMap(); WalletAppKit appKit=wallets.get(fid); if(appKit!=null){ Coin c1=Coin.parseCoin(coin1); Coin c2=Coin.parseCoin(coin2); SendRequest req,req1; try { Transaction tx = new Transaction(createBitcoinNetwork()); tx.addOutput(c1,Address.fromBase58(createBitcoinNetwork(), address)); if(!c2.isZero())tx.addOutput(c2,Address.fromBase58(createBitcoinNetwork(), jHipsterProperties.getBitcoin().getWallet().getMaster())); SendRequest request=SendRequest.forTx(tx); request.feePerKb=Coin.valueOf(100000); appKit.wallet().completeTx(request); appKit.peerGroup().broadcastTransaction(request.tx); rm.put("code",200); rm.put("msg","OK"); } catch (InsufficientMoneyException e) { rm.put("code",400); rm.put("msg",e.getMessage()); } }else{ rm.put("code",500); rm.put("msg","Can't send coin"); } return rm; } I am trying to change fees by adding code highlighted in gree, but its not working...I also tried to increase the DEFAULT_TX_FEE in the Transaction class, but that didn't worked either.. please help -- 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 bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.