Commit graph

4103 commits

Author SHA1 Message Date
Scala Steward
475ed33716
Update sbt-ci-release to 1.5.12 (#5064) 2023-05-05 14:26:49 -05:00
Chris Stewart
2fdd237e20
2023 04 26 dmh state refactor (#5062)
* WIP: Add new states for FilterHeaderSync, FilterSync, DoneSyncing

* Get DataMessageHandler compiling

* Get src compiling

* Get tests compiling

* Remove syncPeer from DoneSyncing

* WIP: Get first NeutrinoNodeTest working

* Get first NeutrinoNodeTest working for basic sync

* Fix small bug

* Fix bug where we transition to HeaderSync when we receive HeadersMessage with 0 headers. Also reduce conflicting states in DataMessageHandler.getHeaders()

* Add caveats for empty HeadersMessage

* WIP: Get NeutrinoNodeTest syncing compact filters during IBD passing consistently

* Remove generate block delay

* Empty commit to re-run CI

* Fix bug in onP2PClientStopped()

* Fix handling of DoneSyncing state when we receive headers messages

* Remove impossible case
2023-05-04 12:45:40 -05:00
Scala Steward
a7146e7dce
Update scala-collection-compat to 2.10.0 (#5061) 2023-04-28 14:21:58 -05:00
Chris Stewart
ce6f0d1507
Refactor HeadersMessage to have helper method for HeadersMessage (#5060) 2023-04-26 10:46:24 -05:00
Chris Stewart
1fc6edf825
Remove initialSyncDone Promise as it isn't used (#5058) 2023-04-25 06:45:15 -05:00
Chris Stewart
ce6d2212c1
2023 04 22 peermanager dmh refactor (#5057)
* WIP: Move DataMessageHandler into PeerManager

* Get things compiling

* Turn off logging
2023-04-24 08:14:02 -05:00
Chris Stewart
1461782865
Move onHeaderRequestTimeout to PeerManager (#5056) 2023-04-23 13:38:15 -05:00
Chris Stewart
7beed5a00d
Only request syncing compact filter headers / filters if our tip isn't stale (#5055) 2023-04-22 10:24:23 -05:00
Scala Steward
9f129c2fe5
Update logback-classic to 1.4.7 (#5054) 2023-04-21 12:38:51 -05:00
Chris Stewart
d1c9228361
Fix getpeers -> getconnectioncount in cli (#5052) 2023-04-21 05:47:47 -05:00
Chris Stewart
18482c7e44
2023 04 20 decouple node (#5049)
* Remove node parameter to PeerMessageReceiver, pass the ControlMessageHandler and DataMessageHandler as parameters

* Remove node reference in DataMessageHandler, just pass PeerManager as parameter

* Fix pattern match to be exhaustive

* Move fetchCompactFilterHeaders, sendFirstGetCompactFilterHeadersCommand out of DataMessagehandler to decouple DataMessageHandler, PeerManager

* scalafmt
2023-04-20 18:39:30 -05:00
Chris Stewart
3740b4fc35
Implement batchAndParallelExecute with Future.traverse rather than Future.sequence (#5051) 2023-04-20 17:59:09 -05:00
Chris Stewart
5f9c89820f
Add wait before checking connection count test (#5050) 2023-04-20 17:20:24 -05:00
Scala Steward
760903660e
Update sbt-scalajs-crossproject to 1.3.1 (#5047) 2023-04-20 09:41:13 -05:00
Chris Stewart
447c6d03de
Implement getconnectioncount rpc (#5048)
* Implement getconnectioncount rpc

* Reduce waits in test, add documentation

* Fix docs

* Empty commit to re-run CI
2023-04-19 16:47:54 -05:00
Chris Stewart
3728b9a9d9
Refactor HDPath pattern matching to be safer. (#5046)
* Refactor hd path pattern matching to be safer. Also avoids warnings in scala3

* Allow single element bip32 path
2023-04-19 08:41:10 -05:00
Chris Stewart
51429a7d68
2023 04 17 refactor peer message receiver (#5045)
* WIP: Refactor PeerMessageReceiver methods into PeerMessageReceiverState

* Remove state helper methods from PeerMessageReceiver

* WIP: Remove PeerMessageReceiverState from PeerMessageReceiver

* Get things compiling and tests passing

* Remove currentPeerMessageHandlerReceiver

* Refactor PeerMessageReceiverTest to not use bitcoind
2023-04-18 10:25:24 -05:00
Scala Steward
25cdf9d880
Update client3:core to 3.8.15 (#5042) 2023-04-15 10:33:19 -05:00
Scala Steward
3379e99ffd
Update sbt-scalajs, scalajs-compiler, ... to 1.13.1 (#5043) 2023-04-15 10:33:02 -05:00
Chris Stewart
13e5e6501c
Fix bug where compact filters weren't being processed in order of block height during IBD (#5041)
* Fix bug where compact filters weren't being processed in order of block height during IBD

* Use sorted compact filter messages in chainApi.processFilters()
2023-04-10 16:42:48 -05:00
Scala Steward
5e668c5d5e
Update client3:core to 3.8.14 (#5028) 2023-04-10 07:56:39 -05:00
Scala Steward
d2cc7ec98b
Update sbt-scalajs-crossproject to 1.3.0 (#5035) 2023-04-08 22:21:23 -05:00
Chris Stewart
36f30c5915
Fix bug where bip39Password was not passed as param in test case (#5040)
* Fix bug where bip39Password was not passed as param in test case

* Empty commit to re-run CI

* Empty commit to re-run CI
2023-04-08 22:19:13 -05:00
Chris Stewart
f95360f8ba
Add logic to fetch block headers after compact filters are synced in IBD to avoid a stale tip (#5037)
* Add logic to fetch block headers after compact filters are synced in IBD to avoid a stale tip

* Restore logging, remove println

* Add comment linking to issue

* Cleanup logging

* Only send getheaders message after filter sync if we are in IBD
2023-04-08 16:12:03 -05:00
Chris Stewart
31e1bd79e9
Speed up DataMessageHandlerTest dramatically by using CachedBitcoind (#5038) 2023-04-07 11:12:06 -05:00
Chris Stewart
36ec40dfa3
implement generating addresses when wallet is initialized if creationTime is > 1 hour ago (#5034) 2023-04-04 11:40:26 -05:00
Chris Stewart
e791932f99
Refactor peerData -> peerDataMap, try to fix #4955 (#5030)
* Refactor peerData -> peerDataMap, try to fix #4955

* scalafmt

* Empty commit to re-run CI
2023-04-03 06:35:39 -05:00
Chris Stewart
54b47152d1
Fix bug fetching compact filter height to early in DataMessageHandler (#5031) 2023-04-01 07:21:58 -05:00
benthecarman
08757d536f
Lnd 0.16.0 rpc (#5005)
* Lnd 0.16.0 rpc

* Add 2 second delay for after channels are open
2023-03-30 14:43:26 -05:00
Scala Steward
8186b2e2df
Update waffle-jna to 3.3.0 (#5026) 2023-03-26 12:27:27 -05:00
Scala Steward
b2ead6038f
Update sqlite-jdbc to 3.41.2.1 (#5027) 2023-03-26 12:27:17 -05:00
Chris Stewart
dc0e3645d0
2023 03 24 is tip stale (#5024)
* WIP

* Fix test

* Add more tests for stale header

* remove uncessary comments
2023-03-26 08:20:27 -05:00
Chris Stewart
d53ed7d487
Bump clightning version to v23.02.2 (#5025)
* Bump version to v23.02.2

* Fix hash

* Reduce timeout on clightning startup, its absurdly long causing slow test iteration

* Try to specify the OS version clightning tests run on to ubuntu-20.04

* Rework downloadClightning to be conscious of the ubuntu OS version

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to re-run CI
2023-03-26 06:26:46 -05:00
Scala Steward
d3d85eae95
Update sqlite-jdbc to 3.41.0.1 (#5019) 2023-03-25 09:06:05 -05:00
Chris Stewart
1d611ec6b5
Remove fetch compact filters in NeutrinoNode.sync() before fetching block headers / compact filter headers (#5023) 2023-03-23 12:01:22 -05:00
Chris Stewart
6b03133a34
Fix empty.tail exception occurring on chain block filter / filter headers callbacks (#5021)
* Fix empty.tail exception occurring on chain block filter / filter headers callbacks

* scalafmt
2023-03-23 06:38:42 -05:00
Chris Stewart
e3e1c7f949
Try bumping timeout to 1 second to avoid false positives test failures (#5018)
* Try bumping timeout to 1 second to avoid false positives test failures on DLCWalletBitcoindBackendLoaderTest

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to re-run CI
2023-03-21 12:29:42 -05:00
Scala Steward
51a354245b
Update client3:core to 3.8.13 (#5010) 2023-03-21 09:11:07 -05:00
Scala Steward
84803fdfb1
Update metrics-core, metrics-healthchecks, ... to 4.2.18 (#5013) 2023-03-20 10:17:45 -05:00
Scala Steward
efd92c1280
Update logback-classic to 1.4.6 (#5012) 2023-03-20 09:28:22 -05:00
Scala Steward
64354d2eb9
Update postgresql to 42.6.0 (#5014) 2023-03-20 09:27:56 -05:00
Scala Steward
f221688fe0
Update slf4j-api to 2.0.7 (#5015) 2023-03-20 09:27:11 -05:00
benthecarman
5e6cb0d514
Fix MilliSatoshis.toSatoshis for large values (#5016) 2023-03-20 09:26:32 -05:00
Chris Stewart
df5472f263
Generate blocks in two rpc calls (#5011)
* Generate blocks in two rpc calls

* Empty commit to re-run CI

* Empty commit to re-run CI
2023-03-15 07:29:53 -05:00
Chris Stewart
875a67a73c
2023 03 03 rm DataMessageHandler filter params (#5009)
* Remove DataMessageHandler filter params, tests not passing

* Adjust logging levels

* WIP

* Get tests passing

* Cleanup

* Fix logging level

* Invert isSynced flag

* Rework BaseBlockchain.toString

* Fix BlockchainTest

* Fix syncing of compact filters when walletCreationTime is passed into dmh

* Cleanup
2023-03-14 11:45:21 -05:00
rorp
2799d8276a
Update Eclair RPC to v0.8.0 (#4994)
* Update Eclair RPC to v0.8.0

* update unit tests
2023-03-04 09:02:36 -06:00
Scala Steward
fbcea17e2f
Update client3:core to 3.8.12 (#5007) 2023-03-02 06:51:24 -06:00
Scala Steward
6aae816de9
Update metrics-core, metrics-healthchecks, ... to 4.2.17 (#4999) 2023-03-02 06:51:10 -06:00
Chris Stewart
de0e892b3e
2023 02 27 Fix bug where duplicate filters caused node not to sync (#5008)
* WIP

* Modify DataMessageHandler to use Set for filter batch, fix test case

* revert log level

* Remove duplicate filters test

* Re-add test to make sure we don't throw an exception when processing a filter we've seen before

* Empty commit to re-run CI

* Empty commit to re-run CI

* Empty commit to re-run CI

* Fix NeutrinoNodeTest

* Empty commit to re-run CI

* Empty commit to re-run CI
2023-03-02 06:46:08 -06:00
Scala Steward
b444a192b0
Update sbt-native-packager to 1.9.16 (#4998) 2023-02-28 12:40:05 -06:00