Commit Graph

4290 Commits

Author SHA1 Message Date
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
Scala Steward
d65bd11bd6
Update sbt-mdoc to 2.3.8 (#5257) 2023-10-11 09:20:55 -05:00
Chris Stewart
cff757cb55
2023 10 03 node refactors (#5256)
* Rename PeerMessageSender -> PeerConnection

* WIP: Move gossip methods into PeerManagerApi, keep single peer methods in PeerMessageSenderApi, but remove peer parameter

* PeerData.peerMessaageSender -> PeerData.peerConnection

* Remove DataMessageHandler.queue as it is redundant

* Get most test cases passing in nodeTest

* Fix ReConnectionTest

* Fix NeutrinoNodeWithUncachedBitcoindTest test case

* Rename PeerManager.{randomPeerMsgSender, getPeerMessageSender} -> PeerManager.{randomPeerConnection,getPeerConnection}

* Refactor PeerManager.getPeerMessageSender to return the new PeerMessageSender

* Rename param

* scalafmt

* Remove unused method

* Revert onInitialization
2023-10-09 10:32:05 -05:00
Chris Stewart
2863b3f5cc
Change PeerManager to keep NodeState in Sink.foldAsync() rather than DataMessageHandler (#5255) 2023-10-05 16:11:36 -05:00
Chris Stewart
522821869d
Move filterBatchCache into NodeState.FilterSync (#5253) 2023-10-05 14:56:08 -05:00
Chris Stewart
a40be1a6bc
Fix bug where we were executing block ehader callbacks when we received 0 block headers from our peer (#5254) 2023-10-05 14:55:49 -05:00
Scala Steward
8752d9fe70
Update junixsocket-core to 2.8.1 (#5252) 2023-10-03 15:36:06 -05:00
Chris Stewart
1602852419
2023 09 29 waitingdisconnection nodestate (#5251)
* Move waitingForDisconnection into NodeState

* Remove PeerManager.waitingForDisconnection

* Remove mutable _waitingForDisconnection

* Fix compile
2023-10-03 15:35:46 -05:00
Chris Stewart
83cf657a0b
Move initialization of sync into PeerManager's queue (#5250) 2023-10-03 13:16:20 -05:00
Chris Stewart
4972d0a368
Move NodeState to core (#5249) 2023-09-29 12:06:24 -05:00
Chris Stewart
3e6ff52194
2023 09 27 issue 5139 (#5247)
* Add test case for reorg on bitcoin network for NeutrinoNodeTest

* Get unit tests passing

* Refactor findNextHeader() to not take an Option[BlockHeaderDb], not it just takes BlockHeaderDb

* Explicity return None in the case where we don't need sync filter headers

* Fix off by one bug when starting filter header sync
2023-09-29 07:35:26 -05:00
Scala Steward
7c133c19ca
Update jeromq to 0.5.4 (#5246) 2023-09-26 10:50:29 -05:00
Scala Steward
046a9e869c
Update sbt-scalajs, scalajs-compiler, ... to 1.14.0 (#5245) 2023-09-26 10:23:12 -05:00
Scala Steward
08cb329719
Update metrics-core, metrics-healthchecks, ... to 4.2.20 (#5244) 2023-09-26 09:08:02 -05:00
Chris Stewart
12e5dfc021
Fix chain fixtures to use ChainHandler rather than always using ChainHandlerCached (#5243)
* Fix chain fixtures to use CHainHandler rather than always using ChainHandlerCached

* Remove unecessary ChainAppConfig.start()
2023-09-25 11:13:59 -05:00