Skip to content

Instantly share code, notes, and snippets.

@jwiegley
Created November 22, 2023 22:45
Show Gist options
  • Save jwiegley/76daf2b8ac9b6d8c8f41197c2723ccf9 to your computer and use it in GitHub Desktop.
Save jwiegley/76daf2b8ac9b6d8c8f41197c2723ccf9 to your computer and use it in GitHub Desktop.
string hash = xact->hash(previous_xact ? previous_xact->get_tag("Hash") : "");
if (xact.has_tag("Hash")) {
assert(hash == xact->get_tag("Hash"));
} else {
xact->set_tag("Hash", hash);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment