]> git.bitcoin.ninja Git - ldk-java/commit
Only set up `NioPeerHandler` after chain sync completes
authorMatt Corallo <git@bluematt.me>
Tue, 8 Nov 2022 23:48:07 +0000 (23:48 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 8 Nov 2022 23:48:07 +0000 (23:48 +0000)
commit5dc21aeec7430f53118e2eecf62ec07e241251d1
treea974a2abd731336b58d5bae53d16d0c6d99bc4a5
parente0935bf2d1e00cc0b809c7177aabc13bb5e8115c
Only set up `NioPeerHandler` after chain sync completes

No peer connections must be made until after `chain_sync_complete`
is called when using the `ChannelManagerConstructor`, so
initializing the `NioPeerHandler` before then just tempts fate and
risks doing Bad Things.
src/main/java/org/ldk/batteries/ChannelManagerConstructor.java