Commit Graph

3262 Commits

Author SHA1 Message Date
Nadav Kohen
ba713bd98f
Fixed edge case of numeric range computation (#3707) 2021-10-01 13:10:05 -05:00
rorp
6df0354a73
Enable WAL mode for SQLite (#3704)
* Enable WAL mode for Sqlite

* load the jdbc driver
2021-10-01 07:08:02 -05:00
Chris Stewart
26d7f99173
2021 09 30 rename endpoints (#3703)
* Deprecate things with the Event suffix in DLCOracleApi

* Rename classes used in OracleRoutes

* Rename endpoints

* Update docs

* listevents -> listannouncements
2021-09-30 14:22:17 -05:00
Chris Stewart
59e953a1fc
Bump CI runs to use scalac 2.12.15 (#3700) 2021-09-29 13:05:02 -05:00
Chris Stewart
781e77844f
Implement ability to get proper version of BitcoindRpcClient from BitcoindRpcApConfig.clientF (#3699) 2021-09-29 06:43:15 -05:00
Chris Stewart
4e56fb7901
Make it so bitcoind backend exceptions don't get swallowed (#3697)
* Make it so bitcoind backend exceptions don't get swallowed when doing IBD against bitcoind

* Move zmq polling into syncWalletWithBitcoindAndStartPolling() method
2021-09-28 17:55:47 -05:00
Scala Steward
bf16bab881
Update scodec-bits to 1.1.29 (#3698) 2021-09-28 13:54:48 -05:00
rorp
698fe9e800
Add backupwallet and backuporacle endpoints (#3694)
* Add backupwallet and backuporacle endpoints

* respond to the PR comments
2021-09-28 07:46:33 -05:00
Chris Stewart
4a44f9cd58
Run appServerTest on both windows and mac (#3609)
* Run appServerTest on both windows and mac

* Add just mac test name

* Add downloadBitcoind task to windows matrix

* Make exception easier to be hit

* Remove deleting of directory as that shouldn't be needed

* Add support for not running bitcoind in test suites as a daemon on windows

* Fix bug where i forgot to re-add daemon config
2021-09-27 10:25:48 -05:00
Chris Stewart
2191eb2049
Add 'getversion' endpoint to fetch the version from the backend (#3689)
* Add 'getversion' endpoint to fetch the version from the backend

* Use EnvUtil.getversion
2021-09-27 07:42:21 -05:00
benthecarman
26efbe783e
Add lnd close channel function (#3692)
* Add lnd close channel function

* Add abandonChannel
2021-09-26 07:18:13 -05:00
benthecarman
4f65022472
Fix signet parsing of LnInvoices (#3691) 2021-09-26 07:14:03 -05:00
benthecarman
e6e1fbdab8
Fix typo for signet LndInstances (#3690) 2021-09-26 07:13:35 -05:00
Scala Steward
f9cfd05414
Update postgresql to 42.2.24 (#3687) 2021-09-23 13:50:00 -05:00
Scala Steward
c17cc86ad6
Update sbt-ci-release to 1.5.9 (#3685) 2021-09-22 13:38:50 -05:00
Chris Stewart
bfbde2abaa
Add appCommonsTest to windows test matrix (#3683) 2021-09-22 11:16:16 -05:00
Scala Steward
c53b96c77f
Update native-lib-loader to 2.4.0 (#3682) 2021-09-22 08:36:49 -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
dependabot[bot]
9b429e98da
Bump prismjs from 1.24.0 to 1.25.0 in /website (#3680)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-21 07:08:15 -05:00
Chris Stewart
4a5265801c
Allow for enternal entropy to be passed into a docker container for the appServer and oracleServer (#3679) 2021-09-20 13:27:20 -07:00
Scala Steward
dc56c69c6a
Update scalafx to 16.0.0-R25 (#3676) 2021-09-20 10:13:14 -05:00
Scala Steward
b80710eaaf
Update native-lib-loader to 2.3.6 (#3678) 2021-09-20 09:48:28 -05:00
Scala Steward
619fd5a1fb
Update scalatest to 3.2.10 (#3675) 2021-09-20 09:48:12 -05:00
benthecarman
b6f28456e2
Add functions for Lease & Release output functions (#3677)
* Add functions for Lease & Release output functions

* Add test
2021-09-19 07:20:39 -05:00
Chris Stewart
132479d271
Implement ability to provide external entropy to bitcoin-s (#3672)
* Encapsulate initialization of DLCOracle.start() method

* Use internal WalletAppConfig.kmConf rather than passing in custom key manager parameters

* Add KeyManagerAppConfig.defaultAccountType

* Get all tests passing besides TrezorAddressTest

* Get TrezorAddressTest passing with provided entropy

* Add unit test to make sure we can always derive the seed

* Get docs compiling

* Fix dlcWalletTest test cases

* Add more test cases to keymanager

* Add the new configuration to the example configuration

* Add more test cases

* Remove coverage on 2.12 as it isn't accurate

* Rework DLCOracleAppConfig.start() to call kmConf.start() so the oracle can use entropy provided via bitcoin-s.conf
2021-09-18 09:49:11 -05:00
Scala Steward
3c64af39d9
Update sbt-scoverage to 1.9.0 (#3671) 2021-09-18 07:18:34 -05:00
user411
27d4c09d37
Add sha256 announcement/event ids on oracleServer 'getevent' for use in UI (#3673) 2021-09-17 12:32:01 -05:00
Scala Steward
11c3626fac
Update sbt-bloop to 1.4.9 (#3664) 2021-09-15 07:11:50 -05:00
benthecarman
85eb2d5eb4
Fix approximateUtxoSize calculation for p2wpkh (#3669) 2021-09-15 07:11:15 -05:00
Scala Steward
87b8c4a138
Update scala-library to 2.12.15 (#3668) 2021-09-14 18:02:13 -05:00
Chris Stewart
9b269f0e5e
Change userId to work with umbrel (#3667) 2021-09-14 15:14:38 -07:00
Chris Stewart
af96843e69
Try to fix race condition when shutting down bitcoind connection pool (#3665)
* Try to fix race condition when shutting down bitcoind connection pool and seeing if bitcoind is still alive

* Add cases for BitcoindInstanceRemote and BitcoindInstanceLocal when determining isStartedF
2021-09-14 15:14:20 -05:00
Chris Stewart
db46e35172
Fix case where we forget to correctly assign currentPeerMsgHandlerRecv (#3662)
* Fix case where we forget to correctly assign currentPeerMsgHandlerRecv when we disconnect

* Make handleNodeCommand() so we handle P2PClient.CloseCommand

* Enable DEBUG logging to see what is happening on CI

* Add PeerMessageReceiverTest

* Add InitializeDisconnectDone

* Bump timeout on condition
2021-09-14 06:38:38 -05:00
benthecarman
fd6e0864ac
LndRpcClient: Fix listUnspent only showing unconfirmed utxos (#3663) 2021-09-14 05:51:13 -05:00
benthecarman
74777a9683
Add conversion utils for LndRpcClient (#3660) 2021-09-13 07:32:55 -05:00
Scala Steward
911fd3429d
Update scala-async to 1.0.1 (#3656) 2021-09-11 08:26:15 -05:00
Scala Steward
576680a419
Update logback-classic to 1.2.6 (#3655) 2021-09-11 08:25:51 -05:00
benthecarman
099e4469b4
Add ordering of funding inputs to DLC Wallet (#3647)
* Add ordering of funding inputs to DLC Wallet

* Fix tests
2021-09-11 08:25:24 -05:00
benthecarman
5089e901bb
Add wallet signing functions (#3658) 2021-09-11 07:35:43 -05:00
Chris Stewart
cd9db4f4a9
Adjust the permissions of the statup script for the oracle server on docker so that any user can run the script (#3654) 2021-09-09 16:13:24 -05:00
benthecarman
f3da45c504
Add CurrencyUnits.fromLong (#3653) 2021-09-09 06:20:59 -05:00
Chris Stewart
0fb2cd0149
Remove implicit conversions from BitcoinSAppConfig -> {WalletAppConfig,ChainAppConfig,NodeAppConfig} etc (#3652) 2021-09-08 13:54:18 -05:00
Chris Stewart
e17ea32faa
Update base docker image to openjdk:16-slim (#3650)
* Update base docker image to openjdk16 alpine

* Update docker base image to openjdk:16-slim
2021-09-07 15:08:47 -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
Shruthii RG
d53f164478
BitcoindRpcClient Improvements (#3600)
* Changes in bitcoind-rpc module

* Get things compiling

* Implement BitcoindInstanceRemote & BitcoindInstanceLocal

* Fix doc compile

* bitcoind remote instance test

* rename BitcoindInstanceRemote

* Scalafmt

* Applied requested changes(except one)

* implemented fromConfigFile and fromDataDir for BitcoindInstanceRemote

* implemented fromNetworkVersion

* BitcoindInstanceRemote changes

* Get things compiling

* Add implict type parameter to InstanceFactory

* Fix recursive reference of version <-> getNetworkInfo

* bug fix

* bug fix 2

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-09-07 08:49:01 -05:00
benthecarman
2c8a2b0e32
Fix testkit depending on slf4j twice (#3644) 2021-09-05 10:39:11 -05:00
benthecarman
515e85b1c5
Decode DLC messages cli commands (#3636)
* Decode DLC messages cli commands

* Move decoding to picklers, add contractInfo decoder

* Add decoding examples
2021-09-03 09:46:09 -05:00
benthecarman
40f89af597
Give help messages for DLC cli commands and document them (#3642) 2021-09-02 08:18:17 -05:00
benthecarman
ba21c24d6f
Give funding txid in DLC Signed state (#3640)
* Give funding txid in DLC Signed state

* Improve test
2021-09-02 08:17:20 -05:00
benthecarman
656e9b1b5d
Sort DLC table by last updated (#3607)
* Sort DLC table by last updated

* Add LastUpdatedDb

* Make visible

* Fix compile

* Add time, fix sorting

* Switch to local time

* fix compile

* Fix test

* Fix postgres migration

* Specify zoneId
2021-08-31 14:27:36 -05:00