Chris Stewart
99c1292ddc
Add xor
operator as NumberType.{^,xor()}
( #5500 )
...
* Add xor operator as NumberType.{^,xor()}
* Cleanup
* Consolidate number test suites
* Fix missing asserts
2024-03-28 15:21:59 -05:00
Scala Steward
dae7b0517b
Update sbt-bloop to 1.5.16 ( #5499 )
2024-03-28 14:19:56 -05:00
Chris Stewart
2b67999ad8
Bump docker base image to eclipse-temurin:21 ( #5497 )
2024-03-27 11:29:05 -05:00
Chris Stewart
2cb358fa4c
Run yarn upgrade to update website deps ( #5495 )
...
* Run yarn upgrade to update website deps
* update menu section
2024-03-26 14:35:27 -05:00
Chris Stewart
d162242a39
2024 03 24 v21 rpc refactor ( #5494 )
...
* WIP: Consolidate V19FilterRpc into BlockchainRpc
* Implement ChainApi.getFilterHeader() with bitcoind
* Make {BitcoindV22RpcClient,BitcoindV23RpcClient,BitcoindV24RpcClient} extend BitcoindRpcClient directly
* Fix MiningRpcTest
* Remove cast in BitcoindBackendTest
2024-03-26 13:04:26 -05:00
Chris Stewart
00b969b058
init 1.9.8 release notes ( #5281 )
...
* init 1.9.8 release notes
* Sort logs upto f8143f3e02
* Sort logs upto 177542a13c
* Sort logs upto 0bd59789e3
* Add commentary
* Add last commit
2024-03-25 09:10:25 -05:00
Chris Stewart
6b21a900ce
Bump versions to 1.9.8
, add 1.9.8
version of website ( #5280 )
...
* Bump versions to 1.9.8, add 1.9.8 version of website
* Update website version
2024-03-25 09:06:31 -05:00
Chris Stewart
4501e138a4
Stop BitcoinSAppConfig last in BitcoinSServerMain.stop() ( #5493 )
2024-03-24 14:59:32 -05:00
Chris Stewart
0bd59789e3
Remove neutrino.suredbits.com:8333 from docker-compose.yml ( #5492 )
2024-03-24 11:03:39 -05:00
Chris Stewart
b25cc8a8a5
Fix start rescan race condition, previously we would attempt to fetch blocks before our NodeApi had any peers ( #5491 )
2024-03-24 07:10:56 -05:00
Chris Stewart
9fef2c505c
Add bitcoin-s.node.connection-attempt-cool-down-period
( #5489 )
...
* Add bitcoin-s.node.connection-attempt-cool-down-period
Add bitcoin-s.node.connection-attempt-cool-down-period
* Re-add shuffling
2024-03-22 13:16:45 -05:00
Chris Stewart
7e2a4c97e6
Reduce requesting next cfheaders log level to DEBUG ( #5490 )
2024-03-22 11:42:01 -05:00
Scala Steward
c51c6a8f39
Update sbt-buildinfo to 0.12.0 ( #5486 )
2024-03-20 14:56:14 -05:00
Scala Steward
a2b354c694
Update client3:core, ... to 3.9.5 ( #5487 )
2024-03-20 11:13:56 -05:00
Scala Steward
1e0cd1bed3
Update sbt-scalajs, scalajs-compiler, ... to 1.16.0 ( #5488 )
2024-03-20 11:09:49 -05:00
Chris Stewart
58adf4c6fd
Fix build warnings for --compress flag in jlink ( #5485 )
2024-03-20 11:09:41 -05:00
Chris Stewart
47c7680d8c
Refactor Node.chainApiFromDb()
to return ChainApi
( #5484 )
...
* Refactor Node.chainApiFromDb() to return ChainApi
* Adjust log level for ignoring p2p messages to DEBUG
2024-03-20 08:56:50 -05:00
Chris Stewart
3cfe700fad
Reduce stream failure log to DEBUG to avoid tor spam ( #5483 )
2024-03-19 11:30:34 -05:00
Chris Stewart
177542a13c
Remove grizzled.sl4fj was its no longer maintained ( #5482 )
2024-03-18 16:48:58 -05:00
Chris Stewart
a875f08d2e
Reduce log level of PeerConnection logs to DEBUG ( #5481 )
2024-03-18 16:03:49 -05:00
Chris Stewart
af342dd6c1
2024 03 18 rm unused configs ( #5480 )
...
* Remove bitcoin-s.node.connection-timout setting as it wasn't used
* Remove bitcoin-s.node.peer-discovery-timeout
2024-03-18 15:26:31 -05:00
Chris Stewart
d44344f07b
Check if peer is waitingForDisconnection when receiving InitializeDisconnect() message ( #5479 )
2024-03-18 14:20:35 -05:00
Scala Steward
d1ba4737d6
Update sbt-assembly to 2.2.0 ( #5473 )
2024-03-18 09:24:02 -05:00
Chris Stewart
f7dd69bec3
refactor: Use 'peerWithServicesDataMap' name consistently across NodeState and PeerManager ( #5478 )
2024-03-17 16:30:52 -05:00
Chris Stewart
db64a6d136
Reduce various log levels to DEBUG ( #5477 )
2024-03-17 07:59:53 -05:00
Scala Steward
270f3cf624
Update postgresql to 42.7.3 ( #5475 )
2024-03-17 05:44:55 -05:00
Chris Stewart
5c247e65a5
Reduce 'Attempting to connect' log to DEBUG ( #5476 )
2024-03-17 05:44:34 -05:00
Scala Steward
b7d7baaa20
Update sqlite-jdbc to 3.45.2.0 ( #5474 )
2024-03-16 07:12:19 -05:00
Chris Stewart
9a71a96fb8
2024 03 11 Remove filtersync job ( #5471 )
...
* Rework DataMessageHandler to consider syncing filterheaders if we receive a headers message with 0 block headers
* scalafmt
* Remove syncfilter job
* Cleanup
* Reduce received headers log to DEBUG
* Rework SyncNodeState.toString()
* Call PeerManager.startFilterSync() in DataMessageHandler
* Don't test MTP in unrelated test
2024-03-12 15:05:54 -05:00
Chris Stewart
23337b7137
2024 03 11 PeerFinder.getPeersFromDnsSeeds
async ( #5472 )
...
* WIP: Make getPeersFromDns async
* Get things compiling
* Comment out slow seeds
2024-03-12 12:14:01 -05:00
Chris Stewart
708ce41f24
Re-implement bitcoin-s.node.query-wait-time
( #5470 )
...
* Add sentQuery Instant to SyncNodeState subclasses, add logic in DataMessageHandler.handlePayload() to detect if a query has timed out
* Refactor to use NodeTestUtil.disconnectNode()
* Cleanup comments
2024-03-11 09:54:44 -05:00
Chris Stewart
54a356b300
Don't unnecessarily create new NodeState objects, use helper methods to state transition ( #5469 )
2024-03-10 15:41:06 -05:00
Chris Stewart
fa6cb1ba3a
Send p2p messages to syncPeer when we are in and a specific peer is not set in SendToPeer ( #5468 )
2024-03-09 22:19:56 -06:00
Chris Stewart
9e50c5fd12
Fix bug where we weren't checking if isFiltersSynced is true before sending our next getcfilters to our peer ( #5466 )
2024-03-09 16:24:28 -06:00
Chris Stewart
16aeb56df5
Remove implicit NodeAppConfig from PeerMessageSender ( #5465 )
2024-03-09 15:00:58 -06:00
Chris Stewart
567c2400ca
Small refactors to use RunningNodeState methods, improve logs ( #5463 )
2024-03-09 09:25:34 -06:00
Scala Steward
dcb177b4a7
Update slick, slick-hikaricp to 3.5.0 ( #5461 )
...
* Update slick, slick-hikaricp to 3.5.0
* Fix compile
---------
Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2024-03-08 10:14:20 -06:00
Scala Steward
c2fb5d2657
Update client3:core, ... to 3.9.4 ( #5460 )
2024-03-08 10:14:11 -06:00
Chris Stewart
5967caeca7
2024 03 07 Add NodeState.FilterOrFilterHeaderSync
, refactor PeerManager
to use it ( #5459 )
...
* Refactor syncHelper() to return SyncNodeState rather than Unit
* Add FilterOrFilterHeaderSync, rework various methods in PeerManager to return Option[FilterOrFilterHeaderSyncState] to indicate if we are syncing rather than Future[Unit]
* Don't use getPeerMessageSender() if we can use syncPeerMessageSender()
* Fix case where syncpeer and new peer are different when creating a filter sync job
* Adjust createFilterSyncJob() return type, throw exception when we try to sync but PeerManager is not started
* Refactor to use SyncNodeState.{toFilterHeaderSync,toFilterSync}
* Cleanup comments
2024-03-08 10:13:58 -06:00
Chris Stewart
e793c53dd7
Add guards on sending blockfilter messages to non-blockfilter peers ( #5457 )
...
* Add guards on sending blockfilter messages to non-blockfilter peers
* Simplify logic
* add scaladoc
* Remove misleading log
2024-03-06 08:26:32 -06:00
Chris Stewart
55e4dab86e
Rework NodeApi.downloadBlocks()
to use DoubleSha256DigestBE
( #5456 )
...
* Rework NodeApi.downloadBlocks() to use DoubleSha256DigestBE rather than DoubleSha256Digest
* Fix test cases
* Fix docs
* Fix compile
2024-03-05 15:19:32 -06:00
Chris Stewart
898d2b44ee
Fix bug where we were executing block callbacks when we hadn't seen a block header ( #5455 )
...
* Fix bug where we were executing block callbacks when we hadn't seen a block header
* reduce log to DEBUG
2024-03-05 13:47:03 -06:00
Chris Stewart
238948e185
Remove PeerMessageSenderApi param from DataMessageHandler ( #5453 )
2024-03-05 11:12:17 -06:00
Chris Stewart
ddb6f01d65
Simplify / reduce log level for compact filter logs ( #5452 )
2024-03-05 09:20:32 -06:00
Chris Stewart
367285d9b9
Reduce reliance of PeerManager._peerDataMap
in favor of NodeState.peerDataMap
( #5451 )
...
* Reduce reliance of PeerManager._peerDataMap in favor of NodeState.peerDataMap
* Fix bug where we weren't removing peers from NodeState
* Remove invariants
* Empty commit to run CI
* Empty commit to re-run CI
2024-03-05 08:16:29 -06:00
Chris Stewart
0d2e0a98f0
fix bug where we weren't properly transferring state to FilterHeaderSync, reduce log level of peer we fail to connect to ( #5450 )
2024-03-04 13:19:22 -06:00
Scala Steward
f77b4efe11
Update logback-classic to 1.5.3 ( #5448 )
2024-03-04 10:46:49 -06:00
Chris Stewart
9aa730dd0a
Revert yml files ( #5449 )
2024-03-04 09:47:52 -06:00
Chris Stewart
ae3a634703
2024 03 01 Fix syncPeer
exceptions ( #5446 )
...
* Add NodeRunningState.removePeer(), add helper method onDisconnectNodeStateUpdate() to consolidate disconnect logic
* Remove duplicate logic
* Add bitcoin-s.node.maxConnectedPeers test
* Clean up resources in test case
* Remove unecessary replacePeers()
* Add NodeState.addPeer()
* Add NodeRunningState.connectedPeerCount, separate handling of connection slots and filter slots
2024-03-04 09:22:16 -06:00
Chris Stewart
8b23b1f4f6
Add delay to wait for zmq to get setup in chainTest ( #5427 )
...
* Add delay to wait for zmq to get setup in chainTest
* Add println
* only run zmq tests on CI
* Bump Thread.sleep from 1ms -> 10ms
* Empty commit to re-run CI
* Revert things
* try making thread names more unique
* try no sleep
* Remove println
* Put logging back
* Try removing ZMQ.NOBLOCK
* turn off parallelExecution to see if it matters
* Add more logging
* Re-enable parallelExecution
* Try catching all NonFatal exns
* Bump timeout
* Bump maxTries
* Try downgrading jeromq back to 0.5.4
* Revert things
* scalafmt
2024-03-03 11:54:50 -06:00