Commit graph

2597 commits

Author SHA1 Message Date
Scala Steward
fd08c98be0
Update javafx-base, javafx-controls, ... to 16-ea+5 (#2304) 2020-12-02 07:00:19 -06:00
Ben Carman
0c03aa9c24
Add function to validate OracleAnnouncementV0TLV's signature (#2308) 2020-12-02 06:59:44 -06:00
Chris Stewart
28c37ccf1f
trivial: Add a sha256 hash field on all TLV (#2300) 2020-11-30 12:47:10 -06:00
Scala Steward
f0d925fda1
Update scopt to 4.0.0 (#2298) 2020-11-30 08:38:48 -06:00
Chris Stewart
8836ed5e4f
Get Scala 2.13.4 compiling (#2294)
* Get Scala 2.13.4 compiling

* Fix broken test case, in general use if() else() statements for Vectors rather than pattern match as I am unsure of how to correctly pattern match on Vector0,Vector1,...,Vector6()

* Bump CI to 2.13.4

* OVerride CurrencyUnit.equals() so that it works on Scala 2.13.4, not sure why there was a regression here between Scala versions 2.13.4/2.13.3

* Add explicit unit tests making sure bitcoin/satoshi currency units are equivalent
2020-11-28 07:36:07 -06:00
Scala Steward
c5c7a423b2
Update scodec-bits to 1.1.22 (#2296) 2020-11-27 07:48:18 -06:00
Chris Stewart
c29d95eece
Make BitcoinSAyncTest more thread safe and make sure we have all the … (#2292)
* Make BitcoinSAyncTest more thread safe and make sure we have all the expected test cases aggregated before we starting reducing over the results

* remove extra code

* Fix scala 2.12.x compile
2020-11-26 07:53:33 -06:00
Scala Steward
b2fe48e9fb
Update sbt-mdoc to 2.2.13 (#2291) 2020-11-26 07:44:03 -06:00
Scala Steward
d12c857441
Update scala-collection-compat to 2.3.1 (#2290) 2020-11-25 13:51:24 -06:00
Ben Carman
42c15ba672
Fix datadir config option (#2271)
* Fix datadir config option

* Move vals

* Use better names and docs
2020-11-24 16:05:20 -06:00
Ben Carman
7172b4a049
Request witness blocks from peers (#2289) 2020-11-23 22:08:03 -06:00
Chris Stewart
5524966998
Add directive to configure timeout on the appServer (#2275)
* docs: Add requestimeout bump to example configuration

* docs: Add reference to akka docs
2020-11-23 16:03:13 -06:00
Scala Steward
9d842897f5
Update scala-collection-compat to 2.3.0 (#2285) 2020-11-23 12:06:05 -06:00
Chris Stewart
b638c6837e
Move english word list to be represented by a Vector in memory (#2287)
* Move english word list to be represented by a Vector in memory

* rename to EnglishWordsBip39
2020-11-23 10:27:22 -06:00
Scala Steward
d0e3561bca
Update sbt to 1.4.4 (#2288) 2020-11-23 06:43:33 -06:00
Scala Steward
f22e1b6edb
Update akka-http, akka-http-testkit to 10.1.13 (#2276) 2020-11-21 07:51:46 -06:00
Ben Carman
79b3d959d3
Create KeyManagerAppConfig (#2268)
* Create KeyManagerAppConfig

* Fix name

* Use module name
2020-11-19 06:23:26 -06:00
Chris Stewart
0897ea5da1
2020 11 17 dlcoracle dbutil (#2272)
* Move conversions OracleEventTLV -> {EventDb,EventOutcomeDb} into util files so that they can easily be reused by things that are using bitcoin-s as a library

* Add overloaded alternatives to EventDbUtil.{toEventDbs, toEventOutcomeDbs} that take in a OracleAnnouncementV0TLV
2020-11-18 07:39:18 -06:00
Ben Carman
7f759ab084
docs: Logback conf command line docs (#2270) 2020-11-17 13:37:48 -06:00
Ben Carman
3314cd36d0
docs: Add DLC Oracle db conf to docs (#2269) 2020-11-17 12:49:12 -06:00
Chris Stewart
2de17bb4e4
2020 11 13 issue 2258 (#2260)
* Introduce ChainHandlerCached which behaves like the old ChainHandler. Now Chainhandler.getBestBlockHeader() will read headers from the database

* Remove ChainHandler.blockchains field, now it's only available in ChainHandlerCached

* De-futurify ChainHandler.fromDatabase()

* Adjust logging

* Patch test case

* Use BlockHeaderDAO.chainTips when getting best header rather thean BlockHeaderDAO.getBlockchains(). Implement a helper method ChainHandler.toChainHandlerCached()

* Fix chain.md,wallet.md

* Make ChainHandler.getBestBlockHeader() consider time of header if chainwork is the same. Make test cases less strict on what header is the best header when both chainwork and time are the same on the eader

* Only execute callbacks on headers that are going to be created in the database, not all headers passed into ChainHandler.processHeadersWithChains()

* Turn up log level again

* Small optimizations, check if we have seen a header before before processing it in ChainHandler.processHeadersWithChains(). Fix FilterSyncMarker.toString(). Use ChainHandlerCached in Node

* Remove ChainHandlerCached in appServer, re-add it in Node.scala
2020-11-17 06:19:07 -06:00
Chris Stewart
18dfbed8c9
Add helper OracleEventTLVV0.maturation method (#2267) 2020-11-17 06:18:32 -06:00
Scala Steward
76d4e36097
Update sbt to 1.4.3 (#2266) 2020-11-16 14:32:31 -06:00
Ben Carman
4c623a8fcb
Fix listEvents in DLCOracle (#2265)
* Fix listEvents in DLCOracle

* Fix migration
2020-11-16 06:32:40 -06:00
Ben Carman
744d8d18ab
Add ability to change aes password (#2254)
* Add ability to change aes password

* Add docs

* Rename, add logs + tests
2020-11-15 08:07:49 -06:00
Scala Steward
ff9119e975
Update spray-json to 1.3.6 (#2256) 2020-11-12 07:24:15 -06:00
Ben Carman
15bb935769
Use same config option for key manager projects (#2252)
* Use same config option for key manager projects

* Use BIP39KeyManager.initialize
2020-11-11 12:18:02 -06:00
Scala Steward
ea23296906
Update sbt-mdoc to 2.2.12 (#2253) 2020-11-11 10:20:29 -06:00
Ben Carman
cc42849864
Use New Oracle TLVs in DLCOracle (#2162)
* Update Oracle to use new TLVs

* Rename things to use new names, scaladoc, small clean ups

* Add descomposition tests, docs, sign numbers outside of range
2020-11-10 06:08:43 -06:00
Ben Carman
ce9fbb0807
Analyze PSBT function (#2240)
* Analyze PSBT function

* Add to tests

* Add docs

* Add more functions

* Fix compile issues

* Fix compile issue
2020-11-09 15:15:32 -06:00
Scala Steward
35aae036f0
Update javafx-base, javafx-controls, ... to 16-ea+4 (#2249) 2020-11-09 11:02:22 -06:00
Scala Steward
6538a14097
Update scalatest to 3.2.3 (#2250) 2020-11-09 08:51:16 -06:00
Ben Carman
e830547773
Use PSBT type in bitcoind calls (#2242) 2020-11-09 08:50:48 -06:00
Ben Carman
e4194220c1
Update Oracle TLVs (#2185)
* Update Oracle TLVs

* Change string size to be BigSizeUInt

* Move nonces to oracle event tlv

* Introduced EventDescriptor tests and NumericEventDescriptor methods to query possible outcome data

* Added contains function

* Added tests for containsToPrecision

* Remove EventDescriptor.outcomes and other related fields

* remove unused formatNum method

* Address code review from Ben

* Move oracle pub key to announcement

Co-authored-by: nkohen <nadavk25@gmail.com>
Co-authored-by: christewart <stewart.chris1234@gmail.com>
2020-11-07 16:26:21 -06:00
Ben Carman
641b2236d6
Let wallet sign PSBTs (#2236)
* Let wallet sign PSBTs

* Add example to docs

* Add logs and test case
2020-11-07 09:25:59 -06:00
Scala Steward
a6156cd2f3
Update scalacheck to 1.15.1 (#2243) 2020-11-07 09:24:56 -06:00
Ben Carman
aaf1a81d4c
Bitcoind RPC Multi-wallet support (#2231)
* Bitcoind RPC Multi-wallet support

* Add to docs
2020-11-07 09:24:09 -06:00
Ben Carman
7530a13830
Add listreservedutxos cli command (#2247) 2020-11-07 09:08:33 -06:00
Chris Stewart
add6b495b3
Add release notes directory similar to what bitcoin core does, docume… (#2246) 2020-11-06 12:04:32 -06:00
Scala Steward
30cd7ed0b0
Update sbt-bloop to 1.4.5 (#2241) 2020-11-06 07:00:55 -06:00
Ben Carman
42e9cbb1f2
Make aesPassword option for wallet config (#2217)
* Make aesPassword option for wallet config

* Add to docs

* Make AesPassword optional

* Small touchups

* Fix for oracle server

* Fix docs

* Increase code coverage
2020-11-06 07:00:18 -06:00
Ben Carman
c08379b236
Decode PSBT function (#2237)
* Decode PSBT function

* Add test
2020-11-06 06:56:46 -06:00
Scala Steward
497e33c1a3
Update scodec-bits to 1.1.21 (#2239) 2020-11-05 15:18:28 -06:00
Scala Steward
3ba3ea6125
Update sbt-mdoc to 2.2.11 (#2238) 2020-11-05 14:01:16 -06:00
Ben Carman
7b72d82440
Make BIP 39 password a config option (#2234) 2020-11-05 07:36:02 -06:00
Scala Steward
02eb3b8805
Update sbt-ci-release to 1.5.4 (#2235) 2020-11-05 07:34:07 -06:00
Chris Stewart
8a148357d5
2020 11 02 cleanup (#2233)
* Cleanup a bunch of imports in test

* Use @nowarn annotation for testing things that are deprecated

* Fix base58 test

* Cleanup crypto-test

* Use scala collection compat dependency to get access to the @nowarn annotation on scala 2.12.x

* Rework more scala 2.13.x compile failures in chain-test and key-manager-test

* Optimize imports for entire project

* Fix nits
2020-11-03 11:07:04 -06:00
Ben Carman
641538440f
Fee Provider from config (#2219)
* Fee Provider from config

* Use block targets, add docs

* Add FeeProviderFactory
2020-11-03 09:06:18 -06:00
Ben Carman
7c887cc144
Move newer functions to common rpc interface (#2230) 2020-11-02 18:25:39 -06:00
Ben Carman
a5621f5f56
Add bitcoind functions for load and unload wallet (#2229) 2020-11-02 07:41:37 -06:00