]> git.bitcoin.ninja Git - rust-lightning/commit
Cache socket address in HttpClient for reconnect
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 27 May 2021 15:53:14 +0000 (08:53 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 27 May 2021 15:53:14 +0000 (08:53 -0700)
commit4a12d7656ef8355bfd41f57f2350de4b14bda935
treeef2a372b35d4d03404f737c6cf5ed5272a0bc887
parent8e7b5905fd84999318bdcf9cbcb9cfecbf58f532
Cache socket address in HttpClient for reconnect

If the HttpClient attempts to reconnect to bitcoind that is no longer
running, the client fails to get the address from the stream. Cache the
address when connecting to prevent this.
lightning-block-sync/src/http.rs