mimblewimble / grin-wallet

Grin Wallet
Apache License 2.0
183 stars 133 forks source link

Store retrieved kernel height at TxLogEntry structure #715

Closed ardocrat closed 3 months ago

ardocrat commented 3 months ago

Useful to store transaction kernel block height at grin_wallet_libwallet::TxLogEntry to calculate left confirmations amount and to know when transaction was exactly included into block without extra API calls from outside, now we are just marking tx as confirmed with current time at update_txs_via_kernel from grin_wallet_libwallet::owner::update_wallet_state.

ardocrat commented 3 months ago

Makes no sense to request kernel height here, cause its always 0 for unconfirmed txs.