Remove witness site from JSON

This commit is contained in:
Aditya Kulkarni 2020-07-22 10:18:13 -07:00
parent 49a91a9a29
commit 25108df815
2 changed files with 1 additions and 2 deletions

View File

@ -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)),
})
}

View File

@ -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<Bls12>,
pub witnesses: Vec<IncrementalWitness<Node>>,
pub(super) witnesses: Vec<IncrementalWitness<Node>>,
pub(super) nullifier: [u8; 32],
pub spent: Option<TxId>, // If this note was confirmed spent
pub spent_at_height: Option<i32>, // The height at which this note was spent