Commit graph

2406 commits

Author SHA1 Message Date
Ben Carman
1225584526 Multi Wallet support (#2345)
* Multi Wallet support

* Fix Oracle tests

* Fix some CI errors

* Increase KeyManagerAppConfig code coverage

* Add test for multiple seeds in seed folder

* Move things in reference.conf files

* Lower key manager coverage requirement

* Fix postgres test issues

* Create DbAppConfig

* Add some docs, fix hardcoded postgres db name

* Clarify db vs schema

* Add character types

* Fix chaindb in conf

* Always copy default seed

* Remove need for driverName config
2020-12-16 17:27:56 -06:00
Ben Carman
3a7cded566 Require CJDNS starts with 0xFC (#2356) 2020-12-15 14:18:52 -06:00
Ben Carman
ec6e568845 Change CI Status to use Github Actions badge (#2364) 2020-12-15 12:16:14 -06:00
Chris Stewart
2178c7f33b Bump sbt to 1.4.5 (#2358) 2020-12-15 07:42:34 -06:00
Ben Carman
d0d695b0f0 Move CI into indiviual workflows (#2353) 2020-12-14 06:37:09 -06:00
Ben Carman
61d3a14c07 Don't allow fee unit gen to be 0 (#2346)
* Don't allow fee unit gen to be 0

* Fix other 0

* Fix always 0 fee unit gen
2020-12-12 07:34:26 -06:00
Nadav Kohen
b7ffea2525 Pulled down work from adaptor-dlc onto master (#2339)
* Pulled down work from adaptor-dlc onto master

* Reverted some accidental deletions

* Removed unused import

* Added scaladocs

* Responded to Ben's review

* Added some scaladocs and invariants

* Responded to chris' review

* Responded to more review

* Added some comments
2020-12-11 17:32:35 -06:00
Chris Stewart
af4a0baf2d Mask BIP39 password in the BIP39KeyManager (#2350)
* Mask BIP39 password in the BIP39KeyManager

* Add toString test
2020-12-11 16:15:44 -06:00
dependabot[bot]
24c776e453 Bump ini from 1.3.5 to 1.3.7 in /website (#2349)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 06:53:38 -06:00
Scala Steward
1f624cf68d Update scalafx to 15.0.1-R20 (#2348) 2020-12-11 06:52:31 -06:00
Scala Steward
714db630d6 Update sqlite-jdbc to 3.34.0 (#2347) 2020-12-11 06:42:58 -06:00
Scala Steward
42d950aaea Update sqlite-jdbc to 3.32.3.3 (#2342) 2020-12-09 06:27:51 -06:00
Scala Steward
4e6f90c42e Update scalamock to 5.1.0 (#2327) 2020-12-08 09:11:33 -06:00
Scala Steward
bac39065d6 Update sbt-bloop to 1.4.6 (#2316) 2020-12-08 08:14:55 -06:00
Ben Carman
48579851d7 Add latest ProtocolVersion (#2332) 2020-12-08 08:13:42 -06:00
Ben Carman
dd26e51594 Setup Github Actions (#2319) 2020-12-07 13:35:22 -06:00
Ben Carman
e8b4eff734 Have makeOpReturnCommitment use random UTXO selection (#2320) 2020-12-07 13:17:24 -06:00
Chris Stewart
7df02c4198 Start refactoring testkit to allow for specifying a different binary … (#2325)
* Start refactoring testkit to allow for specifying a different binary directory than the sbt default

* Fix BitcoindRpcTestUtil

* Add BitcoindRpcTestClient
2020-12-07 13:14:40 -06:00
Ben Carman
097398499a docs: Fix dependabot warning for highlight.js (#2328) 2020-12-07 09:42:59 -06:00
Ben Carman
6cdde9c0ed docs: Replace Large Range with Digit Decomp (#2331) 2020-12-07 09:42:34 -06:00
Ben Carman
9291d6ec3a Fix P2PClient parsing unknown messages (#2315)
* Fix P2PClient parsing unknown messages

* Use Vector, calculate correct checksum
2020-12-06 13:49:30 -06:00
Ben Carman
8cdddfecde Implement BIP 155 addrv2 messages (#2321)
* Implement BIP 155 addrv2 messages

* Add unit tests
2020-12-06 08:07:57 -06:00
Scala Steward
a334247457 Update sbt-ci-release to 1.5.5 (#2322) 2020-12-06 08:07:05 -06:00
Chris Stewart
b8e0847ff3 Remove hard coded bitcoind version eclair was depending on and switch to latest version of bitcoind (#2324) 2020-12-06 08:06:39 -06:00
Chris Stewart
79a85c04f8 Bump scalac setting in secp256k1jni.sbt to scala 2.12.12 (#2317) 2020-12-04 06:43:05 -06:00
Ben Carman
794f6e073e Fix TLV parsing for non-standard strings (#2312)
* Fix TLV parsing for non-standard strings

* Create function

* Fix oracle migrations

* Forced all TLV strings to be normalized implicitly

* Removed redundant normalization

* Fix oracle

* Bump migration test

* Fix 2.12.12 compile

* Use NetworkElement & StringFactory

Co-authored-by: nkohen <nadavk25@gmail.com>
2020-12-03 12:30:17 -06:00
Scala Steward
a0ec72d152 Update javafx-base, javafx-controls, ... to 16-ea+5 (#2304) 2020-12-02 07:00:19 -06:00
Ben Carman
87e29a9ca9 Add function to validate OracleAnnouncementV0TLV's signature (#2308) 2020-12-02 06:59:44 -06:00
Chris Stewart
ccef8b46d4 trivial: Add a sha256 hash field on all TLV (#2300) 2020-11-30 12:47:10 -06:00
Scala Steward
f2f7fe4396 Update scopt to 4.0.0 (#2298) 2020-11-30 08:38:48 -06:00
Chris Stewart
f586e25699 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
cf5f206856 Update scodec-bits to 1.1.22 (#2296) 2020-11-27 07:48:18 -06:00
Chris Stewart
80d3eaf6d7 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
01cb2e458f Update sbt-mdoc to 2.2.13 (#2291) 2020-11-26 07:44:03 -06:00
Scala Steward
285724da80 Update scala-collection-compat to 2.3.1 (#2290) 2020-11-25 13:51:24 -06:00
Ben Carman
ff90f34c5d 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
197367dc33 Request witness blocks from peers (#2289) 2020-11-23 22:08:03 -06:00
Chris Stewart
6c1992c116 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
a5a8a7b101 Update scala-collection-compat to 2.3.0 (#2285) 2020-11-23 12:06:05 -06:00
Chris Stewart
ad09d1a3df 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
a01dfa91e9 Update sbt to 1.4.4 (#2288) 2020-11-23 06:43:33 -06:00
Scala Steward
912e3cd0c7 Update akka-http, akka-http-testkit to 10.1.13 (#2276) 2020-11-21 07:51:46 -06:00
Ben Carman
fdb2b675e9 Create KeyManagerAppConfig (#2268)
* Create KeyManagerAppConfig

* Fix name

* Use module name
2020-11-19 06:23:26 -06:00
Chris Stewart
1716a73e0e 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
689e2cd8d1 docs: Logback conf command line docs (#2270) 2020-11-17 13:37:48 -06:00
Ben Carman
3780c49096 docs: Add DLC Oracle db conf to docs (#2269) 2020-11-17 12:49:12 -06:00
Chris Stewart
66ec96b1f5 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
a8b1945408 Add helper OracleEventTLVV0.maturation method (#2267) 2020-11-17 06:18:32 -06:00
Scala Steward
0703241c7c Update sbt to 1.4.3 (#2266) 2020-11-16 14:32:31 -06:00
Ben Carman
b6a06d6e9c Fix listEvents in DLCOracle (#2265)
* Fix listEvents in DLCOracle

* Fix migration
2020-11-16 06:32:40 -06:00