Commit Graph

518 Commits

Author SHA1 Message Date
Chris Stewart
171001273c
Implement a workaround for 4369 on docker images and m1 macs IF the user has another java installed on their machine (#4377) 2022-06-09 15:10:28 -05:00
Shreyansh
d8fc8e588f
Remove Spv code (#4356)
* change node tests to neutrino

* get node test working

* merge DataMessageHandlerTest and DataMessageHandlerNeutrinoNodeTest

* delete unused files

* remove commented out spv parts

* formatting

* delete spv node

* remove merkle callback for neutrino node

* remove spv node wallet callbacks

* formatting

* remove SpvWalletApi

* replace SpvTestConfig with NeutrinoTestConfig

* more replace SpvTestConfig with NeutrinoTestConfig

* minor fix

* fix tests
2022-05-30 07:57:31 -05:00
user411
8a01432db4
Try to debug why shutdown isn't working on windows (#4349)
* Try to debug why shutdown isn't working on windows

* Add 2022-05-18-shutdown-bug branch so it triggers release.yml

* Cleanup OracleServerMain shutdown

* Make cleaner shutdown messages

* Remove feature branch

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-05-24 14:41:12 -05:00
rorp
f680ab8691
Persist whether wallet is rescanning in the database (#4326)
* Persist whether wallet is rescanning in the database

* fix cli

* fix build

* fix unit tests

* fix postgres tests

* remove wallet_state table

* fix rescan bug

* cleanup

* revert Cancellable's

* Cleanup

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-05-23 19:03:02 -05:00
Chris Stewart
107f95cd5a
Upgrade sttp to 3.6.1 (#4341) 2022-05-18 08:35:49 -05:00
Chris Stewart
272f31aeaa
Fix race condition on DLC node startup wrt to tor (#4335) 2022-05-13 09:56:53 -05:00
Chris Stewart
5036b37729
2022 05 11 tor race condition (#4333)
* WIP tor race condition debug

* Fix race condition between starting node and starting tor

* Remove extra log
2022-05-11 16:38:24 -05:00
Chris Stewart
e4d38ba53a
2022 05 05 OS specific jlink builds (#4322)
* Add OS specific zips

* Try to fix windows build

* Try to fix windows build shell

* Try to see if double zip works w/o mac verified developer error

* Add bash script to handle making file executable and make it non quarantine on mac

* Do chmod regardless of os

* Remove chmod as that cannot work by definition, revert to only packaging stage/ directory

* Make java exectuable on every OS

* refactor CommonSettings.jlinkIgnore

* Try to build appServer

* Make cli use jlink

* Make bash scripts more generic on mac

* Remove feature branch on release.yml

* Fix startup scripts
2022-05-07 18:42:02 -05:00
Chris Stewart
d46b4a6c91
Make logging to file async, remove neverBlock configuration so that we are guaranteed to capture logs (#4305) 2022-05-01 06:45:33 -05:00
rorp
0c6c9180ed
Handle duplicate UTXOs (#4296)
* Handle duplicate UTXOs

* Add logging

* Add log for exception in handleDuplicateSpendingInfoDb

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-04-29 08:21:41 -05:00
Chris Stewart
f4d864fab8
2022 04 26 Startup time of appServer (#4294)
* Make Server's route be async

* WIP

* Add StartedBitcoinSAppConfig to indicate when tor starts up

* Add torStarted flag to getinfo response
2022-04-28 13:50:28 -05:00
Nadav Kohen
525fb2ac0d
Default createDLCOffer to current block height (#4285)
* Added createDLCOffer endpoint which doesn't take a locktime and uses current block height instead

* Made cetLocktime an option instead of an argument to the CLI, updated docs

* fix compile

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-04-25 14:30:32 -05:00
Chris Stewart
17944c4aad
Update rolling policies for log files (#4291) 2022-04-25 10:38:54 -05:00
benthecarman
bac3cb4190
Fix rolling log file (#4288) 2022-04-25 06:53:08 -05:00
rorp
f5940c93d4
Contact list (#4234)
* Contact list

* fix unit tests

* Add contact rpc tests

* Add documentation

* Refactor ConsoleCli into app-commons

* Add commands to bitcoin-s-cli

* Fix timeout for rescan

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-04-21 13:02:35 -05:00
Chris Stewart
16c5d835de
2022 04 20 issue 4280 (#4282)
* Set bitcoin-s.node.mode=neutrino by default in docker-application.conf

* Fix bitcoin-s.node.peers in docker-application.conf, fix documentation
2022-04-21 06:15:57 -05:00
Chris Stewart
e3e59923c4
Parallelize some startup on startBitcoinSBackend() to increase performance (#4217)
* Parallelize some startup on startBitcoinSBackend() to increase performance

* Fix compile on 2.12.x
2022-04-19 08:31:53 -05:00
Chris Stewart
ff8f44282b
Reduce parallelism to 4 (#4259) 2022-04-13 15:42:35 -05:00
Chris Stewart
10157d108f
Reduce parallelism when fetches txs in mempool for bitcoind backend (#4257) 2022-04-13 09:18:32 -05:00
Chris Stewart
37da24b94b
Add SignDbState to fix rescan exception (#4246)
* Add SignDbState to fix rescan exception

* Cleanup

* Add test, doesn't pass

* Add unit tests, add invariants

* Add unit test to appServerTest

* Fix handling so an exception is not thrown internally when a contractId does not exist
2022-04-11 08:06:53 -05:00
Chris Stewart
1bc3962cfb
Async mempool processing (#4245)
* Async mempool processing

* Add processTx to the flow

* increase parallelism for network requests

Co-authored-by: rorp <rorp@users.noreply.github.com>
2022-04-05 08:02:51 -05:00
rorp
4b96407408
Add a Tx callback for Bitcoin Core backend (#4243) 2022-04-04 14:59:03 -05:00
Chris Stewart
f2fa56221d
2022 03 31 collateral invariant (#4232)
* DLCMessage.totalCollateral -> DLCMessage.collateral

* Fix bad names of {DLCOfferTLV,DLCAcceptTLV}.totalCollateralSatoshis, its not the total collateral, rather the collateral being contributed by the offerer and acceptor

* Fix rebase

* Fix appServerTest

* Fix docs
2022-03-31 09:48:08 -05:00
rorp
00bce5adae
Fix peer configuration for docker-compose (#4225) 2022-03-29 14:28:57 -05:00
rorp
715639033c
Support for Tor Docker (#4223) 2022-03-29 08:10:34 -05:00
rorp
0770fe0550
Mempool support for the bitcoind RPC client (#4196)
* Mempool support for the bitcoind RPC client

* fix unit tests

* fix race conditions

* fix compile error

* add more logging
2022-03-22 15:40:27 -05:00
Chris Stewart
8d2a749df6
Rename WitnessScriptPubKeyV1 -> TaprootScriptPubKey (#4198) 2022-03-19 13:26:03 -05:00
Chris Stewart
bd7f35e9ed
Set both bitcoin-s.proxy.enabled and bitcoin-s.tor.enabled in bitcoin-s-bundle.conf (#4194) 2022-03-16 12:05:10 -05:00
Chris Stewart
46229d712c
Rename clearAllUtxosAndAddresses() -> clearAllUtxos() (#4193)
* Rename clearAllUtxosAndAddresses() -> clearAllUtxos()

* Fix unit test

* Fix docs
2022-03-16 08:53:08 -05:00
Chris Stewart
7ddeae66d2
Add web UI build tutorial (#4183) 2022-03-11 12:16:59 -06:00
Chris Stewart
fe86233489
Add better tor message to UI (#4181)
* Add better tor message to UI

* Fix compile
2022-03-11 11:17:52 -06:00
Chris Stewart
73fe4099f9
Renable tor configuration by default (#4179) 2022-03-10 16:22:42 -06:00
rorp
a747f84bbb
Mark extarnal payout addresses (#4173)
* Mark extarnal payout addresses

* fix unit tests
2022-03-09 15:37:16 -06:00
Chris Stewart
668ab21ca1
2022 03 09 label refactor (#4175)
* Rename existing getaddresslabels -> getaddresslabel

* Fix missing rename of GetAddressLabel

* Modify pk constraint on wallet_address_tags to be tag_name rather than tag_type

* Add dropaddresslabel for a specific address

* Fix migrations

* Add unit tests and fix existing tests

* Add docs
2022-03-09 15:36:44 -06:00
rorp
aeb3169884
getdlcoffer RPC (#4166)
* getdlcoffer RPC

* fix build

* unit tests
2022-03-07 14:28:00 -06:00
Chris Stewart
ec384a8b39
2022 03 05 rescan gui (#4170)
* Add rescan option to the GUI

* Create 'Advanced' Menu
2022-03-07 07:48:40 -06:00
rorp
56d0ae68ad
offer-send RPC (#4153)
* offer-send RPC

* docs

* change offet-send signature

* change offer_send signature

* add local address parameter

* remove local address parameter

* use temo contract id to send offers

* respond to the PR comments
2022-03-03 21:00:32 -06:00
Chris Stewart
30226219e6
2022 03 01 static wix upgrade product code (#4149)
* Try fixing a stic wix productId so the windows OS can understand installations of bitcoin-s are the same product

* Add this branch to release.yml

* Use 1.9.0 windows product id

* Add EnvUtil.parseCommitsSinceLastTag, make last number on windows version be the number of commits since last tag

* Add ability to parse the version from a string

* use upgradeId rather than productId

* Remove feature branch from release.yml

* Remove test
2022-03-01 18:25:13 -06:00
Chris Stewart
c315dce05b
Add jdk version to log (#4142) 2022-03-01 10:12:44 -06:00
Chris Stewart
b86d4e492c
Allow both lnmessage and raw tlv to be sent over rpc for acceptdlc (#4140) 2022-03-01 06:13:59 -06:00
rorp
44b2ca3c3d
Improve validation error messages (#4141)
* Improve validation error messages

* fix unit tests
2022-03-01 05:27:32 -06:00
Chris Stewart
1bab51c1c6
Adjust appconfig logging to INFO (#4139)
* Adjust appconfig logging to INFO

* Add txids to log
2022-02-28 14:58:31 -06:00
rorp
c1dccd7831
Offer inbox RPC (#4129)
* Offer inbox RPC

* fix syntax errors

* change parameter type

* change receivedAt type

* rename RPC methods

* WS support

* fix syntax errors
2022-02-28 14:25:46 -06:00
Chris Stewart
8f02ebce10
2022 02 26 dynamic fee gui (#4135)
* WIP: Implement dynamic fee rates on desktop gui

* Fix bugs where we were calling fee rate api before backend was started
2022-02-27 07:14:52 -06:00
Chris Stewart
3ba95700b2
Add RescanState, make sure we don't start concurrent rescans (#4131) 2022-02-25 05:23:51 -06:00
rorp
34b7d18268
External payout addresses for acceptdlc (#4121) 2022-02-22 14:47:48 -06:00
Chris Stewart
b46574c0c4
2022 02 18 sync since creationtime pt2 (#4109)
* Get things compiling and tests passing

* Fix bug where we weren't using filter height correctly

* Fix docs

* Move creationTime into KeyManagerAppConfig

* Fix nodeTest/test test fixtures
2022-02-22 08:00:14 -06:00
rorp
5777ec1c31
Add an ability to set custom payout and change addresses (#4101)
* Add an ability to set custom payout and change addresses

* config changes

* formatting

* respond to the comments
2022-02-18 09:29:00 -06:00
rorp
1708add6ec
Make Tor connect error message more human readable (#4078) 2022-02-11 12:35:37 -06:00
Chris Stewart
9de4b0272a
2022 01 31 issue 4030 (#4066)
* WIP

* WIP

* Get basic unit test passing for new adaptor sig states

* Fix compile
2022-02-09 13:15:44 -06:00