Surface bitcoind rpc error code
authorJohn Cantrell <johncantrell@tbd.email>
Tue, 28 Feb 2023 16:39:29 +0000 (11:39 -0500)
committerJohn Cantrell <johncantrell@tbd.email>
Tue, 28 Feb 2023 19:03:28 +0000 (14:03 -0500)
commita7af24bf3c7cb65718fea0841b60906f01734792
treee53c17e468917f3536efe2fb28350697520bfd18
parent8311581fe110a9ee561a6fda6b55c78a02068d43
Surface bitcoind rpc error code

Users of the RpcClient had no way to access the error code
returned by bitcoind's rpc.  We embed a new RpcError struct
as the inner error for the returned io::Error. Users can access
both the code and the message using this inner struct.
lightning-block-sync/src/rpc.rs