Don't register entry ID until after processing its transactions

This commit is contained in:
Greg Fitzgerald 2018-05-31 11:46:19 -06:00
parent 80f07dadc5
commit 587ab29e09
1 changed files with 1 additions and 1 deletions

View File

@ -265,10 +265,10 @@ impl Bank {
I: IntoIterator<Item = Entry>, I: IntoIterator<Item = Entry>,
{ {
for entry in entries { for entry in entries {
self.register_entry_id(&entry.id);
for result in self.process_transactions(entry.transactions) { for result in self.process_transactions(entry.transactions) {
result?; result?;
} }
self.register_entry_id(&entry.id);
} }
Ok(()) Ok(())
} }