You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: expose full TransactionRecord through FFI and wallet events (#614)
* feat: expose full `TransactionRecord` through FFI and wallet events
- Add FFI types for transaction direction, type, output role, and input/output details
- Enrich `FFITransactionRecord` with classification, details, label and serialized tx bytes
- Simplify `WalletEvent::TransactionReceived` to carry `Box<TransactionRecord>`
- Return `TransactionRecord` from `record_transaction` and propagate via `TransactionCheckResult`
- Refactor `OnTransactionReceivedCallback` to pass `*const FFITransactionRecord`
* fix: prevent `label` CString memory leak in transaction callback
Addresses CodeRabbit review comment on PR #614#614 (comment)
* refactor: combine received txid/amount into single mutex in test tracker
Addresses CodeRabbit review comment on PR #614#614 (comment)
* fix: correct `net_amount` assertion in FFI callback integration test
The test sends 1 DASH from the same wallet (same mnemonic) that the SPV
client tracks, making it an internal transfer where both inputs and
outputs belong to the wallet. The `net_amount` therefore equals
approximately `-fee`, not +100_000_000. Replace the strict amount pairing
assertion with a txid presence check and non-zero net_amount verification.
0 commit comments