Commit Graph

4248 Commits

Author SHA1 Message Date
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
Chris Stewart
8ab9718a48
Reduce best filter height sql query costliness by using a cheap check (#5206) 2023-08-25 14:25:41 -05:00
Scala Steward
d37faa0bcf
Update sqlite-jdbc to 3.42.0.1 (#5205) 2023-08-25 12:51:23 -05:00
Scala Steward
ccafd0c5c9
Update sbt to 1.9.4 (#5204) 2023-08-25 12:38:54 -05:00
Chris Stewart
39cec3ae51
Fix bug where we weren't checking if filters are stale when determing if we need to sync filters (#5203) 2023-08-25 09:05:35 -05:00
Chris Stewart
11ab921923
Add filter header and filter count to logs (#5202) 2023-08-24 11:14:25 -05:00
Chris Stewart
26290bf4c0
Rework handling of BlockMessage, fix bug where callbacks executed when they shouldn't have been (#5201)
* Rework handling of BlockMessage, fix bug where callbacks executed when they shouldn't have been

* scalafmt
2023-08-24 07:49:15 -05:00
Chris Stewart
e8ab293fa0
Remove Initialized from NodeStreamMessage, return Initialized from ControlMessageHandler (#5199)
* Remove Initialized from NodeStreamMessage, return Initialized from ControlMessageHandler to avoid deadlocking queue with backpressure

* Revert a few things

* scalafmt
2023-08-23 08:34:37 -05:00
Chris Stewart
cc94a92424
Add Await.result() to inactivity check runnable to make sure it completes, or we get an error message if it doesn't (#5197) 2023-08-16 09:43:25 -05:00
Chris Stewart
f36c437648
Guard createFilterSyncJob() with isStarted (#5195) 2023-08-15 11:35:49 -05:00
Chris Stewart
008dd42a08
Upgrade lnd to 0.16.4 (#5194)
* Upgrade lnd to 0.16.4

* fix the rest of the hashes

* Fix version

* Fix queryroutes cltv delta param from 40 -> 80

* update doc versions
2023-08-14 14:38:23 -05:00
Chris Stewart
e423de01e1
Remove executing block callbacks if node is in IBD (#5193) 2023-08-12 19:19:13 -05:00
Chris Stewart
998c997ac5
Move initialization cancellable into connection graph (#5192)
* Move initialization cancellable into connection graph so we can cancel it if PeerMessageSender.disconnect() is called

* Create ConnectionGraph.stop()

* fix compile
2023-08-12 17:55:02 -05:00
Scala Steward
561be207b1
Update sbt-coveralls to 1.3.11 (#5191) 2023-08-12 14:34:02 -05:00
Scala Steward
6c9d71cb97
Update logback-classic to 1.4.11 (#5189) 2023-08-11 12:11:08 -05:00
Scala Steward
38f8c40c33
Update client3:core to 3.9.0 (#5190) 2023-08-11 11:33:48 -05:00
Chris Stewart
deb34dc87a
Lower log levels to DEBUG (#5188) 2023-08-09 08:50:55 -05:00
Chris Stewart
09623173b3
Increase inactivity check log level (#5187) 2023-08-07 15:00:47 -05:00
Scala Steward
d5bf14f5cf
Update sbt-coveralls to 1.3.10 (#5184) 2023-08-07 10:37:01 -05:00
Chris Stewart
f2b40c8922
More idiomatic akka stream usage (#5183) 2023-08-06 14:02:58 -05:00