Commit graph

2763 commits

Author SHA1 Message Date
Chris Stewart
d6f275b359
Redo release notes draft as we rewrote the git history (#3011) 2021-05-03 06:31:30 -05:00
benthecarman
52f609e235
Use bitcoind v0.21.1 (#3006) 2021-05-03 06:30:46 -05:00
Chris Stewart
43d9f05d9a
Reduce workers from 2 -> 1 (#3007) 2021-05-02 10:42:24 -05:00
benthecarman
682a759977
Fix wallet v11 postgres migration (#3009) 2021-05-02 10:27:07 -05:00
Chris Stewart
a2911f31ed
Fix race condition with BitcoindChainHandlerViaZmqTest (#2990)
Turn off logging again

Try to move things around even more to make sure zmq is started

Turn logging level down to ERROR to hopefully get some meaningful output

Adjust both valdiation & ChainHandler to be ERROR level logging

switch zmqpubrawblock to be the port we know is free

Reduce logging to WARN

Bump bitcoind max retries to 120

Fix rebase

Revert logging

Remove some noisy logs

Restore logs to trace level

Add explicit tag
2021-05-01 13:11:13 -05:00
Scala Steward
e7d34a9ba9 Update metrics-core to 4.1.21 (#3003) 2021-05-01 06:41:52 -05:00
Chris Stewart
38baea5e24 refactor BitcoindRpcTestUtil test methods to take ZmqConfig rather than zmqPort (#3002) 2021-04-30 10:59:16 -05:00
Chris Stewart
f792fb3480 Fix database pool name for postgres database connection pools (#2997)
* Fix database pool name for postgres database connection pools

* Add timestamp to pool name
2021-04-30 06:38:37 -05:00
Scala Steward
56d177bb67 Update javafx-base, javafx-controls, ... to 17-ea+8 (#2978) 2021-04-29 16:45:43 -05:00
Chris Stewart
84661bd122 Refactor BitcoinSRunner to use StartStop[Async] (#2986)
* Refactor BitcoinSRunner to use StartStop[Async]. This makes it easier to have a uniform interface to write for destruction code in BitcoinSRunnerTest

* Fix other ServerRunTest to cleanup after itself
2021-04-29 16:43:15 -05:00
benthecarman
b874c1c54d Add Lnd macaroon to GRPC client settings (#2996)
* Add Lnd macaroon to GRPC client settings

* Move to val
2021-04-29 14:12:21 -05:00
Chris Stewart
0f8903e67e Upgrade to scalac 2.12.13 (#2509)
* Bump to 2.12.13

* Bump secp256k1jni.sbt
2021-04-29 09:15:36 -05:00
benthecarman
bf831ae32e Fix lockunspent RPC (#2984)
* Fix lockunspent RPC

* Fix test
2021-04-29 07:57:14 -05:00
Chris Stewart
77cd94ac41 2021 04 27 wallet fixtures config (#2980)
* Refactor MultiWalletTest to actually shutdown the walletAppConfigs

* Remove 'implicit' modifier from getFreshWalletConfig. This is a problem as it can be used implicitly to bind resources (threads, files etc) that need to be cleaned up. Since it is implicitly passed, it is very hard to remember to clean up these resources

* Cleanup TrezorAddressTest

* Remove unecessary BitcoinSWalletTest.afterAll()

* Fix docs

* Removal of datadir race condition

* Cleanup nodeTest to shutdown the transitive chainAppConfig required by NodeAppConfig

* remove experimental tag on NeutrinoNodeTest

* Remove extra line

* Cleanup after BitcoindChainhandlerViaZmqTest

* Push to github to force re-run of CI 2
2021-04-29 06:30:58 -05:00
benthecarman
6fbaf9f9ce Add estimate fee cli command (#2983) 2021-04-28 16:43:20 -05:00
Chris Stewart
93822c71ec Make sure call ci matrixs run on java11 (#2985) 2021-04-28 16:21:09 -05:00
Scala Steward
e6d78c7c08 Update sbt-scoverage to 1.7.0 (#2982) 2021-04-28 11:55:59 -05:00
Chris Stewart
991ce38208 Use release flag rather than target flag as that is what is intended (#2976)
* Use release flag rather than target flag as that is what is intended

* add comment

* Fix usage of URI that doesn't work -release 8
2021-04-28 07:01:09 -05:00
Chris Stewart
85fed08c58 Reduce pg connections from 300 -> 50 in test cases (#2974)
* Reduce pg connections from 300 -> 50 in test cases

* Reduce connection count to 25

* Push to github to force re-run of CI

* Switch explorer over to prod for now as test is down to get CI passing

* Reduce shared buffers memory size

* Push to github to force re-run of CI 2
2021-04-28 06:22:56 -05:00
benthecarman
e3017fd17d Peer Message Receiver Refactor (#2938) 2021-04-27 15:54:44 -05:00
Chris Stewart
73939a15fc Call WalletAppConfig.stop() when destroying wallet in test fixtures (#2975)
* Fix bug introduced in PR 2597, we need to explicitly call WalletAppConfig.stop() now rather than transitively calling it via Wallet.stop()

* Fix calls to wallet.stop() -> wallet.walletAppConfig.stop() in BitcoindBlockPolling,BitcoindBackend. Also add some explicit type annotations
2021-04-26 15:48:33 -05:00
Chris Stewart
279b93f9e0 Rework P2SHScriptSignature.isStandardNonP2SH() (#2963)
* Take ben's suggestion for parsing the entire tx hex

* Add assertion that the secondSPK is NOT a P2SHScriptPubKey, revert the classification of P2SHScriptPubKey in P2SHScriptSignature.isStandardNonP2SH()

* Revert conditionalSPK match logic

* Fixed ConditionalScriptPubKeyTest.scala (#32)

Co-authored-by: Nadav Kohen <nadavk25@gmail.com>
2021-04-26 12:46:50 -05:00
Chris Stewart
3483a461f1 Don't wrap pg.close() in a Try and then do nothing with it, propogate the exception (#2972) 2021-04-26 09:45:19 -05:00
Chris Stewart
db45ef9ca2 Name each database connection pool uniquely (#2973) 2021-04-26 09:40:24 -05:00
Chris Stewart
a27d4acd9f Get FilterSync test working with cached bitcoind in chainTest project (#2952)
* Get FilterSync test working with cached bitcoind in chainTest project

* Small refactor to be DRY

* Fix docs

* Refactor ChainSyncTest to use 1 cached bitcoind, as a by product add ChainWithBitcoindNewestCachedUnitTest

* Remove unecessary mixin trait

* Fix missing ChainWithBitcoindNewestCachedUnitTest.afterAll()

* Reduce thread pool size for akka's internal dispatcher in unit tests from 2 -> 1. Same with the blocking dispatcher

* Add comment
2021-04-26 07:41:30 -05:00
Scala Steward
0cad0edaaf Update metrics-core to 4.1.20 (#2958) 2021-04-26 07:19:03 -05:00
benthecarman
c7b717fa91 Allow HttpFeeRateProvider to have a specified return type (#2970) 2021-04-26 06:45:34 -05:00
Scala Steward
23d77b2f43 Update sbt to 1.5.1 (#2971) 2021-04-26 06:44:54 -05:00
benthecarman
eab5e51f34 Fix ExplorerEnv from string (#2968) 2021-04-26 06:20:19 -05:00
benthecarman
7b600bb5ba Add get oracle name to explorer client (#2969) 2021-04-26 06:19:14 -05:00
Scala Steward
a194adba98 Update scalafx to 16.0.0-R22 (#2942) 2021-04-25 16:39:07 -05:00
Scala Steward
00efd8bccc Update scala-java-time to 2.2.2 (#2941) 2021-04-25 16:38:47 -05:00
Chris Stewart
9ecea9f710 2021 04 24 bitcoin s scripts (#2961)
* Add new app/scripts project which is meant to store useful bitcoin-s scripts

* Add ScanBitcoind with an example of counting segwit txs between a range

* Fix bug of creating a new actor system everytime BitcoindRpcClient.apply(instance) is called

* Add BitcoindRpcClient.fromVersionNoSystem()

* Take ben's suggestions

* Fix compile

* Rework P2SHScriptSignature.isStandardNonP2SH() to account for nesting p2sh script inside of it

* fix compile on java8

* Enable app packaging in scripts project
2021-04-25 14:03:22 -05:00
Chris Stewart
27afb66220 2021 04 23 issue Move rebroadcast scheduling into WalletAppConfig (#2957)
* Move startRebroadcastScheduler() and stopRebroadcastRescheduler() into WalletAppConfig

* Add logs for wallet rebroadcast task
2021-04-24 08:57:36 -05:00
benthecarman
07e0b19ec6 Add GetTransactions funciton to lnd (#2959) 2021-04-23 21:38:59 -05:00
Chris Stewart
e064cd77ea Fix missing teardown code for MultiWalletRpcTest (#2946) 2021-04-23 09:31:12 -05:00
Scala Steward
27752062d4 Update postgresql to 42.2.20 (#2945) 2021-04-23 09:30:15 -05:00
Nadav Kohen
acac751c5b Updated links in adaptor signature doc (#2950) 2021-04-23 09:17:59 -05:00
Chris Stewart
16538980e3 Fix missing super.stop() to shutdown DbAppConfig db connection pool (#2943)
* Fix missing super.stop() to shutdown DbAppConfig db connection pool inside of all DbAppConfig subclasses that override stop()

* Fix import

* Remove implicit modifier to NodeUnitTest.getFreshConfig(), make sure we are shutting down chainAppConfig inside NodeUnitTest

* Remove chainTest subclasses implementing ActorSystem, make sure we do correct cleanup in ChainUnitTest

* Decouple CachedChainAppConfig & CachedAppConfig. When using only one sub module in the CachedAppConfig, teardown may fail as the other modules might not be started such as using chainAppConfig in chainTest, BitcoinSAppConfig.stop() requires us to call nodAppConfig.stop() first, which isn't started.

* Push to github to force re-run of CI 4
2021-04-23 08:21:56 -05:00
benthecarman
cbfbdd17ba Call .hex on all txIds and blockhashes in logs for TxProcessing (#2939) 2021-04-21 19:48:00 -05:00
Chris Stewart
0bf6df77a5 Update scalatest + scodec deps (#2937) 2021-04-21 13:26:05 -05:00
Chris Stewart
c95c0f9706 Move wallet scheduler into WalletAppConfig (#2933)
* Move wallet scheuler into WalletAppConfig, use scheduler.shutdownNow() so we actually shutdown the scheduler rather than wait for all queued tasks to finish executing before shutting down

* Fix typo

* Move rescan thread pool in to walletAppConfig, shut it down on wallet shutdown

* Fix compile
2021-04-21 11:06:29 -05:00
Nadav Kohen
7fd9aca304 Add Schnorr and Adaptor Secp Bindings and Update Adaptor (#2885)
* Replaced secp256k1 with secp256k1-zkp as submodule pointing to my java-bindings branch

* Built new binaries for schnorr signing and adaptor signing and integrated into LibSecp256k1CryptoRuntime

* Added public key compression function with tests, removed old adaptor signature point serializers

* Implemented ECDSA adaptor signatures in scala according to the most recent spec

* Added static test vectors for adaptor signing from spec

* Moved bouncy castle adaptor signing tests to .jvm

* Added scaladocs and responded to nits

* Added scaladocs with legends to spec naming

* Responded to Ben's review

* Fixed scala 2.12 compile issue

* Fixed BouncyCastle secKeyVerify

* Updated add-to-jni build instructions

* Updated secp256k1-zkp to target bitcoin-s-master

* Add windows binary (#14)

* Added Mac OS binaries

Co-authored-by: benthecarman <benthecarman@live.com>
2021-04-21 09:42:43 -05:00
Chris Stewart
13fc3c2b4e 2021 04 18 Reset txo state when overwriting spendingTxId (#2919)
* Add invariant to spendingInfoDb to that requires if the spendinginfodb is in a TxoState.spentStates, the SpendingInfoDb.spendingTxIdOpt is defined

* Remove unused SpendingInfoDAO.updateTxoState()

* Fix bug that doesn't revert TxoState to TxoState.BroadcastSpent when overwriting the spendingTxId

* Remove unecessary transition from TxoState.Reserved -> TxoState.PendingConfirmationsReceived inside of processSpentUtxos()

* Update TransactionProcessing.markAsSpent() to treat TxoState.PendingConfirmationsSpent and TxoState.ConfirmedSpent the same way

* Remove unecessary comment
2021-04-21 07:21:42 -05:00
Scala Steward
27992ed37d Update sbt-mdoc to 2.2.20 (#2930) 2021-04-20 18:35:15 -05:00
benthecarman
38fdbb33c4 Add test for tx that doesn't originate from wallet (#2932) 2021-04-20 18:34:38 -05:00
benthecarman
105942efa2 Use filters for bitcoind backend syncing if available (#2926)
* Use filters for bitcoind backend syncing if available

* Start bitcoind polling after sync is done

* Fix compile issue and test
2021-04-20 17:28:23 -05:00
Chris Stewart
de5f7fc7f9 Reduce number of threads in postgres connection pool for tests (#2931)
* Reduce number of threads in postgres connection pool from 10 -> 2

* Try reducing to just 1 thread
2021-04-20 12:47:28 -05:00
Chris Stewart
136d6f50f9 2021 04 19 Zip Bitcoin-s datadir (#2927)
* Fix bug where we weren't closing zip file

* Add filter for chaindb.sqlite

* Fix rebase
2021-04-20 10:30:15 -05:00
Scala Steward
7a73dc5cbb Update sourcecode to 0.2.6 (#2928) 2021-04-20 07:50:09 -05:00