Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/rs-platform-wallet-ffi/src/core_address_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ pub struct CoreAddressEntryFFI {
pub pool_type_tag: u8,
/// Derivation index within this pool.
pub address_index: u32,
/// Whether funds had been seen at this address at emit time, i.e.
/// `AddressInfo.state == AddressState::Used`.
/// Whether the address must not be handed out again: funds were seen
/// at it (`AddressState::Used`), or it is reserved
/// (`AddressState::Reserved`).
///
/// This schema has no slot for a reservation, so an
/// `AddressState::Reserved` entry necessarily flattens to `false`
/// and reloads as `Available`. Nothing in platform reserves
/// addresses today, so that lossy case is unreachable; adding a
/// reserving caller requires a schema decision here first (see
/// This schema has no slot for a reservation, and the row is a reuse
/// guard, so a reservation is stored as `true` and reloads as `Used`.
/// Releasing it stores `false` again. The one reserving caller is the
/// two-step DashPay contact payment (see
/// `persistence::build_core_address_entry_ffi`).
pub is_used: bool,
/// Cached balance in duffs from `AddressInfo.balance`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{check_ptr, unwrap_option_or_return, unwrap_result_or_return};
use platform_wallet::PlatformWalletError;
use std::os::raw::c_char;

fn classify_broadcast_result(
pub(crate) fn classify_broadcast_result(
result: Result<dashcore::Txid, PlatformWalletError>,
local_txid: dashcore::Txid,
) -> (Option<dashcore::Txid>, PlatformWalletFFIResult) {
Expand Down
Loading
Loading