Skip to content

Commit

Permalink
lib: pub fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rustaceanrob committed Jun 3, 2024
1 parent d5928ff commit 9dd61a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"recommendations": [
"rust-lang.rust-analyzer"
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"usernamehw.errorlens",
]
}
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ impl IndexedTransaction {
#[derive(Debug, Clone, Copy)]
pub struct DisconnectedHeader {
/// The height where this header used to be in the chain.
height: u32,
pub height: u32,
/// The reorganized header.
header: Header,
pub header: Header,
}

impl DisconnectedHeader {
Expand All @@ -58,9 +58,9 @@ impl DisconnectedHeader {
#[derive(Debug, Clone)]
pub struct IndexedBlock {
/// The height or index in the chain.
height: u32,
pub height: u32,
/// The Bitcoin block with some matching script.
block: Block,
pub block: Block,
}

impl IndexedBlock {
Expand Down

0 comments on commit 9dd61a1

Please sign in to comment.