]> git.bitcoin.ninja Git - ldk-sample/commit
Use an explicit handle when spawning RPC calls 2021-09-0.0.101
authorMatt Corallo <git@bluematt.me>
Mon, 27 Sep 2021 20:03:12 +0000 (20:03 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 27 Sep 2021 20:23:58 +0000 (20:23 +0000)
commit5c4d2912e04af1d115c64cca32317e548e3c45a7
tree6adde82f8d7b2fbc0b7c45b7c81971084d135de8
parent41d5343e3bf15a5770c72e6d929917440a613f93
Use an explicit handle when spawning RPC calls

This resolves a panic like the following, which is caused when a
non-Tokio thread tries to broadcast a transaction, for example
when a transaction is broadcasted indirectly by the background
processor.

```
thread '<unnamed>' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', src/bitcoind_client.rs:253:9
```
src/bitcoind_client.rs
src/main.rs