Skip to content

Commit 13256b0

Browse files
committed
Merge #272: Expose JsonOutPoint
158e7a0 Expose JsonOutPoint (Casey Rodarmor) Pull request description: I'm implementing an in-memory dummy Bitcoin Core RPC server for testing. Exposing `JsonOutPoint` is necessary in order to implement `lockunspent`, which takes `JsonOutPoint`s instead of `OutPoint`s. ACKs for top commit: apoelstra: ACK 158e7a0 Tree-SHA512: 4cec4bc9902e127296ffb06ce9c1e3784188b820053ffd00e8d12102479999f79e25ff670ab3070d2ca469a168995186afaca3e9942656ae47129eebfb4e6cee
2 parents c7f3370 + 158e7a0 commit 13256b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/client.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ use crate::queryable;
3434
/// crate-specific Error type;
3535
pub type Result<T> = result::Result<T, Error>;
3636

37+
/// Outpoint that serializes and deserializes as a map, instead of a string,
38+
/// for use as RPC arguments
3739
#[derive(Clone, Debug, Serialize, Deserialize)]
38-
struct JsonOutPoint {
40+
pub struct JsonOutPoint {
3941
pub txid: bitcoin::Txid,
4042
pub vout: u32,
4143
}

0 commit comments

Comments
 (0)