diff --git a/lib/src/lightclient.rs b/lib/src/lightclient.rs index efa6206..622c019 100644 --- a/lib/src/lightclient.rs +++ b/lib/src/lightclient.rs @@ -836,7 +836,6 @@ impl LightClient { "address" => LightWallet::note_address(self.config.hrp_sapling_address(), nd), "spent" => nd.spent.map(|spent_txid| format!("{}", spent_txid)), "spent_at_height" => nd.spent_at_height.map(|h| format!("{}", h)), - "witness_size" => nd.witnesses.len(), "unconfirmed_spent" => nd.unconfirmed_spent.map(|spent_txid| format!("{}", spent_txid)), }) } diff --git a/lib/src/lightwallet/data.rs b/lib/src/lightwallet/data.rs index 11864de..c0d6bf5 100644 --- a/lib/src/lightwallet/data.rs +++ b/lib/src/lightwallet/data.rs @@ -65,7 +65,7 @@ pub struct SaplingNoteData { pub(super) extfvk: ExtendedFullViewingKey, // Technically, this should be recoverable from the account number, but we're going to refactor this in the future, so I'll write it again here. pub diversifier: Diversifier, pub note: Note, - pub witnesses: Vec>, + pub(super) witnesses: Vec>, pub(super) nullifier: [u8; 32], pub spent: Option, // If this note was confirmed spent pub spent_at_height: Option, // The height at which this note was spent