Commit Graph

2826 Commits

Author SHA1 Message Date
benthecarman
be8e965367
DLC Wallet pulldown (#3138)
* DLC Wallet pulldown

* Respond to review
2021-05-25 17:31:01 -05:00
Chris Stewart
cea8802c05
parallelize matching compact filters as this is a bottleneck during IBD (#3137)
* parallelize matching compact filters as this is a bottleneck during IBD

* Use FutureUtil.makeAsync() to actually make it async

* Small optimization, move asmVec outside of lambda so it doesn't need to be re-computed everytime
2021-05-25 12:39:39 -05:00
Chris Stewart
41e22b3cbc
2021 05 23 Sync race condition (#3129)
* Give working code for example on issue

* Fix race condition where both NeutrinoNode.sync() and our data message handler would request the same set of compact filters causing database errors for uniquness violations
2021-05-24 12:30:13 -05:00
Chris Stewart
68c7bc1040
2021 05 21 fetch height parallel (#3124)
* Fetch block height in parallel for Wallet.processCompactFilters()

* Make implementation safe against Vector.empty being passed as a parameter
2021-05-23 18:30:19 -05:00
Nadav Kohen
eafaff9ee8
Made DLCTxSigner's async signing methods actually multi-threaded (#3122) 2021-05-21 18:36:09 -06:00
Nadav Kohen
87f353b08f
DLC Adaptor Point Computation Memoization (#3110)
* A first attempt

* Made memoization conditional on CryptoContext

* Added scaladocs

* Responded to review and added a unit test
2021-05-21 17:40:28 -05:00
Chris Stewart
9c9e27a8f5
Add optimzations for IBD when the wallet is empty, basically skip all logic for matching filters since there is nothing to match against (#3121) 2021-05-21 15:08:25 -05:00
Chris Stewart
80e6a91056
Add application.conf to bundle (#3118)
* Add application.conf to bundle, move some configurations into db-commons/reference.conf

* Fix config
2021-05-21 10:59:23 -05:00
Chris Stewart
42966b3cbe
Remove logback from the cli module (#3117)
* Remove logback from the cli module

* Reset submodule
2021-05-21 07:11:07 -05:00
Nadav Kohen
745e4c89fa
Removed point multiplication from ECPrivateKey.freshPrivateKey (#3116)
* Removed point multiplication from ECPrivateKey.freshPrivateKey

* Responded to review
2021-05-21 00:46:20 -06:00
benthecarman
1e87cb0fde
Remove need for bitcoind install with remote (#3114) 2021-05-20 13:05:44 -06:00
Scala Steward
c605a02c28
Update sbt-assembly to 0.15.0 (#3109) 2021-05-20 09:53:08 -05:00
Scala Steward
ed7a44a1a5
Update sbt-scoverage to 1.8.1 (#3111) 2021-05-20 08:02:55 -05:00
Chris Stewart
fcf55df165
2021 05 19 jpackage bundle release (#3108)
* Remove tags usage, as our current tags are invalid for mac

* First try trying to get jpackage to work with bitcoin-s bundle

* Simplify bundle name for now

* Try to fix linux formatting

* Empty commit to re-run ci

* Empty commit to re-run ci 2

* Fix references to krystal bull artifacts

* Add icon to deb file

* Add icns file for bitcoin-s for mac

* Use same icon as mac os x

* Try to get tagging logic correct

* Add fetch depth 0

* Try bumping java ubuntu version to 1.16

* Try using openjdk@1.16.0-1

* Remove jpackage feature branch to test

* Empty commit to re-run ci 2

* Remove unused ico file
2021-05-19 16:38:32 -05:00
Scala Steward
f460f0e79d
Update sbt-assembly to 0.14.10 (#3106) 2021-05-19 15:33:51 -05:00
Chris Stewart
ba91ba5596
Add assembly instructions for bundle project (#3104)
* Add assembly instructions for bundle project

* revert reference.conf
2021-05-19 06:35:31 -05:00
Scala Steward
25852e48d8
Update scala-java-time to 2.3.0 (#3093) 2021-05-18 06:52:29 -05:00
Nadav Kohen
ac3bae403b
Pulled down all remaining non-wallet non-gui code on adaptor-dlc (#3101) 2021-05-18 06:29:46 -05:00
Scala Steward
a0453ad660
Update scala-library to 2.13.6 (#3097) 2021-05-17 17:44:19 -05:00
Chris Stewart
a104787985
Fix Node.sync() bug that was caused by not starting filter header sync from the current best filter headers block hash (#3092) 2021-05-17 06:04:04 -05:00
Chris Stewart
7468cbec23
Optimize updateUtxoConfirmedStates() to fetch confirmations for blocks in parallel (#3094) 2021-05-16 17:10:58 -05:00
Scala Steward
9dfc99cd40
Update scalatest to 3.2.9 (#3091) 2021-05-14 18:52:10 -05:00
Chris Stewart
3205e4e275
Implement createCETsAndCETSigsAsync() to fix performance issue in test (#3089)
* Implement createCETsAndCETSigsAsync(), use this inside of TestDLCClient.setupDLCAccept()

* Switch to lazy val to cache sig point computation

* Add FutureUtil.batchAndParallelExecute() that does not take batchSize parameter, just compute it inside as a sane deafult

* Fix 2.12.x compiler error
2021-05-14 17:59:56 -05:00
benthecarman
73668bb66c
Remove old ZMQ config from documentation (#3090) 2021-05-14 14:33:57 -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
Scala Steward
6f0fb0671e
Update metrics-core to 4.2.0 (#3087) 2021-05-14 12:19:45 -05:00
Scala Steward
6f8ecf0654
Update scala-collection-compat to 2.4.4 (#3083) 2021-05-14 12:19:22 -05:00
Scala Steward
d9a8a38faf
Update sbt-mdoc to 2.2.21 (#3086) 2021-05-14 12:19:09 -05:00
Scala Steward
6fd869bd87
Update sourcecode to 0.2.7 (#3084) 2021-05-14 10:17:28 -05:00
Scala Steward
bb1eec3941
Update scodec-bits to 1.1.27 (#3085) 2021-05-14 05:51:41 -05:00
Chris Stewart
11d58813c1
Remove zmq configurations for bitcoind backend setup as they aren't needed (#3080) 2021-05-14 05:51:02 -05:00
benthecarman
8b8066d1f3
Fix windows secp bindings (#3075) 2021-05-12 16:42:56 -05:00
Chris Stewart
72636b7180
2021 05 09 received utxos (#3063)
* Make TransactionProcessing.processTransactionImpl() a bit more parallel, fetch all relevant received and spent txos in parallel

* More refactors, make sure return types are Vector rather than Seq to make sure we don't have any pathlogical surprises with scala collections

* Fix type annoation to be Vector

* Fix remaining usage of Seq in TransactionProcessing

* Fix pattern match on Vector on 2.12.x

* Change input to Vector rather than Seq in processSpentUtxos()
2021-05-12 10:45:23 -05:00
benthecarman
2b8ac08cdc
Give oracle ability to sign messages with private key (#3070) 2021-05-12 10:09:34 -05:00
benthecarman
aff2374f45
Update README.md (#3071) 2021-05-12 06:06:33 -05:00
benthecarman
41f3cb4dbf
Fix CachedHttpFeeRateProvider (#3069) 2021-05-12 01:43:00 -05:00
Scala Steward
b73607fbbb
Update sbt-scoverage to 1.8.0 (#3066) 2021-05-11 11:49:16 -05:00
Chris Stewart
db486163f9
Remove caveat for supressing 2.12.x warnings on lnd rpc (#3057) 2021-05-10 12:05:44 -05:00
Scala Steward
d223829a37
Update sbt to 1.5.2 (#3062) 2021-05-10 06:54:24 -05:00
Scala Steward
526d8d345d
Update scalacheck to 1.15.4 (#3060) 2021-05-08 13:58:39 -05:00
Scala Steward
3a0b1af759
Update janino to 3.1.4 (#3058) 2021-05-08 13:36:50 -05:00
Scala Steward
0668ae541f
Update sbt-scoverage to 1.7.3 (#3061) 2021-05-08 13:36:28 -05:00
benthecarman
8e29b5c6f6
Change outpoint output format for cli commands (#3048)
* Change outpoint output format for cli commands

* Use lockunspent format

* update docs
2021-05-08 08:15:49 -05:00
Chris Stewart
9b06cdd832
2021 05 07 cleanup build (#3055)
* Apply all prodSettings and testSettings to appropriate projects

* Remove caveat for scala 2.12 as all these warnings are supported in the latest version scalac 2.12.13
2021-05-08 07:34:40 -05:00
Chris Stewart
97a854c5bb
2021 05 07 fix getting setup (#3053)
* Fix getting-setup, add prodSettings,testSettings to new tor module

* Fix missing wallet rpc examples on 0.6
2021-05-07 17:55:21 -05:00
rorp
02c4505948
Initial Tor support (#3043)
* Initial Tor support

* cleanup
2021-05-07 06:43:39 -05:00
Nadav Kohen
6bc0943a62
Call decompression on public keys less (#2988)
* Removed type parameter from PublicKey

* Deduplicated call to public key decompression in isFullyValid

* Fixed FieldElement

* Added CurveCoordinate to replace FieldElement in places where it was being misused

* Added edge case tests
2021-05-07 02:05:10 -05:00
Nadav Kohen
78f4dfb8c6
Pubkey Refactor (#2936)
* Removed ExecutionContext from ECKey

* Refactored ECPublicKey to remove compression state and introduced ECPublicKeyBytes to handle cases where serialization of input is important

* Fixed the rest of bitcoin-s so that it passes all tests

* Made all ECKeys into case classes

* Successfully added isFullyValid invariant to ECPublicKey!

* Fixed docs

* Added scaladocs and fixed a RpcPsbtResult bug

* Reject private keys of length < 32 and fix WIF parsing bug
2021-05-06 13:19:52 -05:00
Chris Stewart
b854f7b16a
Fix javafx on mac osx new m1 arch (#3041) 2021-05-05 13:08:09 -05:00
Nadav Kohen
63a6f9309d
Introduced AsyncAdaptorSign and AdaptorSign traits (#3037) 2021-05-05 09:34:03 -05:00