Returns whether a database transaction is currently active.
Declared in <wallet/walletdb.h>
<wallet/walletdb.h>
bool HasActiveTxn();
true if a transaction is active.