From 35eff2202db0d2d5ec6bf87b49205d9f61612808 Mon Sep 17 00:00:00 2001 From: Kevin O'Donnell Date: Wed, 19 Feb 2020 16:45:45 -0500 Subject: [PATCH] Remove redundant add to stateList Signed-off-by: Kevin O'Donnell --- src/main/java/com/blockchaintp/daml/QldbCommitter.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/blockchaintp/daml/QldbCommitter.java b/src/main/java/com/blockchaintp/daml/QldbCommitter.java index fb54271f..bc804d40 100644 --- a/src/main/java/com/blockchaintp/daml/QldbCommitter.java +++ b/src/main/java/com/blockchaintp/daml/QldbCommitter.java @@ -116,12 +116,8 @@ public void processSubmission(SubmissionWrapper submission) { stateList.add(state); state.updateBulkStore(); } - newQldbLogEntry.updateBulkStore(); - for (java.util.Map.Entry mapE : outputMap.entrySet()) { - QldbDamlState state = QldbDamlState.create(this.ledger, mapE.getKey(), mapE.getValue()); - stateList.add(state); - } + session = this.ledger.connect(); txn = session.startTransaction(); newQldbLogEntry.upsert(txn); @@ -172,12 +168,12 @@ public void run() { private class SubmissionWrapper { private final DamlLogEntryId damlLogEntryId; private final DamlSubmission damlSubmission; - + public SubmissionWrapper(final DamlLogEntryId newDamlLogEntryId, final DamlSubmission newDamlSubmission) { this.damlLogEntryId = newDamlLogEntryId; this.damlSubmission = newDamlSubmission; } - + public DamlLogEntryId getDamlLogEntryId() { return this.damlLogEntryId; }