summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2023-11-30 12:38:44 -0800
committerJohn Wiegley <johnw@newartisans.com>2024-08-05 08:35:56 -0700
commit75e5eacebaf8b9ad3a18b6f1a91a8cb227fa5c9c (patch)
tree896d7f2d1496bd19b2c5ba7a8b97285908bfde0c /src/session.cc
parentf230125ecc0761e6bd082ac0d916db4f17f0278d (diff)
downloadfork-ledger-75e5eacebaf8b9ad3a18b6f1a91a8cb227fa5c9c.tar.gz
fork-ledger-75e5eacebaf8b9ad3a18b6f1a91a8cb227fa5c9c.tar.bz2
fork-ledger-75e5eacebaf8b9ad3a18b6f1a91a8cb227fa5c9c.zip
Add support for --hashes=sha512_256 as another algorithm
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session.cc b/src/session.cc
index 4587f24a..f02ee9e9 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -134,7 +134,7 @@ std::size_t session_t::read_data(const string& master_account)
parsing_context.push(*price_db_path);
parsing_context.get_current().journal = journal.get();
try {
- if (journal->read(parsing_context, HANDLED(hashes_)) > 0)
+ if (journal->read(parsing_context, HANDLER(hashes_).hash_type) > 0)
throw_(parse_error, _("Transactions not allowed in price history file"));
}
catch (...) {
@@ -169,7 +169,7 @@ std::size_t session_t::read_data(const string& master_account)
parsing_context.get_current().journal = journal.get();
parsing_context.get_current().master = acct;
try {
- xact_count += journal->read(parsing_context, HANDLED(hashes_));
+ xact_count += journal->read(parsing_context, HANDLER(hashes_).hash_type);
}
catch (...) {
parsing_context.pop();
@@ -230,7 +230,7 @@ journal_t * session_t::read_journal_from_string(const string& data)
parsing_context.get_current().journal = journal.get();
parsing_context.get_current().master = journal->master;
try {
- journal->read(parsing_context, HANDLED(hashes_));
+ journal->read(parsing_context, HANDLER(hashes_).hash_type);
}
catch (...) {
parsing_context.pop();