Skip to content

Commit 0e7cbb9

Browse files
committed
joinstr: make State fields publics
1 parent 7f2f436 commit 0e7cbb9

File tree

1 file changed

+12
-12
lines changed
  • rust/joinstr/src/joinstr

1 file changed

+12
-12
lines changed

rust/joinstr/src/joinstr/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ pub struct JoinstrInner<'a> {
9595

9696
#[derive(Debug, Clone, Serialize, Deserialize)]
9797
pub struct State {
98-
role: Role,
99-
pool_secret_key: String, /* nostr::Keys*/
100-
relay: String,
101-
electrum: Option<(String, u16)>,
102-
pool: Pool,
103-
input: Option<Coin>,
104-
output: Option<Address<NetworkUnchecked>>,
105-
network: bitcoin::Network,
106-
final_tx: Option<bitcoin::Transaction>,
98+
pub role: Role,
99+
pub pool_secret_key: String, /* nostr::Keys*/
100+
pub relay: String,
101+
pub electrum: Option<(String, u16)>,
102+
pub pool: Pool,
103+
pub input: Option<Coin>,
104+
pub output: Option<Address<NetworkUnchecked>>,
105+
pub network: bitcoin::Network,
106+
pub final_tx: Option<bitcoin::Transaction>,
107107
// requests history
108-
peers: Vec<nostr::PublicKey>,
109-
outputs: Vec<bitcoin::Address<NetworkUnchecked>>,
110-
inputs: Vec<serde_json::Value /* InputDataSigned*/>,
108+
pub peers: Vec<nostr::PublicKey>,
109+
pub outputs: Vec<bitcoin::Address<NetworkUnchecked>>,
110+
pub inputs: Vec<serde_json::Value /* InputDataSigned*/>,
111111
}
112112

113113
impl Default for JoinstrInner<'_> {

0 commit comments

Comments
 (0)