Skip to content

Commit

Permalink
Fix balance locking (#2116)
Browse files Browse the repository at this point in the history
* block on balance only for non-wasm

* unpub

* move doc

* fix balance and sync_pending_transactions locking

* remove fn

* check for staking

---------

Co-authored-by: Thibault Martinez <[email protected]>
Co-authored-by: Thoralf Müller <[email protected]>
Co-authored-by: Thoralf-M <[email protected]>
  • Loading branch information
4 people authored Mar 5, 2024
1 parent 8c83dcf commit c8f3682
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 311 deletions.
5 changes: 0 additions & 5 deletions sdk/src/wallet/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,6 @@ impl<S: 'static + SecretManage> Wallet<S> {
self.ledger.write().await
}

/// Get the wallet's ledger RwLock.
pub(crate) fn ledger_rw(&self) -> &Arc<tokio::sync::RwLock<WalletLedger>> {
&self.ledger
}

#[cfg(feature = "storage")]
pub(crate) fn storage_manager(&self) -> &StorageManager {
&self.storage_manager
Expand Down
Loading

0 comments on commit c8f3682

Please sign in to comment.