Commit graph

2660 commits

Author SHA1 Message Date
Ben Carman
8912fcbc82 Fail broadcasting transaction when disconnected (#2336)
* Fail broadcasting transaction when disconnected

* Wait until disconnected

* Move test

* Move to separate file

* Attempt fix

* Make test never have a peer

* Improve reliablity
2020-12-17 13:28:32 -06:00
Ben Carman
52ef1fa185 Add ability to store ExtPrivateKey instead of Mnemonic (#2372)
* Add ability to store ExtPrivateKey instead of Mnemonic

* Use private vals, change name

* Fix docs

* private to km

* Correct scaladocs
2020-12-17 13:25:04 -06:00
Ben Carman
52c21aa618 Fix BitGo fee provider parser (#2381) 2020-12-17 11:47:31 -06:00
Nadav Kohen
f7fdca3e22 DLC Data Structures on Master Cleanup (#2375)
* Moved dlc data structures from commons to core

* Renamed DLC payout curve classes

* Split OutcomeValuePoint up into an ADT

* Added utility for computing Schnorr multiple-signature points

* Replaced tuples in RoundingIntervals with types

* Replaced tuples in DLCPayoutCurve with Indexed

* Fixed a compile bug
2020-12-17 09:09:57 -06:00
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