Commit graph

2039 commits

Author SHA1 Message Date
Chris Stewart
5dddd82af8
Add JsonParseException catch clause in the isStartedF method (#1334) 2020-04-13 09:43:30 -05:00
Chris Stewart
0a4ca6de98
Bump number of addresses generated in negative test case for AddressHandling where we expect a illegal state exception to be thrown (#1333) 2020-04-11 19:10:35 -05:00
Ben Carman
e5ef17f020
Move Json Reader, Writers, and Serializers to App Commons (#1328)
* Move Json Reader, Writers, and Serializers to App Commons

* Move app-commons outside of app/
2020-04-10 14:33:37 -05:00
Chris Stewart
934b7319a8
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
Ben Carman
c347fb5beb
Fix Block Header Callback (#1331) 2020-04-10 13:47:23 -05:00
Ben Carman
064d8bd05e
Fix MerkleBuffers test to be async (#1329) 2020-04-09 18:16:36 -05:00
Ben Carman
abd28f9962
GetAddress Wallet API call (#1287)
* GetAddress Wallet API call

* Add ability to get unfunded address

* Generate new address if no unfunded addresses

* Add test

* Add wallet get address documentation
2020-04-09 15:33:11 -05:00
Ben Carman
73b41460da
Add wallet pay to many (#1317)
* Add wallet pay to many

* Create sendToOutputs

* Add sendToAddresses Unit Test

* Send to addresses can reserve utxos
2020-04-09 15:00:26 -05:00
Chris Stewart
efaf457d6a
Make 'maxHeightQuery' vals inside of BlockHeaderDAO, CompactFilterHeaderDAO, CompactFilterDAO (#1325) 2020-04-09 14:56:45 -05:00
Chris Stewart
27dbefd2af
Call getFilterHeaderCount async inside of nextFilterHeaderBatchRange while we are fetching our start height for fetching filters (#1327) 2020-04-09 14:56:03 -05:00
Ben Carman
f620fb2319
getNewAddressHelper Refactor (#1322) 2020-04-09 12:54:28 -05:00
Nadav Kohen
81b8ac7027
Added Tables of Content to the bigger docs using doctoc, updated signing-transactions.md (#1319) 2020-04-08 16:51:37 -05:00
Ben Carman
d6b4ac07a3
Update TxoState for transactions after they've been confirmed (#1178)
* Add onBlockHeadersReceived NodeCallback

* Add requiredConfirmations config option

* Update TxoState for transactions after they've been confirmed

* Response to review

* Fix compile issue
2020-04-08 16:51:17 -05:00
Nadav Kohen
19afc6be2c
Removed SingleSigner abstraction and replaced with a simple signSingle method in SignerUtils (#1308) 2020-04-07 14:26:07 -05:00
Scala Steward
ed985c5350
Update flyway-core to 6.3.3 (#1309) 2020-04-06 19:06:48 -05:00
Chris Stewart
4827d2dbe4
Remove flaky gcs test that times out (#1301) 2020-04-06 10:54:32 -05:00
Ben Carman
14535fcd77
P2WSH Signer fix + tests (#1300)
* P2WSH Signer fix + tests

* Respond to review
2020-04-05 07:42:57 -05:00
Ben Carman
aa2d88f396
Network specific filterHeaderBatchSize (#1286)
* Network specific filterHeaderBatchSize

* Catch correct exceptions

* Add filter-header-batch-size-regtest to example configs
2020-04-03 17:36:29 -05:00
Ben Carman
c7a350d8f3
Add CLI commands for current wallet apis (#1291) 2020-04-03 17:18:34 -05:00
Ben Carman
717434dcaa
Change NodeCallbacks to Future[Unit] s (#1206)
* Change NodeCallbacks to Future[Unit] s

* Fix compile issue

* Change try to future

* Change Future.sucessful(()) to FutureUtil.unit

* Callback failure handling, callback docs

* Create functions for executing callbacks, make merkleblock a future

* Convert MerkleBuffersTest to BitcoinSAsyncTest

* Fix compiler errors

* Reorder UpdateBloomFilter tests so that txFromWalletP is a success for both calls and the other test does not wait on the promise to complete
2020-04-03 08:57:41 -05:00
rorp
134075380b
Fix Travis caching (#1295) 2020-04-02 14:08:36 -07:00
Ben Carman
445077338f
Add google analytics key for bitcoin-s site (#1292) 2020-04-02 07:26:45 -05:00
Ben Carman
80882bf649
Wallet Transaction Tracking (#1197)
* Incoming and Outgoing Transaction Tables

* Remove script sigs for witness txs

* Create parent tx_table for incoming and outgoing txs

* Response to review

* Use isCloseEnough

* Fix test

* Fix rebase error

* Test that tx is tracking all sats correctly
2020-04-02 06:55:09 -05:00
Scala Steward
da9d0957f4
Update akka-actor, akka-stream, ... to 2.5.31 (#1290) 2020-04-01 10:59:51 -05:00
Scala Steward
35b54c8b38
Update javafx-base, javafx-controls, ... to 14 (#1288) 2020-04-01 08:46:34 -05:00
Scala Steward
46a1683bd7
Update sbt to 1.3.9 (#1289) 2020-04-01 08:46:12 -05:00
Nadav Kohen
920199cf9e
Constructed simple Bitcoin-S wallet GUI (#1285)
* Constructed simple Bitcoin-S wallet GUI

* Added note about bitcoin-s server in doc

* Removed wallet dep from gui

* Replaced lambdas with constructors for compatibility with scala 2.11

* Fixed after rebase
2020-03-31 14:30:24 -05:00
Ben Carman
70fef65c86
Merge pull request #1268 from benthecarman/cli-stop
CLI command to stop node
2020-03-30 12:43:00 -05:00
Ben Carman
5d85907870
Merge pull request #1273 from benthecarman/custom-fee-rate-sendtoaddr
Custom fee rate for wallet sends
2020-03-30 12:31:52 -05:00
Chris Stewart
3ba5cae49b
Fix hardcoded network for the default wallet account (#1277)
* Fix hardcoded network for the default wallet account

* Refactor call to HDUtil.getCoinType()
2020-03-30 12:30:48 -05:00
Chris Stewart
8c953c3ad7
2020 03 28 uint32 cache (#1279)
* Make it so we re-use cached values for UInt32, Int32 to try and reduce object allocations

* Run scalafmt

* Add named args

* Remove import
2020-03-30 12:29:34 -05:00
Chris Stewart
d8586ef85e
Fetch addresses and utxos async in LockedWalletApi.processCompactFilter() (#1283) 2020-03-30 12:29:07 -05:00
Chris Stewart
752685fa4b
Replace all usages of List inside of ScriptParser with Vector (#1280) 2020-03-30 12:28:31 -05:00
Chris Stewart
02d926bb25
Reduce default num threads used for slick being a thread pool of 20 to 5 (#1281) 2020-03-30 12:27:57 -05:00
Ben Carman
0f899920f1
Wallet integration for nested segwit v0 spending (#1272)
* Wallet integration for nested-segwit spending

* Move parameter
2020-03-28 09:40:05 -05:00
Ben Carman
380ef24d9e
Fix CLI commands (#1271) 2020-03-28 08:53:31 -05:00
Ben Carman
afd8d93721
Terminate not reliant on node.stop 2020-03-25 13:48:13 -05:00
Ben Carman
90e4ca1cf3
Custom fee rate for wallet sends 2020-03-25 11:23:12 -05:00
Scala Steward
072fdd7fc4
Update flyway-core to 6.3.2 (#1269) 2020-03-24 08:52:58 -05:00
Ben Carman
a7af3cd81d
CLI command to stop node 2020-03-23 16:57:47 -05:00
Chris Stewart
7c30ecc391
Add new GPG key (#1263) 2020-03-23 09:46:56 -05:00
Scala Steward
fea08c6d4a
Update janino to 3.1.2 (#1252) 2020-03-23 06:30:18 -05:00
Chris Stewart
9995e220eb
Bump sbt-native-packager to 1.7.0 (#1265) 2020-03-23 06:10:26 -05:00
Scala Steward
fa6009355f
Update sbt-mdoc to 2.1.5 (#1260) 2020-03-21 08:08:18 -05:00
Chris Stewart
b913a42355
Bump scalac 2.12.x series to 2.12.11 (#1257) 2020-03-19 08:51:21 -05:00
Ben Carman
bbe7b78c4c
CLI help message include commands and their arguments (#1254) 2020-03-19 08:04:56 -05:00
Scala Steward
0c67805cee
Update sbt-mdoc to 2.1.4 (#1244) 2020-03-19 07:59:24 -05:00
Ben Carman
8ec143d0d4
Give ScriptInterpreter functions to verify a transaction or single input (#1223)
* Add TxSigCompenent constuctor

* Add verifyInputScript to ScriptInterpreter

* Add tests
2020-03-19 07:58:56 -05:00
Scala Steward
832282b378
Update flyway-core to 6.3.1 (#1228) 2020-03-19 07:58:35 -05:00
Chris Stewart
4559edde07
Actually add all files for 0.3.0 on the website so they show up (#1256) 2020-03-19 07:32:02 -05:00