Commit graph

2774 commits

Author SHA1 Message Date
Chris Stewart
f0a5833e6b
Fix compiler error (#3035) 2021-05-04 16:32:14 -05:00
Chris Stewart
a55a97ba6f
Optimize shift operations in Number (#3025)
* Optimize shift operations in Number

* Fix imports
2021-05-04 13:35:45 -05:00
benthecarman
f86f90dc32
Add getbalances cli command (#3022)
* Add getbalances cli command

* Add docs

* Locked -> reserved
2021-05-04 12:19:15 -05:00
Aris
507f5c772e
Remove request rejection duplication in ServerRoute (#3010) 2021-05-04 12:17:50 -05:00
Chris Stewart
4381b93afb
2021 05 03 improve release notes (#3019)
* Move things around, remove redundancy

* Add more stuff to release notes

* Finish section paragraphs

* Add caveat about lnd rpc

* Add latest commits
2021-05-03 12:17:31 -05:00
Chris Stewart
d25dff14b4
Add 0.6.0 website (#3020) 2021-05-03 12:17:16 -05:00
Chris Stewart
ff39945777
More release notes updates, mostly add boiler plate (#3018) 2021-05-03 08:35:20 -05:00
Chris Stewart
2e8790f3e5
Add descriptions for new projects (#3016) 2021-05-03 08:13:10 -05:00
Chris Stewart
7dc6acdce6
Add missing list resevedutxos docs (#3015) 2021-05-03 08:08:23 -05:00
Chris Stewart
1339abe410
2021 05 02 m1 secp256k1 natives (#3014)
* Add protoc exception for apples new chip arch. This requires protoc to be built manually as they do not natively ship m1 support yet

* Add osx_arm64 secp256k1 native binaries
2021-05-03 07:41:41 -05:00
Chris Stewart
8ec93c6632
Add protoc exception for apples new chip arch. This requires protoc to be built manually as they do not natively ship m1 support yet (#3013) 2021-05-03 07:11:59 -05:00
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