Commit graph

3142 commits

Author SHA1 Message Date
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
Scala Steward
14ea28bfa2
Update akka-grpc-runtime_2.12, ... to 2.1.0 (#3638) 2021-08-31 13:40:01 -05:00
Scala Steward
3c9b30b974
Update scodec-bits to 1.1.28 (#3639) 2021-08-31 13:14:04 -05:00
benthecarman
f2a2874177
Add new invalid BIP 32 test vectors (#3634)
* Add new invalid BIP 32 test vectors

* Make sure priv key isn't zero

* Add comments
2021-08-31 07:59:34 -05:00
user411
11dd28085a
Add debug window button to unreserve all utxos (#3633) 2021-08-30 12:31:38 -05:00
Scala Steward
2d429db60d
Update sqlite-jdbc to 3.36.0.3 (#3630) 2021-08-30 08:15:52 -05:00
Chris Stewart
6e41b76f5b
Make test vector that times out on CI async (#3628) 2021-08-29 19:25:45 -05:00
Chris Stewart
1f35dbdb85
Fix bug where we weren't waiting on a future to complete in for expression (#3627) 2021-08-29 19:08:05 -05:00
Chris Stewart
f5ed232946
Bump fee by more to make sure our fee rate is increasing the test case (#3625) 2021-08-29 18:08:07 -05:00
Chris Stewart
b6ef27eb3e
Move block generation and synchronization of th wallet before clearing utxo/addresses (#3623) 2021-08-29 14:39:13 -05:00
Chris Stewart
bedc152f33
Write unit test for SpendingInfoDAO.upsert() (#3620)
* Write unit test for SpendingInfoDAO.upsert(), match on outpoint rather than id

* Add more explicit error message for failing to clear utxos and addresses
2021-08-29 08:00:05 -05:00
Scala Steward
554869e72a
Update akka-actor, akka-discovery, ... to 2.6.16 (#3574) 2021-08-27 08:15:42 -05:00
Scala Steward
168da1ae1e
Update sbt-mdoc to 2.2.23 (#3613) 2021-08-27 07:58:21 -05:00
user411
55c57c487e
Add CORS handling for running from a local dev server (#3612) 2021-08-27 07:57:36 -05:00
Chris Stewart
0746b14331
Move BitcoindRpcAppConfig into the bitcoind-rpc project (#3610) 2021-08-27 06:43:31 -05:00
rorp
704b02ae6c
Use random ports for pre-packaged Tor daemon (#3604)
* Use random ports for pre-packaged Tor daemon

* fix unit tests

* configurable random ports

* shutdown hook
2021-08-26 13:02:49 -05:00
Chris Stewart
a5f4f9663c
Add BitcoinSServerMain test to connect to bitcoind (#3591)
* Add BitcoinSServerMain test to connect to bitcoind

* Add tor tests

* Fix compile

* Remove println

* Allow to reset BitcoinSServer promise

* Remove println

Co-authored-by: benthecarman <benthecarman@live.com>
2021-08-26 09:08:38 -05:00
benthecarman
184bf415df
More bitcoind backend wallet tests (#3605)
* More bitcoind backend wallet tests

* Use bip39 pass

* Remove database
2021-08-26 08:24:28 -05:00
Scala Steward
0200ae8beb
Update sqlite-jdbc to 3.36.0.2 (#3608) 2021-08-26 06:55:17 -05:00
rorp
4ef1e6bcb6
CI fixes (#3597)
* CI fixes

* fix workflow names

* cleanup unused code

* fix ServerRunTest

* change number attempts to start Node
2021-08-25 15:07:27 -05:00
benthecarman
479f8e249c
Remove unneeded CoreApi (#3599) 2021-08-24 14:17:04 -05:00