[#wallet-DbTxnListener] = xref:wallet.adoc[wallet]::DbTxnListener :relfileprefix: ../ :mrdocs: Callbacks invoked when a wallet database transaction commits or aborts. == Synopsis Declared in `<wallet/walletdb.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct DbTxnListener; ---- == Data Members [cols="1,4"] |=== | Name| Description | xref:wallet/DbTxnListener/on_abort.adoc[`on_abort`] | Callback invoked when the transaction commits (`on_commit`) and when it aborts (`on_abort`). | xref:wallet/DbTxnListener/on_commit.adoc[`on_commit`] | Callback invoked when the transaction commits (`on_commit`) and when it aborts (`on_abort`). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#