bitcoin-s/app
Chris Stewart 76a3edd0af 2020 04 02 get new address queue (#1299)
* WIP: Build queue for getnewaddress

* Implement background thread to process requests to getNewAddress so that we fix issue 1009 with it's async issues

* Run scalafmt

* Replace the mutable.ArrayBuffer in AddressHandling with ConcurrentLinkedQueue

* Put FundTransactionhandling.fundRawTransactionInternal's call to getNewChangeAddress() into the for expression so we don't generate an address when the funding of the transaction fails when selecting utxos

* Move thread initialization out of method

* Switch to using ArrayBlockingQueue, which will block thread with .take() so we don't need to loop constantly, add 'addressQueueSize' and 'addressQueueTimeout' configurations

* Update wallet-test/src/test/scala/org/bitcoins/wallet/AddressHandlingTest.scala

Co-Authored-By: rorp <rorp@users.noreply.github.com>

* Add error handling to return the failed future if the queue is full, add a unit test for when the queue is full

* Run scalafmt

* Rebase

* Add scaladoc for throwing an exception

* Run scalafmt again

Co-authored-by: rorp <rorp@users.noreply.github.com>
2020-04-10 14:19:39 -05:00
..
cli Add CLI commands for current wallet apis (#1291) 2020-04-03 17:18:34 -05:00
cli-test Somewhat dirty standalone server and CLI binary (#558) 2019-07-10 06:33:17 -05:00
gui Constructed simple Bitcoin-S wallet GUI (#1285) 2020-03-31 14:30:24 -05:00
picklers/src/main/scala/org/bitcoins/picklers Add CLI commands for current wallet apis (#1291) 2020-04-03 17:18:34 -05:00
server 2020 04 02 get new address queue (#1299) 2020-04-10 14:19:39 -05:00
server-test Add CLI commands for current wallet apis (#1291) 2020-04-03 17:18:34 -05:00