Skip to content

Commit

Permalink
allow ffi to see lock height
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Feb 8, 2024
1 parent 0e9877e commit 52b07c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base_layer/wallet_ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ pub struct TariUtxo {
pub value: u64,
pub mined_height: u64,
pub mined_timestamp: u64,
pub lock_height: u64,
pub status: u8,
}

Expand All @@ -299,6 +300,7 @@ impl From<DbWalletOutput> for TariUtxo {
.into_raw(),
value: x.wallet_output.value.as_u64(),
mined_height: x.mined_height.unwrap_or(0),
lock_height: x.wallet_output.features.maturity,
mined_timestamp: x
.mined_timestamp
.map(|ts| ts.timestamp_millis() as u64)
Expand Down

0 comments on commit 52b07c1

Please sign in to comment.