mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
76a3edd0af
* 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> |
||
---|---|---|
.. | ||
configuration.md |