-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() #4180
feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() #4180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice looks good - just one change RE the runtime.
Please also add details to the PR description
base_layer/wallet_ffi/src/lib.rs
Outdated
dust_threshold | ||
); | ||
|
||
let rt = match Runtime::new() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wallet already has a runtime (it's an anti-pattern to create multiple runtimes)
wallet.runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that's right, removed new runtime initialization and using:
match (*wallet)
.runtime
.block_on((*wallet).wallet.output_manager_service.get_unspent_outputs())
{
Ok(mut unblinded_outputs) => {
like in other places, thanks!
…to testnet-dibbler clippy satisfaction
…to testnet-dibbler
* testnet-dibbler: v0.32.5 chore: update toolchain and fix clippy (tari-project#4212) feat(wallet_ffi): wallet_get_utxos() (tari-project#4209) chore: bump lmdb-sys dependency (tari-project#4195) chore(deps): upgrade randomx (tari-project#4196) Bump croaring to 0.5.2 - improve cross-compile in docker bug: remove deprecated tauri config variable (tari-project#4194) feat: generate wallet ffi header file automatically (tari-project#4183) v0.32.4 feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() (tari-project#4180)
* testnet-dibbler: v0.32.5 chore: update toolchain and fix clippy (tari-project#4212) feat(wallet_ffi): wallet_get_utxos() (tari-project#4209) chore: bump lmdb-sys dependency (tari-project#4195) chore(deps): upgrade randomx (tari-project#4196) Bump croaring to 0.5.2 - improve cross-compile in docker bug: remove deprecated tauri config variable (tari-project#4194) feat: generate wallet ffi header file automatically (tari-project#4183) v0.32.4 feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() (tari-project#4180)
* development: fix clippies remove tari_core_from cbindgen build feat(miner): friendlier miner output (tari-project#4219) v0.32.5 chore: update toolchain and fix clippy (tari-project#4212) feat(wallet_ffi): wallet_get_utxos() (tari-project#4209) chore: bump lmdb-sys dependency (tari-project#4195) chore(deps): upgrade randomx (tari-project#4196) Bump croaring to 0.5.2 - improve cross-compile in docker bug: remove deprecated tauri config variable (tari-project#4194) feat: generate wallet ffi header file automatically (tari-project#4183) v0.32.4 feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() (tari-project#4180)
Motivation and Context
To allow client app (mobile) to get a paginated list of unspent outputs, filtered by a minimum value threshold.
How Has This Been Tested?
unit test