Skip to content

Commit 1b15ba9

Browse files
Merge #7: Make MerkleProof and OutputStatus fields pub
692c744 Make `MerkleProof` and `OutputStatus` fields `pub` (Elias Rohrer) Pull request description: This is yet another small bugfix: if we actually want to use these structs, we need to make the fields public. Sorry for the oversight! Top commit has no ACKs. Tree-SHA512: 3ac25d47f277f6020452bb324e011bb47a2297071ddf561f6f4875a36e3ea5d9ad405e3a50c267974964ef9db199cfa003aab86162037bd630d2b0efe85a3150
2 parents eb03642 + 692c744 commit 1b15ba9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/api.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ pub struct TxStatus {
4242

4343
#[derive(Deserialize, Clone, Debug, PartialEq)]
4444
pub struct MerkleProof {
45-
block_height: u32,
46-
merkle: Vec<Txid>,
47-
pos: usize,
45+
pub block_height: u32,
46+
pub merkle: Vec<Txid>,
47+
pub pos: usize,
4848
}
4949

5050
#[derive(Deserialize, Clone, Debug, PartialEq)]
5151
pub struct OutputStatus {
52-
spent: bool,
53-
txid: Option<Txid>,
54-
vin: Option<u64>,
55-
status: Option<TxStatus>,
52+
pub spent: bool,
53+
pub txid: Option<Txid>,
54+
pub vin: Option<u64>,
55+
pub status: Option<TxStatus>,
5656
}
5757

5858
#[derive(Deserialize, Clone, Debug)]

0 commit comments

Comments
 (0)