Browse Source

Remove witness site from JSON

danger
DenioD 4 years ago
parent
commit
c5a2a92b72
  1. 1
      lib/src/lightclient.rs
  2. 2
      lib/src/lightwallet/data.rs

1
lib/src/lightclient.rs

@ -791,7 +791,6 @@ impl LightClient {
"spendable" => spendable,
"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)),
})
}

2
lib/src/lightwallet/data.rs

@ -66,7 +66,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

Loading…
Cancel
Save