Commit graph

4032 commits

Author SHA1 Message Date
Scala Steward
473664f932
Update junixsocket-core to 2.6.2 (#4981) 2023-02-11 21:59:30 -06:00
Chris Stewart
56ae02918c
2022 12 05 issue 4904 (#4917)
* Switch newest version to v24

* Turn off logging

* Empty commit

* Remove comment

* Empty commit

* Empty commit
2023-02-11 17:21:13 -06:00
Chris Stewart
b329c3670e
Add rpc for syncwithvalidationinterfacequeue, use it in NodeUnitTest.syncNeutrinoNode (#4983) 2023-02-11 14:32:59 -06:00
Scala Steward
0ff1370bf9
Update postgresql to 42.5.3 (#4972) 2023-02-10 15:06:42 -06:00
Scala Steward
2445e4fa8b
Update sqlite-jdbc to 3.40.1.0 (#4969) 2023-02-10 15:06:07 -06:00
Scala Steward
0848cb6478
Update client3:core to 3.8.11 (#4977) 2023-02-10 14:58:08 -06:00
Scala Steward
79476a6231
Update scalapb-runtime to 0.11.13 (#4978) 2023-02-10 14:57:19 -06:00
Scala Steward
7d749f271b
Update sbt-native-packager to 1.9.14 (#4980) 2023-02-10 14:55:55 -06:00
Chris Stewart
c7febc1ef0
Segregate P2PClientTest and P2PClientActorTest (#4974)
* Segregate P2PClientTest and P2PClientActorTest to make it easier to test the actor

* Fix cleanup code

* Clean up tables for postgres test case

* Fix BitcoinSAppConfigBitcoinFixtureStarted.afterAll()

* Empty commit

* Add forceNamedWallet parameter to for postgres test cases where we need multiple wallets. This prevents them from writing to the same postgres schema by making unique wallet names

* Cleanup:

* Empty commit
2023-02-06 15:07:18 -06:00
Chris Stewart
7e346e58fe
Refactor NodeTestUtil.awaitBestHash() to take a reference to bitcoind (#4973)
* Refactor NodeTestUtil.awaitBestHash() to take a reference to bitcoind

* Empty commit
2023-02-05 08:59:09 -06:00
Chris Stewart
1391c9497e
Segregate handling of exceptions in fixtures (#4971)
* Segregate handling of exceptions being thrown in test cases vs fixture setup code

* Add log message
2023-02-04 11:56:23 -06:00
Chris Stewart
f6207b1c9f
Add check we have more than 1 peer before we try to syncFromNewPeer() (#4966)
* Add check we have more than 1 peer before we try to syncFromNewPeer()

* Empty commit

* Return failed Future rather than just logging an error
2023-02-03 15:46:24 -06:00
Chris Stewart
76fc3cdc41
Refactor to not throw an exception is node is already syncing (#4970)
* Refactor to not throw an exception is node is already syncing

* Refactor method name
2023-02-03 12:57:19 -06:00
Chris Stewart
3bc89c680f
Fix case where syncCompactFilters is called but filters but no sync peer is set (#4965) 2023-01-31 06:42:55 -06:00
Scala Steward
7043c95800
Update play-json to 2.9.4 (#4959) 2023-01-30 11:44:45 -06:00
Scala Steward
853bd2387e
Update sbt-mdoc to 2.3.7 (#4964) 2023-01-30 11:44:26 -06:00
Chris Stewart
c5983730bb
2023 01 10 refactor peermanager (#4950)
* Make PeerManager.finder private

* Make PeerManager.supervisor private

* Write unit test to see if default peer is added to PeerManager

* Use withNeutrinoNodeUnstarted fixture

* Get unit tests passing

* Add println to try and debug CI

* Add more println

* more println

* Adjust nodeTest / parallelExecution = false

* Try to make error logged to figure out why failure is happening on CI

* Adjust log level to ERROR

* Add catch to try and log failure messages

* Add log for sending messages to peers

* Try to increase threadpool size to see if we are deadlocking

* Add more logs

* Add another log to detect where failure is

* Try using Actor.tell() with explicit ActorRef.noSender

* Very detailed logging

* Remove duplicate method from rebase

* Revert things

* Revert build.sbt

* Empty commit

* Bump timeout

* Empty commit to run CI

* Revert more files
2023-01-27 10:43:50 -06:00
Chris Stewart
60907a7c17
2023 01 25 mv handling network received msg (#4961)
* Move handle network received message into awaitNetworkRequest() context

* Fix bug where I wasn't wrapping in NetworkMessageReceived

* revert logging

* remove more uncessary logs

* Empty commit
2023-01-25 13:38:39 -06:00
Chris Stewart
dd08dedb41
2023 01 24 small changes from pr 4950 (#4958)
* Pull things over from 4950 that shouldn't cause issues to reduce size of 4950

* Reduce timeout for processing a batch of messages from 1000 seconds -> 60 seconds

* scalafmt

* Empty commit
2023-01-25 08:31:57 -06:00
Chris Stewart
dfe92d2ba4
Remove expectTimeout Await.result() (#4957) 2023-01-23 12:30:36 -06:00
Chris Stewart
4e4c6d03f1
Remove Await.result() in initializationTimeoutCancellable (#4956) 2023-01-23 09:00:38 -06:00
Scala Steward
a544ce0287
Update sbt-native-packager to 1.9.13 (#4953) 2023-01-19 17:16:23 -06:00
Scala Steward
4b4f6c8b9f
Update sbt-native-packager to 1.9.12 (#4952) 2023-01-17 11:20:49 -06:00
benthecarman
8bd10d0f40
Correctly handle witness v1+ spks in fallback addresses (#4949) 2023-01-12 11:39:56 -06:00
Scala Steward
bfb7469209
Update client3:core to 3.8.8 (#4948) 2023-01-11 09:52:11 -06:00
Scala Steward
06a8e15e79
Update gson to 2.10.1 (#4945) 2023-01-09 14:35:29 -06:00
Scala Steward
642fad6fe4
Update client3:core to 3.8.7 (#4946) 2023-01-09 14:35:17 -06:00
Scala Steward
c729c906a1
Update scalatest to 3.2.15 (#4947) 2023-01-09 14:34:59 -06:00
Chris Stewart
9646994a99
Encapsulate PeerData.client (#4944) 2023-01-09 11:56:38 -06:00
Chris Stewart
3a8eff8feb
Some cleanups in the node project (#4941) 2023-01-07 07:33:57 -06:00
Chris Stewart
8f4ed4ac83
Refactor to use NodeTestUtil.awaitSync() (#4942) 2023-01-06 15:57:07 -06:00
Chris Stewart
7ed62ceeba
Upgrade sbt to 1.8.2 (#4940) 2023-01-06 10:50:57 -06:00
Chris Stewart
d297311814
Catch non RescanTerminatedEarly errors when rescan is terminated with an exception (#4939) 2023-01-05 12:40:50 -06:00
Scala Steward
7e8002f626
Update client3:core to 3.8.6 (#4938) 2023-01-04 09:45:22 -06:00
Chris Stewart
09d53460a1
Implement ability to cancel background task for querying peer with specific services (#4937)
* Implement ability to cancel background task for querying peer with specific services

* Cancel scheduled job when promise is completed
2023-01-02 11:39:13 -06:00
Chris Stewart
a7930657f9
Rework logging so that stack traces aren't printed when we receive duplicate data over the p2p network (#4936) 2022-12-30 14:51:27 -06:00
Chris Stewart
e7dd96468d
2022 12 29 issue 4933 (#4935)
* Add unit test

* revert logging levels

* Empty commit
2022-12-30 11:42:58 -06:00
Chris Stewart
746e23cf86
Refactor NodeTestUtil.awaitSync() to check compact filter headers / compact filters as well (#4934) 2022-12-29 10:36:37 -06:00
Chris Stewart
bd79ab0b73
2022 12 12 rm dmh params (#4925)
* WIP

* WIP2

* Get all DataMessageHandlerTest passing

* Get NeutrinoNodeTest passing

* Fix NeutrinoNodeWithUncachedBitcoindTest unit test

* Use chainApi to detect if we are in IBD

* Empty commit

* Revert logging levels
2022-12-28 16:37:28 -06:00
benthecarman
ffee1a804e
Check lnurl pay invoice description hash (#4931) 2022-12-28 09:19:48 -06:00
Scala Steward
48a2a8f5e6
Update metrics-core, metrics-healthchecks, ... to 4.2.15 (#4930) 2022-12-28 06:39:29 -06:00
benthecarman
f8247c427d
Add LNURL writers (#4927) 2022-12-19 07:07:45 -06:00
Chris Stewart
96392edde7
Stop P2PClientActor when we receive Tcp.{ErrorClosed,ConfirmedClosed,Closed,Aborted,PeerClosed} commands (#4926) 2022-12-15 16:45:08 -06:00
Chris Stewart
24c6dc2cdb
Download blocks from random peer if we aren't in IBD (#4924)
* Download blocks from random peer if we aren't in IBD

* scalafmt
2022-12-14 16:49:54 -06:00
Chris Stewart
60998fe2d1
Reduce timeouts for syncing in NodeTestUtil (#4923) 2022-12-14 11:34:50 -06:00
Scala Steward
ba65426ca5
Update sbt-bloop to 1.5.6 (#4915) 2022-12-14 10:21:11 -06:00
Scala Steward
2ae87278cd
Update slf4j-api to 2.0.6 (#4922) 2022-12-14 09:29:29 -06:00
Chris Stewart
0d76a06331
Call handleDataPayloadHelper explicitly on DataMessageHandlerState (#4921)
* Call handleDataPayloadHelper explicitly on DataMessageHandlerState

* revert changes from other PR

* revert logs
2022-12-14 09:28:56 -06:00
Chris Stewart
6293d45a37
Fix synced flag but in DataMessageHandler bug (#4920)
* Fix synced flag but in DataMessageHandler bug

* Make variable name be syncing since that is what it actually represents
2022-12-13 07:40:00 -06:00
Chris Stewart
aab2b274f0
Remove default parameters from DataMessageHandler (#4918)
* Remove default parameters from DataMessageHandler

* Remove syncPeer default parameter
2022-12-12 15:46:34 -06:00