Commit graph

3062 commits

Author SHA1 Message Date
Chris Stewart
4e1ace2706 2021 04 18 Use akka streams in BitcoindRpcBackendUtil.syncWalletToBitcoind (#2916)
* Initial implementation of wallet sync with bitcoind with akka streams

* Make BitcoindRpcBackendUtil.startBitcoindBlockPolling use akka streams

* rework BitcoindRpcBackendUtil.syncWalletToBitcoind() to use akka streams
2021-04-19 15:54:34 -05:00
Chris Stewart
19319494cd 2021 04 19 Cleanup after ourselves in postgres tests (#2921)
* Fix missing database shutdown on WalletAppConfig.stop()

* Cleanup BitcoindBlockPollingTest

* Cleanup ProcessBlockTest and all tests that use CachedBitcoind

* Cleanup BitcoindBackendTest

* Cache rescan thread pool rather than creating a new one everytime
2021-04-19 13:58:00 -05:00
Chris Stewart
238c083aad 2021 04 18 wallet received txo state (#2914)
* Add invariant to spendingInfoDb to that requires if the spendinginfodb is in a TxoState.spentStates, the SpendingInfoDb.spendingTxIdOpt is defined

* Remove unused SpendingInfoDAO.updateTxoState()

* Tighten up TxoState -> ReceivedState types we are using in the wallet. The ensures we are talking specific class of states (receiving a txo) rather than accounting for the case of spending and receiving since there is different information required for the spending states

* Add TxoState.ImmatureCoinbase to ReceivedStates
2021-04-18 16:56:08 -05:00
Scala Steward
0d546f3b65 Update javafx-base, javafx-controls, ... to 17-ea+7 (#2911) 2021-04-18 09:12:21 -05:00
Chris Stewart
a3954dbcae 2021 04 17 spendinfodb invariant (#2912)
* Add invariant to spendingInfoDb to that requires if the spendinginfodb is in a TxoState.spentStates, the SpendingInfoDb.spendingTxIdOpt is defined

* Remove unused SpendingInfoDAO.updateTxoState()

* Remove comment

* Make TxoState and explicit parameter for test methods. Most test methods depend on a sample utxo state, so make the caller of the method specify what state they want the txo to be in

* Fix github actions config

* Fix RoutesSpec test
2021-04-18 09:02:49 -05:00
Scala Steward
b5b98492aa Update breeze-viz to 1.2 (#2907) 2021-04-17 17:59:18 -05:00
Chris Stewart
4c859f1ad1 Add timeouts to our CI workflows (#2908) 2021-04-17 17:56:19 -05:00
benthecarman
b1be3347c9 Fix ZMQ Config with bitcoind backend (#2897)
* Fix ZMQ Config for bitcoind backend

* Fix nits
2021-04-13 14:56:28 -05:00
Chris Stewart
be14de459e Fix lnd build warning (#2899) 2021-04-13 09:47:12 -05:00
benthecarman
8b8d5dcc0e Fix conversion from sats/vb to sats/kw (#2895)
* Fix conversion from sats/vbytes to sats/kw

* Add another test
2021-04-12 19:50:18 -05:00
benthecarman
b80b039457 Lnd rpc docs (#2896) 2021-04-12 19:09:59 -05:00
Chris Stewart
5abf399e40 Use markdowns detail tags to collapse optional sections, remove the secp256k1 section on getting-setup.md (#2890) 2021-04-12 05:58:27 -05:00
Chris Stewart
4f1f53e7ad Bump hikari logging interval to 10 minutes (#2888)
* Bump hikari logging interval to 10 minutes

* Change example configuration
2021-04-10 13:51:31 -05:00
Chris Stewart
85fb931cba Implement BIP32Path.fromHardenedString(). (#2886)
* Implement BIP32Path.fromHardenedString(). This will throw exceptions a non hardened path in the string exists

* Do what ben says rather than re-implementing BIP32Path.fromString
2021-04-09 13:19:11 -05:00
Chris Stewart
bb379ecfcf Add docs for using CachedBitcoind (#2880)
* Add docs for using CachedBitcoind

* revert paths in testkit.md to be references to the appropriate scaladoc
2021-04-09 09:43:22 -05:00
Chris Stewart
b6337b834d Bump website dependencies by running yarn update (#2884) 2021-04-09 09:34:21 -05:00
Scala Steward
ce36112da2 Update akka-actor, akka-discovery, ... to 2.6.14 (#2878) 2021-04-08 12:37:10 -05:00
Chris Stewart
17e088d8f0 2021 04 07 first 0.6 release notes (#2872)
* Begin adding 0.6.0 release notes

* Finish sorting
2021-04-08 10:22:30 -05:00
Chris Stewart
3916a0b58e 2021 04 07 issue 2875 (#2879)
* Rework explorer client to use announcement in method names rather than event

* Add to sidebar.json
2021-04-08 10:15:56 -05:00
Chris Stewart
89c2e6c9a9 Add testkit-core.md (#2881) 2021-04-08 10:11:01 -05:00
Scala Steward
112067c905 Update metrics-core to 4.1.19 (#2877) 2021-04-08 07:13:58 -05:00
benthecarman
ac495647d9 Add website url to ExplorerEnv (#2868)
* Add website url to ExplorerEnv

* l -> 1
2021-04-07 15:11:45 -05:00
benthecarman
68a82deac3 Initial DLC Templates (#2847)
* Initial DLC Templates

* Respond to review

* Split up into ContractDescriptorTemplate

* Use match, add invariants
2021-04-07 10:28:44 -05:00
benthecarman
d0629486ab Wallet Rebroadcast Transactions thread (#2711)
* Wallet Rebroadcast Logic

* Use wallet scheduler for address queue rather than it's own thread

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>

* Bump default

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-04-07 08:13:43 -05:00
Chris Stewart
7968b234b7 Rework oracle explorer client to use new api paths (#2866)
* Rework oracle explorer client to use new api paths

* Switch explorer env back
2021-04-06 15:29:30 -05:00
benthecarman
5310efc5aa Fix parsing comments in LndConfig (#2864) 2021-04-06 07:51:32 -05:00
benthecarman
a4454e83a1 Add helper functions for hashing annoucements for SbExplorerClient (#2861) 2021-04-06 06:28:02 -05:00
Chris Stewart
c738f23e58 Fix build warnings that came with sbt 1.5.0 (#2857)
* Fix build warnings that came with sbt 1.5.0

* Fix more deprecation warnings

* Fix more warnings
2021-04-06 06:01:11 -05:00
Scala Steward
a2628cacd1 Update scala-java-time to 2.2.1 (#2862) 2021-04-05 19:36:52 -05:00
benthecarman
825024fa1a Add sendouputs function to lnd rpc (#2858) 2021-04-05 13:56:21 -05:00
benthecarman
d726c498d0 Have BitcoindV21RpcClientTest wait for indexes to sync (#2855) 2021-04-05 07:33:05 -05:00
Scala Steward
89e84fff67 Update sbt to 1.5.0 (#2854) 2021-04-05 07:20:23 -05:00
benthecarman
4055de7690 Inital LND rpc with some tests (#2836)
* Inital LND rpc with some tests

* Fix ZMQ test

* Correct datadirs

* Most tests

* Fix eclair tests

* Make tests less flaky

* Have CI download lnd

* Respond to some review

* Fix ZMQ tests

* Cached bitcoind for lnd tests

* Fix fixtures, bump timeout

* InstanceFactory & ConfigFactory

* Fix compile issue for 2.12.12

* Move factories to core.api.commons
2021-04-05 04:52:56 -05:00
Scala Steward
969dee78f6 Update javafx-base, javafx-controls, ... to 17-ea+6 (#2852) 2021-04-04 08:46:39 -05:00
Chris Stewart
eb9b2de38b Enable scalajsbundler plugin on coreJS (#2853) 2021-04-03 11:36:15 -05:00
benthecarman
3dbeac276e Add ability to delete Oracle signatures (#2851)
* Add ability to delete Oracle signatures

* Respond to review
2021-04-02 13:55:47 -05:00
Chris Stewart
2554665e89 Enable publishing of scalajs artifacts (#2849) 2021-04-02 09:45:44 -05:00
Scala Steward
4d2532538b Update sourcecode to 0.2.5 (#2848) 2021-04-02 08:03:35 -05:00
Chris Stewart
60c1ad1919 Rework the website scaladoc aggregation and website (#2846)
* Rework the website scaladoc aggregation and website publishing to do what the mdoc documentation says

* Add jvm specific projects for asyncUtils & testkitCoreJVM
2021-04-01 11:44:02 -05:00
Chris Stewart
49b6d39ab4 Implement Oracle Explorer Client (#2838)
* WIP

* Get POSt working for creating an announcement

* Add ability POST oracle attestations

* Add docs

* Remove ExplorerMain

* Update workflows to add  oracleExplorerClient/test

* Switch to test so it passes on CI

* Add unit test, switch env to ExplorerEnv.Test

* Remove extra comments

* Add StringFactory to ExplorerEnv
2021-04-01 10:43:10 -05:00
Chris Stewart
a275668734 Update gitignore file with recommendations from unidoc (#2845) 2021-04-01 10:00:05 -05:00
Scala Steward
832d9308b5 Update scalatest to 3.2.7 (#2843) 2021-04-01 06:08:54 -05:00
benthecarman
fa80f36d2f Get all of Core working with JS (#2826)
* core-test-js-json

* Add SigPointComputer cross compile
Co-authored-by: Nadav Kohen <nadavk25@gmail.com>

* Fix java.time for scalajs

* InetAddress for scalajs

* Fix linking errors in coreTestJS

* Easy fixes

* InetAddress Tests

* Update micropickle, fix exact functions

* Get BigSizeUIntTest working with upickle

* Fix exact funcs

* Update Base58Test with upickle

* Update ScriptSignatureTest with upickle

* Update TransactionTest with upickle

* Update BlockFilterTest with upickle

* Update ScriptInterpreterTest with upickle

* Update MnemonicCodeTest with upickle

* Add InetAddress unit tests

* Fix compile errors

* Get core tests running, not passing

* Sign with js

* Fix PSBTUnitTest

* Fix PBKDF2 for JS

* Use bcrypto's secp256k1 instead of ecdsa

* Fix 2.12.12 compile

* Core tests passing :)

* Test corejs
2021-03-31 15:04:30 -05:00
Scala Steward
6e574931c6 Update sbt-scalajs, scalajs-compiler, ... to 1.5.1 (#2837) 2021-03-31 12:35:00 -05:00
Scala Steward
703f9585ef Update scala-collection-compat to 2.4.3 (#2834) 2021-03-31 07:10:49 -05:00
Scala Steward
a9ccf23366 Update sbt-mdoc to 2.2.19 (#2833) 2021-03-30 06:19:11 -05:00
Scala Steward
c2e054d906 Update scodec-bits to 1.1.25 (#2835) 2021-03-30 06:16:58 -05:00
benthecarman
85ff255df3 Update akka to v10.2.4 (#2832) 2021-03-29 09:59:34 -05:00
Scala Steward
2cc2da9761 Update javafx-base, javafx-controls, ... to 17-ea+5 (#2829) 2021-03-29 06:53:11 -05:00
benthecarman
8cd481650d Fix potential unordered nonces in announcement (#2831) 2021-03-28 11:44:47 -05:00