Commit Graph

200 Commits

Author SHA1 Message Date
Chris Stewart
13a895efe9
2024 09 24 simplify wallet (#5685)
* WIP: Simplify wallet

# Conflicts:
#	fee-provider/src/main/scala/org/bitcoins/feeprovider/FeeProviderFactory.scala

# Conflicts:
#	wallet/src/main/scala/org/bitcoins/wallet/Wallet.scala

* Get walletTest/test passing

* Remove WalletApi.{start(),stop()}

 Conflicts:
	core/src/main/scala/org/bitcoins/core/api/wallet/WalletApi.scala
	wallet/src/main/scala/org/bitcoins/wallet/Wallet.scala
	wallet/src/main/scala/org/bitcoins/wallet/WalletHolder.scala

* Cleanup RescanDLCTest

* Move checkRootAccount into AccountHandling.scala

* Fix rebase

* Fix docs
2024-09-27 13:40:29 -05:00
Chris Stewart
41fab3dfd2
2024 08 07 createnewaccount rpc (#5638)
* Implement creatnewaccount rpc

* Get WalletRoutesSpec createnewaccount unit test passing

* Rename HDPurposes -> HDPurpose

* Fix docs

* Implement ConsoleCli arg, change HDPurpose json serialization to be a json string instead of a num
2024-08-13 10:32:03 -05:00
Chris Stewart
4885bdb07d
Add -Xsource:3 to lnd-rpc (#5595)
* Add -Xsource:3 to lnd-rpc

* Upgrade pekko-grpc-sbt-plugin to 1.1.0-M1 to support -Xsource:3

* Remove -quickfix:any

* Upgrade other pekko deps to 1.1.0-M1 to fix ILlegalStateExceptions w/ dep clashes
2024-07-16 08:08:43 -07:00
Chris Stewart
a6b7fada50
Get rest of codebase compiling with -Xsource:3 (#5592) 2024-05-11 14:13:36 -05:00
Chris Stewart
0af58483f2
Add -Xsource:3 to rpc projects (#5590)
* Add -Xsource:3 to bitcoind-rpc/ bitcoind-rpc-test/ lnd-rpc/ lnd-rpc-test/ eclair-rpc/ eclair-rpc-test/ clightning-rpc/ clightning-rcp-test/

* Remove -quickfix:any

* Remove lndRpc/ -Xsource:3 flag
2024-05-11 12:04:21 -05:00
Chris Stewart
562e5602e3
Add -Xsource:3 to node/ node-test/ tor/ tor-test/ (#5589) 2024-05-11 11:21:08 -05:00
Chris Stewart
d13e12afae
2024 05 11 wallet xsource3 (#5588)
* Add -Xsource:3 to chain/

* -quickfix chainTest

* Add -Xsource:3 to wallet/ wallet-test/ dlc-wallet/ dlc-wallet-test/
2024-05-11 09:49:10 -05:00
Chris Stewart
ac7739444f
Add -Xsource:3 to chain/ (#5587)
* Add -Xsource:3 to chain/

* -quickfix chainTest
2024-05-11 09:49:01 -05:00
Chris Stewart
791ff3282a
Add -Xsource:3 to db-commons/ (#5585) 2024-05-11 07:24:00 -05:00
Chris Stewart
05894e8c54
2024 05 10 keymanager xsource3 (#5583)
* Get key-manager compiling with -Xsource:3

* Get testkit-core compiling with -Xsource:3
2024-05-10 18:44:11 -05:00
Chris Stewart
37fc215b55
2024 05 10 appCommons/ compiling with -Xsource:3 (#5582)
* Get appCommons/ compliing with -Xsource:3

* Get appCommonsTest/ compliing with -Xsource:3
2024-05-10 16:53:46 -05:00
Chris Stewart
4b17645c1b
Add -Xsource:3 to docs/ (#5581) 2024-05-10 12:37:02 -05:00
Chris Stewart
654d4086b9
2024 05 08 scala3 core (#5580)
* Pull over scala3 compatible code for crypto/ project from https://github.com/bitcoin-s/bitcoin-s/pull/3497

* Pull over scala3 compatible code for core/ project from https://github.com/bitcoin-s/bitcoin-s/pull/3497

* Add -Xsource:3 to core/

* Get coreJVM/compile working

* restore files lost from master when checking out core/ from 2021-06-30

* Get entire codebase compiling

* Get bitcoindRpcTest/test:compile working

* Restore P2SHDescriptor constructor

* scalafmt

* Fix UInt8.toByte

* Get all merkle block tests working

* Fix GCS bug

* Add -Xsource:3 to cryptoTest/
2024-05-10 11:10:45 -05:00
Chris Stewart
3af204e74d
Pull over scala3 compatible code for crypto/ project (#5575)
* Pull over scala3 compatible code for crypto/ project from https://github.com/bitcoin-s/bitcoin-s/pull/3497

* Add -Xsource:3 flag to crypto/

* Remove tests for constructors
2024-05-09 17:07:05 -05:00
Chris Stewart
73279753d7
Renable parallelExecution for bitcoindRpcTest (#5541)
* Renable parallelExecution for bitcoindRpcTest

* Empty commit to re-run CI

* Try to remove more parallelExecution settings
2024-05-01 15:26:51 -05:00
Chris Stewart
177542a13c
Remove grizzled.sl4fj was its no longer maintained (#5482) 2024-03-18 16:48:58 -05:00
Chris Stewart
c0e8d376eb
Remove oracle explorer client (#5308)
* Remove oracle explorer client

* Remove doc, remove ci flow
2023-11-22 10:27:29 -06:00
Chris Stewart
7d809bf5df
Remove legacy GUI, this fixes CI merges to master as we no longer use the deprecated notary tool from apple (#4870) 2022-11-01 15:35:18 -05:00
Chris Stewart
786f77bfb9
Upgrade sbt ci release to 1.5.11 (#4865)
* Upgrade sbt ci release to 1.5.11

* Fix import names as suggested by Ben
2022-10-31 14:57:19 -05:00
Chris Stewart
fecb9902ec
2022 09 20 rm dlc test (#4792)
* Remove dlcTest module

* Fix file paths

* remove dlcTest/test from ci runs
2022-09-20 11:58:43 -05:00
benthecarman
1758197d58
Remove bitcoind as a dep for lnd (#4703) 2022-09-02 17:24:38 -05:00
Chris Stewart
f6df30c45e
Make appServerTest run in parallel to speed up test suite (#4515) 2022-07-17 18:08:39 -05:00
Chris Stewart
de935032ea
Make coreTestJVM.dependOn(testkit), add new multi core dispatcher to allow more cores for TaprootTTests to hopefully take load off the scala execution context (#4477) 2022-07-09 09:40:39 -05:00
benthecarman
45ba6ee1e7
Fix lnurl module name to have bitcoin-s prefix (#4392) 2022-06-14 12:37:39 -05:00
Chris Stewart
d335cd1933
Enable LauncherJarPlugin on oracleServer/appServer (#4338)
* Enable LauncherJarPlugin on oracleServer/appServer

* remove feature branch
2022-05-17 14:40:48 -05:00
benthecarman
d60d984a6b
LnURL Module (#4295)
* LnURL Module

* Add lnurl tests to CI
2022-05-14 16:11:35 -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
087b9f90b5
2022 05 03 oracle server jlink build (#4316)
* Implement jlink with oracleServer

Remove comment

Begin integrating jlink into oracleServer

WIP

WIP

Finish postgres transitive deps

Get oracleServer startup working

Add some settings to compress the jre shipped, reduces size by ~50%

refactor build config

Bump dependencies

* Remove java desktop module from our jlink build
2022-05-05 09:59:05 -05:00
Chris Stewart
7a6f0430d6
2022 02 03 issue 4032 (#4042)
* get all dlcWalletTest/test passing

* Get dlcTest/test working with ignored test cases

* WIP

* Rework match oracleSignatures

* Refactor checkSingleContractInfoOracleSigs to use matchOracleSignatures

* Clean up checkOracleSignaturesAgainstContract for disjoint, still doesn't pass test cases

* Some DRY in numeric test cases

* Add test case for enum contracts

* Fix disjoint union contract bug

* Refactor matching of oracle announcements and oracle signatures into DLCUtil

* Fix compile on on 2.12.x

* Address parts of code review
2022-02-05 09:04:04 -06:00
benthecarman
03abb7537b
Add basic esplora client (#4018)
* Add basic esplora client

* Improve error message
2022-01-28 15:48:44 -06:00
Chris Stewart
2e49bedf7d
upgrade to scala-js 1.8.0 (#3979)
* upgrade to scala-js 1.8.0

* upgrade the scoverage plugin to 1.9.3
2022-01-13 09:07:55 -06:00
Chris Stewart
01a7c7c838
Make clightning tests execute async (#3768) 2021-10-19 12:18:04 -05:00
benthecarman
6d43d443ba
Initial c-lightning rpc support (#3755)
* Initial c-lightning support

* Respond to review
2021-10-19 10:58:29 -05:00
Chris Stewart
48213d9b81
Implement MasterXPubDAO (#3451)
* Implement MasterXPubDAO

* Fix nits

* Add postgres migrations

* Make sure tables are getting cleaned on postgres

* Get dlcOracleTest test cases passing with validation of the master xpub in the database on startup

* Fix test case

* Fix more tests

* Move things around so keymanager does not need to depend on dbCommons

* Get all walletTest passing

* Add unit test for wallet startup

* Fix rebase

* Get all sqlite tests passing

* Get postgres test cases passing locally

* Remove early call to walletAppConfig.start() in node project

* Make KeyManagerAppConfig.externalEntropy private

* Fix MasterXpubDAO.existsOneXpub()

* Fix bug in migrating database for oralce project
2021-09-21 08:05:23 -05:00
Chris Stewart
8e39b2bbb8
Sbt docker multi platform (#3649)
* Add docker x building for multiple platform support

* Working now

* Move config into CommonSettings, make code a bit more readable

Co-authored-by: Ivan <erickson.ivan@gmail.com>
2021-09-07 14:09:23 -05:00
Chris Stewart
a5f4f9663c
Add BitcoinSServerMain test to connect to bitcoind (#3591)
* Add BitcoinSServerMain test to connect to bitcoind

* Add tor tests

* Fix compile

* Remove println

* Allow to reset BitcoinSServer promise

* Remove println

Co-authored-by: benthecarman <benthecarman@live.com>
2021-08-26 09:08:38 -05:00
benthecarman
495ab62104
Tor in Testkit (#3484)
* Tor packaged for testkit

* Add CI row

* Small fixes

* More fixes

* Keep tor running

* Skip tor test for old version of bitcoind

* Respond to review

* Fix with master

* Bump tor start time to same as app config

* Use cached tor for DLCNodeTest

* Disable parallel execution for dlc node test with tor

* Fix DLCNodeTest for tor and clearnet

* Fix name of CI rows
2021-08-23 13:06:14 -05:00
Chris Stewart
b7d85264a0
Implement TorAppConfig.start(), use tor logs to detect when the tor is fully started (#3549)
* Implement TorAppConfig.start(), use tor logs to detect when the tor binary is fully started

* Clean up comments

* take ben's suggestion and only start the binary when tor is enabled

* Add cases for when binary is alreayd started

* Actually set the stop flag correctly

* Scalafmt
2021-08-15 14:01:12 -05:00
rorp
3d4cf1fc91
Tor support for all sub-projects (#3506) 2021-08-10 08:07:12 -05:00
Chris Stewart
4f7b6422ea
2021 08 06 app config refacotr (#3498)
* Move AppConfig into app-commons, reduce classpath deps on keyManager,tor

* Move test ServerArgParserTest

* Fix compile error
2021-08-07 14:36:11 -05:00
benthecarman
b39ca47268
Create TorAppConfig (#3476) 2021-08-04 14:16:22 -05:00
rorp
ca40af5d94
Tor support for BTC RPC (#3470)
* Tor support for BTC RPC

* change config format
2021-08-03 11:07:05 -05:00
benthecarman
1051e6365a
DLC P2P Client (#3402)
* DLC P2P WIP

* P2PClient refactor (#10)

* Add to CI

* Remove unused

* Attempt to create DLCNode and Tests

* Full Tor support

* Get DLCNegotiationTest passing

* Config options, connect & send func

* Test for DLCNode

* Add createDLCNode to config

* Fix formatting

* Update DLC state after all other data is set

* Remove unneeded line

* Respond to some review

* 2021 07 26 dlc node code review (#13)

* WIP

* WIP2

* Rewrite tests not use Await.result()

* Skip Tor test on CI

* Cleanup threadpool leaks in tests

* Handle actor pattern matching better

* Respond to review

* Implement DLCNode.stop

* sock5 -> socks5

* Use Tcp.Unbind

* Respond to review

* Implement postStop

* Switch to unbind

Co-authored-by: rorp <rorp@users.noreply.github.com>
Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-08-02 18:15:56 -05:00
rorp
8b663d91b6
Tor support for P2P (#3311)
* Tor support for P2P

* fix stuck connections

* unit tests

* docs

* update docs

* respond to the PR comments

* fix docs
2021-07-13 14:27:24 -05:00
Chris Stewart
a9292fcad8
Add FutureUtil tests (#3126)
* Add FutureUtilTest for both FutureUtil.batchAndParallelExecute and FutureUtil.batchAndSyncExecute

* Make Vector same size as available processors as CI machines don't have as many processors as I have locally

* Try to fix test case

* Add processors to the log

* Replace java scheduler with a scalajs scheduler called monix

* Make asyncUtilsTest compatible with Scalajs, add them to the CI matrix

* Add more missing runs of asyncUtilsTestJS/test
2021-06-28 14:44:08 -05:00
Chris Stewart
4c9f174a4b
Remove all flyway plugin sbt config (#3215) 2021-06-02 06:08:43 -05:00
Chris Stewart
b23b5ad55f
Make sure secp256k1 is published for java8, not the class version of the jdk it was built on (#3145) 2021-05-26 09:36:20 -05:00
Chris Stewart
caf6c2e724
Enable java app packaging on bundle project (#3144) 2021-05-26 07:01:18 -05:00
benthecarman
be8e965367
DLC Wallet pulldown (#3138)
* DLC Wallet pulldown

* Respond to review
2021-05-25 17:31:01 -05:00
Nadav Kohen
58070f4120
Pulled down dlc and dlcTest projects into core and dlcTest (#3068)
* Pulled down dlc and dlcTest projects into core and dlcTest

Added dlcTest to CI runs and fixed compilation issues

* Fixed docs

* loosened fee rate bound assertions to only sanity test
2021-05-14 12:27:21 -05:00