Commit Graph

3805 Commits

Author SHA1 Message Date
benthecarman
02f525fd39
Make CRUDAction types more strict (#4657) 2022-08-24 06:15:24 -05:00
rorp
7c112b8a90
Fix rescan for existing wallets (#4656) 2022-08-24 05:42:53 -05:00
Shreyansh
4e4e4aa9ed
change stream to use backpressure (#4654) 2022-08-23 15:54:15 -05:00
Chris Stewart
288918d705
Partially revert #4601 and re-add daemonUser := bitcoin-s (#4655)
* Partially revert #4601 and re-add daemonUser := bitcoin-s

* scalafmt

* scalafmt again?
2022-08-23 14:36:08 -05:00
Chris Stewart
2001e86ab9
If DISABLE_JLINK set, don't try to chmod jre/bin/java (#4651)
* If DISABLE_JLINK set, don't try to chmod jre/bin/java

* Do it for oracle server as well
2022-08-23 13:16:42 -05:00
Chris Stewart
9afab28d50
Fix empty.head exception in rescan flow (#4649) 2022-08-23 12:53:22 -05:00
Shreyansh
068187c93d
increase buffer size of dataMessageStream to 10000 (#4646) 2022-08-23 08:59:16 -05:00
benthecarman
e5545cb3b9
Improve toString functions for schnorr data types (#4644) 2022-08-23 07:05:04 -05:00
Chris Stewart
e65346f558
Version 1.9.3 of everything (#4643) 2022-08-22 18:21:07 -05:00
Shreyansh
2c2e03b279
Header sync validation (#4456)
* add header sync validation

* fix docs, minor fixes

* Refactor to us InvalidBlockHeader ChainException, also refactor recovery to private helper method

* changes from comments

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-08-22 17:05:41 -05:00
Chris Stewart
451b525be5
Don't process block that we can't fetch height for (#4613) 2022-08-22 13:21:50 -05:00
Chris Stewart
a0eb0824a2
Fix some bugs around resetting rescan state when a rescan fails (#4642)
* Fix some bugs around resetting rescan state when a rescan fails

* Add test case

* Use .fail() method
2022-08-22 12:55:18 -05:00
Chris Stewart
86463231d6
2022 08 18 Add configuration to only emit websocket events when IBD is done (#4627)
* Implement isinitialblockdownload flag in databaes

* Change to IsInitialBlockDownload to be less confusing

* Fix missing refactors, add ChainApi.isIBD()

* Implement logic for ChainApi.isIBD(), add configuration flag to toggle whether to emit websocket events while IBD is ongoing or not, add isinitialblockdownload field to getinfo endpoint

* Remove confusing ChainApi.isIBD() that didn't accurately account for the case where IBD wasn't set in the database

* Fix bug around emitting the websocket events

* Add some documentation
2022-08-22 10:09:00 -05:00
Chris Stewart
c09da6f116
Bump rescan test timeouts from 5 -> 10 seconds (#4639)
* Bump rescan test timeouts from 5 -> 10 seconds

* Empty commit

* Use AsyncUtil.awaitCondition rather than a hard timeout
2022-08-22 08:52:43 -05:00
rorp
0b39c38419
Configure scalafmt to preserve line endings (#4638) 2022-08-21 16:07:48 -05:00
Chris Stewart
11db95447a
Update 1.9.3 release notes through #4636 (#4637) 2022-08-21 16:05:12 -05:00
Chris Stewart
28311e1550
Only build native bitcoin-s-cli on tags or merges to master (#4636) 2022-08-21 12:45:47 -05:00
Chris Stewart
27120a2bb9
Add InvalidBlockHeader ChainException (#4635) 2022-08-21 12:33:18 -05:00
benthecarman
825937ea5f
Add more JSON serializers (#4628)
* Add more JSON serializers

* use PicklerKeys for consistent field names across codebase

* scalafmt

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-08-21 08:38:02 -05:00
Chris Stewart
ea123139d9
Remove support for bitcoind v16 rpc client (#4634) 2022-08-21 08:17:16 -05:00
Chris Stewart
713ee75d4c
Get rid of standalone scalajs, mdoc CI matrix. Consolidate with other CI jobs (#4633)
* Get rid of standalone scalajs, mdoc CI matrix. Consolidate with other jobs for faster performance

* Adjust CI matrix name

* Address review, bump heap size
2022-08-20 17:21:39 -05:00
Chris Stewart
b18da7ac2b
Fix bug where it prevented us from rescanning an empty wallet (#4632)
* Fix bug where it prevented us from rescanning an empty wallet with a seed to try and recover funds

* Fix unit test to not expect isEmpty() wallet calls
2022-08-20 17:03:22 -05:00
Chris Stewart
eb1327824b
Fix bug where we were not generating change addresses during a rescan (#4631)
* Fix bug where we were not generating change addresses during a rescan with a fresh address pool

* Turn logging level down

* Add awaitRescanDone before checking addresses

* Alternate order we clear addresses and utxos
2022-08-20 13:23:27 -05:00
Chris Stewart
2dad9f57b8
Fix bug where we weren't specify the bash script for each project to modify file permissions (#4625) 2022-08-18 08:29:10 -05:00
rorp
34c10c6c65
Fix WalletDLCSetupTest (#4623)
* Fix WalletDLCSetupTest

* scalafmt
2022-08-18 07:23:54 -05:00
Chris Stewart
153d20128f
Improve logging to try and solve 4618 (#4622) 2022-08-17 16:58:54 -05:00
Chris Stewart
ac7939ac54
Adjust bash script permissions so they can be run by any user (#4624) 2022-08-17 16:58:37 -05:00
Chris Stewart
85c01f7a8c
More lazy initialization for BitcoinSServerMain (#4621) 2022-08-17 13:16:48 -05:00
Chris Stewart
1b19872ac4
Implement exportstakingaddresswif (#4617)
* Implement exportstakingaddresswif

* Add documentation

* Add unit test
2022-08-16 12:37:58 -05:00
Chris Stewart
d241e6f9e4
Remove merklebuffers (#4615) 2022-08-16 09:46:31 -05:00
Chris Stewart
b6710e7043
.map() on loadwallet result before starting http server so wallet is fully loaded (#4614) 2022-08-16 09:36:21 -05:00
Chris Stewart
531fd0f865
Update 1.9.3 release notes through #4609 (#4612)
* Update 1.9.3 release notes through #4609

* Add contributors
2022-08-16 07:32:36 -05:00
rorp
6b8f45e393
Update docker-compose.yml (#4599) 2022-08-15 13:25:04 -05:00
rorp
8638d14ca0
Update Oracle Explorer addreess (#4609) 2022-08-15 13:24:10 -05:00
Chris Stewart
a0851fea58
Run migrations upfront (#4607) 2022-08-15 10:29:38 -05:00
Chris Stewart
d0dadfa423
2022 08 11 issue 4600 and only emit syncing ws event when we are actually syncing (#4604)
* Check if bitcoind is syncing before running scheduled job to poll bitcoind

* Set syncing flag to true if initialblockdownload is true

* Implement logic so we only emit websocket events when state is changed, rather than everytime we poll bitcoind

* Implement logic to only emit websocket event when descriptor flag changes rather than when it is set
2022-08-12 14:34:03 -05:00
Shreyansh
dea99457b5
fix mac node-wallet test failure (#4585) 2022-08-12 14:25:11 -05:00
Chris Stewart
d79f70ee82
Bump scalatest to 3.2.13 (#4605) 2022-08-12 14:24:30 -05:00
GreyMcCarthy
c34b0de886
removed logger parameter from where it's used with callbacks (#4598)
* removed logger parameter from where it's used with callbacks

* removed logger from onTXRecived... and onBlockRecived...

* removed unused imports

* removed logger from walletCallbacks
2022-08-12 12:09:58 -05:00
Chris Stewart
b0831f26a7
Refactor waiting for bitcoind lost blocks into helper method, add context (#4602) 2022-08-12 12:08:27 -05:00
Chris Stewart
9fd9cf1ee4
Update release notes again for 1.9.3 (#4597)
* Update release notes again

* Fix small nits
2022-08-12 06:29:06 -05:00
benthecarman
64bc1367c5
Add listPendingChannels to LND (#4603) 2022-08-12 06:23:04 -05:00
Chris Stewart
e413f04106
Remove the daemonUser/daemonUserId combination to make our docker images more portable (#4601) 2022-08-11 15:09:28 -05:00
Chris Stewart
46502496c1
Update DLCClientIntegrationTest to use the newest bitcoind (#4596) 2022-08-10 09:34:35 -05:00
Chris Stewart
a22e847e2e
Implement small optimization to not query for DLCDb twice (#4592)
* Implement small optimization to not query for DLCDb twice

* Optimize findDLCStatusAction to use a single db query to fetch offers,contracts

* Make findDLCStatusesAction to batch fetch statuses for a set of dlcDbs

* Add querying acceptDb to the sql query

* Implement sql query for getDLCOfferDataAction
2022-08-10 09:26:59 -05:00
benthecarman
26492d2449
Add descriptor for TaprootScriptPubKey (#4595) 2022-08-10 07:10:23 -05:00
Chris Stewart
326cb9845e
Implement listDLCs(state), use it in getWalletAccounting() (#4591) 2022-08-09 11:02:45 -05:00
Chris Stewart
95139bdc3d
Improve logging on getBlockchainInfo() (#4590) 2022-08-09 09:18:53 -05:00
benthecarman
ef3bfed1dc
Add ChainNotifier to LND (#4589) 2022-08-09 06:27:35 -05:00
rorp
d95d3db75c
Download arm64-apple-darwin bitcoind binary on M1 Mac OS X (#4588) 2022-08-08 16:46:34 -05:00