Commit Graph

4267 Commits

Author SHA1 Message Date
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
Chris Stewart
c4f0bd3d39
Switch defaults to 12 hours for running peerConnectionScheduler (#5241) 2023-09-21 09:26:40 -05:00
Chris Stewart
3763a53ad5
Adjust so that requery in the case were we have just 1 peer (#5240) 2023-09-20 09:13:23 -05:00
Scala Steward
922a6aaeb4
Update play-json to 2.10.1 (#5239) 2023-09-18 09:39:13 -05:00
Scala Steward
00bd36ad2e
Update sbt-assembly to 2.1.3 (#5238) 2023-09-18 09:27:20 -05:00
Scala Steward
6373b5b866
Update junixsocket-core to 2.7.2 (#5236) 2023-09-16 12:56:40 -05:00
Scala Steward
1edf57ac1e
Update sbt to 1.9.6 (#5237) 2023-09-16 10:10:22 -05:00
Scala Steward
d7037ede28
Update scala-library to 2.13.12 (#5235)
* Update scala-library to 2.13.12

* Fix compiler errors on scala 2.13.12

---------

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2023-09-12 10:45:17 -05:00
Scala Steward
a0b273e6b3
Update junixsocket-core to 2.7.1 (#5234) 2023-09-12 08:43:49 -05:00
Scala Steward
b474a60986
Update sbt-scoverage to 2.0.9 (#5233) 2023-09-11 15:18:39 -05:00
Scala Steward
4146f856ed
Update scalatest to 3.2.17 (#5232) 2023-09-11 15:18:25 -05:00
Chris Stewart
e15bf6cc9d
reduce default bitcoin-s.chain.neutrino.filter-batch-size to 250 (#5230)
* reduce default bitcoin-s.chain.neutrino.filter-batch-size to 100

* Bump filter-batch-size to 250
2023-09-07 19:08:18 -05:00
Chris Stewart
d5c74c086d
Reduce NodeCallbackStreamManager from 32 -> 16 (#5229) 2023-09-06 13:35:03 -05:00
Scala Steward
433a097449
Update slf4j-api to 2.0.9 (#5228) 2023-09-06 11:12:28 -05:00
Chris Stewart
b3aa7b4b68
Fix bug were we weren't consistently calculating the correct compact filter start height for sync (#5225) 2023-09-06 08:25:43 -05:00
Chris Stewart
489682312d
Reduce NodeCallbackStreamManager to 32 to reduce chance of OOM errors on small heap sizes (#5224) 2023-09-05 13:21:23 -05:00
Chris Stewart
0e2fddcc57
Optimize bestFilterHeaderHeightQuery (#5223) 2023-09-05 09:45:56 -05:00
Chris Stewart
c038d2fa3b
2023 08 30 refactor ConsoleCli (#5217)
* refactor ConsoleCli to use logging framework

* move things out of ConsoleCli.exec()

* Dont use deprecated method to send req

* move backend out of ConsoleCli.exec()

* Add type annotation

* Remove wrapping Try { } inside of ConsoleCli.exec()

* Remove old debug config flag, use logback to log now

* Add slf4j backend for sttp logging

* Send getversion request server side

* Use V.sttpV

* WIP

* Fix bitcoin-s-cli build

* Restore commonCompilerOpts
2023-09-01 08:23:45 -05:00
Chris Stewart
a93954cc4e
Only generate scaladoc on CI to decrease build time (#5220) 2023-08-31 11:15:23 -05:00
Chris Stewart
c6524b9246
remove usages of new URL() as constructor is deprecated on jdk 20+ (#5219) 2023-08-31 10:45:16 -05:00
Chris Stewart
3ae41032a4
Add log to help debug 5208 (#5211) 2023-08-28 12:32:16 -05:00
Chris Stewart
a18dc6c55f
Add java.instrument to jlink dev builds (#5210) 2023-08-28 11:34:55 -05:00
Chris Stewart
aa02683db9
Cleanup use of syncPeerOpt as a param in parts of PeerManager (#5209) 2023-08-26 12:37:27 -05:00
Chris Stewart
2672c2223c
Remove references to client in PeerManager logs (#5207) 2023-08-26 10:07:10 -05:00