At init time:
cfg_template_t *cfg = cfg_get_config_id(NCX_CFGID_RUNNING);
ncx_transaction_id_t save_id = cfg->cur_txid;

Later, get the cur_txid again and compare to to save_id. It the running datastore has been updated (or even an empty commit done) then the transaction-id will be updated.