Commit Graph

4304 Commits

Author SHA1 Message Date
Chris Stewart
a3e1267484
2023 12 30 isfiltersync bug (#5337)
* Fix another bug with isFiltersSynced()

* Fix compile

* Cleanup uncessary checks

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to re-run CI
2023-12-31 14:06:21 -06:00
Chris Stewart
06dfd9cea4
Rework randomPeerWithServices() to be inside of NodeState (#5331)
* Rework randomPeerWithServices() to be inside of NodeState, try to move more state into NodeState

* Don't try to sync from peer waitingForDisconnection

* Add PeerWithServices, keep track of ServiceIdentifier in PeerManager and NodeState

* Try to make reorg test more reliable

* Empty commit to run CI
2023-12-29 14:47:29 -06:00
Chris Stewart
f1775c46d3
Simplify ChainHandler.nextFilterHeaderBatchRange() (#5336)
Get implementation working for walking backwards to find best filter associated with our stopBlockHeaderDb
2023-12-29 10:20:24 -06:00
Chris Stewart
af361167a4
Refactor ChainHandler.findNextHeader() to only take 1 blockchain (#5335)
* Refactor ChainHandler.findNextHeader() to only take 1 blockchain as a parameter

* Empty commit to re-run CI
2023-12-28 17:32:28 -06:00
Chris Stewart
d983a1bac4
2023 12 24 Make filter headers / filters sync work with block header reorgs (#5333)
* Rework ChainApi.nextBlockHeaderBatchRange() to take stopHash parameter, get chainTest/test passing

* WIP: Refactor ChainApi.nextFilterHeaderBatchRange()

* Finish ChainApi.nextFilterHeaderBatchRange() refactor, get all tests passing except reorg related tests in nodeTest

* Get NeutrinoNodeTest reorg test case working

* Improve flaky test

* Cleanup

* Switch sync check to bitcoinds(1)

* Empty commit to run CI

* Implement batchSize tests in ChainHandlerTest

* Rework ChainHandlerTest to not assume we have the genesis filter header / filter inserted into the database already

* Cleanup println

* Fix bug with nextFilterHeaderBatchRange() wrt to startHeightOpt parameter

* Fix off by one bug with compact filter sync

* Add check for connectionCount

* Add longer timeout

* scalafmt
2023-12-28 10:43:01 -06:00
Chris Stewart
0ace6dfd2e
Make PeerManager.gossipMessage() queue to avoid gossiping messages to peers being disconnected (#5334)
* Make GossipMessage use PeerManager queue to avoid gossiping messages to peers that are being disconnected

* Remove isIBD check for gossiping getheaders after filter sync is complete

* Add log warning when NodeState has a peer, but peerDataMap doesn't when gossiping messages
2023-12-28 10:07:45 -06:00
Chris Stewart
16fb5d2dad
2023 12 19 compiler opts (#5330)
* Enable more compiler options

* enable -Xlint:valpattern, fix bug with out Test / scalacOptions were set with incorrect source code compiler flags

* Enable -Xlint:eta-sam

* Fix cryptoTestJVM

* Fix cryptoTestJS/test

* Fix asyncUtilTest

* Fix asyncUtilTest
2023-12-20 05:42:01 -06:00
Chris Stewart
54f303efb0
Rework various private methods in DataMessagehandler to return NodeState (#5329)
* Rework various private methods in DataMessagehandler to return NodeState rather than DataMessageHandler

* Refactor compact filter header handling into private helper method

* Refactor handling of headersmsg in case where the headermsg came from a different peer than our current syncPeer

* Add DEBUG log
2023-12-19 09:24:09 -06:00
Chris Stewart
ce154fc5fd
Remove unecessary helper method in PeerFinder (#5327)
* Remove unecessary helper method in PeerFinder

* scalafmt

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to run CI

* Empty commit to re-run CI
2023-12-17 12:36:37 -06:00
Chris Stewart
1084be80ad
Upgrade cache action to v3 (#5326)
* Upgrade cache action to v3

* Make unique cache names

* Empty commit to run CI

* Empty commit to re-run CI
2023-12-16 12:24:25 -06:00
Chris Stewart
747389e77d
Rework ConnectionGraph.stop() to return Future[Done] (#5325)
* Rework ConnectionGraph.stop() to return Future[Done] that represents the stream being completed

* Empty commit to re-run CI

* Fix bug in handleStreamComplete()

* Revert log levels

* Empty commit to run CI
2023-12-16 11:18:53 -06:00
Chris Stewart
01537185bd
2023 12 13 mv connectioncount check fixtures (#5324)
* Move peer connection count checks into test fixtures

* Add connection count check in another test fixture

* scalafmt
2023-12-14 06:19:47 -06:00
Chris Stewart
7f337073c9
Improve ReConnectionTest (#5323)
* Improve ReconnectionTest

* Await sync before starting our inactivity check
2023-12-13 06:25:24 -06:00
Chris Stewart
f4db40897b
Fix bug where PeerConnection.connectionGraphOpt does not get reset on disconnect (#5307)
* Remove calls to PeerData.stop() inside of PeerManager.onDisconnect(), now call PeerConnection.disconnect() when stream is complete

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to re-run CI

* Make PeerFinder.removePeer() return Option[PeerData]
2023-12-11 16:57:06 -06:00
Chris Stewart
bd3ad1df21
2023 12 07 mat socks5handler (#5322)
* Move socks5 greeting into Socks5Connection.socks5Handler() so each individual uage doesn't have to roll its own greeting

* Implement socks5Handler() to return a materialized stream

Get something working

Cleanup

* Remove connection parameter

* Add scaladoc
2023-12-08 12:36:02 -06:00
Thomas Profelt
16c41c3b2e
Added LnURLClient accept header to request (#5318) 2023-12-06 09:52:56 -06:00
Chris Stewart
ef20d5ec83
Rework Socks5Connection.socks5Handler() to emit Socks5ConnectionState downstream (#5315) 2023-12-02 13:02:48 -06:00
Scala Steward
39b127be8c
Update sbt-bloop to 1.5.12 (#5309) 2023-12-02 11:35:28 -06:00
Scala Steward
bb549b46d4
Update logback-classic to 1.4.14 (#5314) 2023-12-02 11:35:19 -06:00
Chris Stewart
47c433f365
Replace inactivity logic with Flow.idleTimeout (#5311)
* Replace inactivity logic with Flow.idleTimeout

* Fix bug where we were calling PeerConnection.connect() rather than PeerConnection.reconnect()
2023-11-29 15:13:13 -06:00
Chris Stewart
c0e8d376eb
Remove oracle explorer client (#5308)
* Remove oracle explorer client

* Remove doc, remove ci flow
2023-11-22 10:27:29 -06:00
Chris Stewart
4913b12431
2023 11 10 peermanager refactor (#5303)
* Pull queue, PeerFinder into NeutrinoNode and out of PeerManager

* Remove ControlMessageHandler param from PeerData

* Make ControlMessageHandle.handleControlPayload() take PeerMessageSenderApi as a param instead of just a Peer

* move construction of akka stream from PeerManager to NeutrinoNode

* Move inactivity checks out of PeerManager and into NeutrinoNode

* Move queue initialization into NeutrinoNode

* cleanup

* Set NeutrinoNode.isStarted to true when NeutrinoNode.start() is called

* Empty commit to re-run CI

* Modify FilterSync.toString()

* scalafmt

* Fix bug where we weren't checking if connection is timed out on activity checks

* Empty commit to run CI

* reset log level
2023-11-17 13:16:26 -06:00
Scala Steward
23cc9c9acc
Update junixsocket-core to 2.8.3 (#5300) 2023-11-16 09:33:17 -06:00
Scala Steward
36d27704b4
Update bcprov-jdk18on to 1.77 (#5302) 2023-11-16 09:33:05 -06:00
Scala Steward
a21b0a1741
Update client3:core, ... to 3.9.1 (#5296) 2023-11-11 11:09:59 -06:00
Scala Steward
222ad3b60d
Update sbt-mdoc to 2.5.1 (#5298) 2023-11-11 10:36:39 -06:00
Scala Steward
7861bce71a
Update native-lib-loader to 2.5.0 (#5297) 2023-11-09 10:08:45 -06:00
Chris Stewart
7f5ed15521
Reduce inactivity level to DEBUG (#5286)
* Reduce inactivity level to DEBUG

* Empty commit to re-run CI

* Empty commit to run CI

* Empty commit to run CI

* Empty commit to re-run CI
2023-11-08 15:45:55 -06:00
Chris Stewart
7b8df425fb
Reset PeerConnection.connectionGraphOpt = None when connection is disconnected (#5290)
* Reset PeerConnection.connectionGraphOpt = None when connection is disconnected

* Move resetting connectionGraphOpt into PeerConnection.disconnect()

* Call PeerData.stop() inside of PeerManager.onDisconnect()

* Empty commit to run CI

* Empty commit to re-run CI
2023-11-08 08:00:51 -06:00
Scala Steward
c1baad9f06
Update sbt-mdoc to 2.5.0 (#5289) 2023-11-07 16:50:00 -06:00
Chris Stewart
556c5e0c39
Fix NullPointerException inside of DLCServer (#5287) 2023-11-07 09:11:49 -06:00
Chris Stewart
579318cad0
Make Gen[ECPrivateKey] in scalacheck to use randomness from scalacheck to preserve reproducibility of test cases (#5285)
* Make Gen[ECPrivateKey] in scalacheck to use randomness from scalacheck to preserve reproducibility of test cases

* Revert build.sbt
2023-11-06 17:03:09 -06:00
Scala Steward
665727f165
Update play-json to 2.10.3 (#5282) 2023-11-06 15:06:09 -06:00
Scala Steward
33087f6ec1
Update metrics-core, metrics-healthchecks, ... to 4.2.22 (#5283) 2023-11-06 14:03:47 -06:00
Chris Stewart
a18bd70369
Upgrade to bitcoind 24.2 (#5284)
* Upgrade to bitcoind 24.2

* update m1 24.2 bitcoind hash

* update windows, mac x86 bitcoind v24.1 hashes
2023-11-06 14:03:10 -06:00
Chris Stewart
5273af05d8
Upgrade website dependencies (#5279) 2023-11-03 11:15:26 -05:00
Scala Steward
336cb60c51
Update sbt-assembly to 2.1.4 (#5275) 2023-10-31 06:55:40 -05:00
Scala Steward
a513cab030
Update sbt-bloop to 1.5.11 (#5226)
* Update sbt-bloop to 1.5.11

* Fix sbt bloop config

---------

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2023-10-31 06:55:25 -05:00
Chris Stewart
be30da578d
Bump timeout for checking when peer is disconnected (#5277)
* Bump timeout for checking when peer is disconnected

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to re-run CI
2023-10-29 09:04:21 -05:00
Scala Steward
763da5619c
Update junixsocket-core to 2.8.2 (#5276) 2023-10-28 16:34:29 -05:00
Scala Steward
11f07a1cd1
Update sbt to 1.9.7 (#5271) 2023-10-24 11:09:53 -05:00
Scala Steward
984a2344bc
Update scodec-bits to 1.1.38 (#5273) 2023-10-24 10:47:47 -05:00
Scala Steward
a47e18187d
Update play-json to 2.10.2 (#5270) 2023-10-24 10:24:39 -05:00
Chris Stewart
5c2c8ee30b
2023 10 19 recursive rescan state (#5269)
* WIP: Implement future chaining for recursive rescans

* Fix deadlock by segregating RescanStarted.doneF into two different methods, one tracking the single pass rescan and one tracking the entire rescan

* scalafmt, add comment

* Fix bug where we were completing Promise twice

* Fix unit test

* Cleanup logs

* Cleanup comment

* Bump timeout

* Empty commit to run CI

* Empty commit to re-run CI

* Empty commit to re-run CI
2023-10-24 08:13:45 -05:00
Chris Stewart
b252c2d6a2
2023 10 16 Implement WalletCallbackStreamManager, DLCWalletCallbackStreamManager (#5263)
* WIP: Implement WalletCallbackStreamManager

* Implement stopping of WalletCallbackStreamManager in WalletAppConfig

* WIP: DLCWalletCallbackStreamManager

* Refactor DLCWalletCallbacks to be a trait

* Integrate DLCWalletCallbackStreamManager into WebsocketUtil

* Use  java.util.concurrent.atomic.AtomicBoolean rather than monix

* Remove logger param from dlc callbacks

* fix docs

* Call super.stop() in DLCappConfig

* Empty commit to run CI

* Try to debug

* Empty commit to run CI

* Revert things
2023-10-19 11:52:07 -05:00
Scala Steward
087508dadc
Update sbt-mdoc to 2.4.0 (#5266) 2023-10-18 16:18:14 -05:00
Scala Steward
b085045e16
Update metrics-core, metrics-healthchecks, ... to 4.2.21 (#5261) 2023-10-18 11:36:49 -05:00
Scala Steward
d256f3cdb1
Update scalapb-runtime to 0.11.14 (#5264) 2023-10-18 10:32:14 -05:00
Scala Steward
723640b8f6
Update typesafe:config to 1.4.3 (#5265) 2023-10-18 10:00:04 -05:00
Chris Stewart
531c909597
Use BitcoindRpcBackendUtil.buildBitcoindNodeApi() in wallet test fixtures, re-implement getConfirmationsForBlocks() to use akka streams to avoid max-open-requests limit inside of akka (#5259) 2023-10-12 18:02:06 -05:00