From 9a2ac52c818c41b4833d7de2ada6da7e6e1131c2 Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Tue, 12 Mar 2024 18:31:39 -0400 Subject: [PATCH] review fixes --- persist/sqlite/consensus.go | 2 +- persist/sqlite/init.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/persist/sqlite/consensus.go b/persist/sqlite/consensus.go index 55d19ddc..2f5b2ebc 100644 --- a/persist/sqlite/consensus.go +++ b/persist/sqlite/consensus.go @@ -369,7 +369,7 @@ func (s *Store) updateMaturedBalances(dbTxn txn, update consensusUpdate, height } _, isRevert := update.(*chain.RevertUpdate) - if !isRevert { + if isRevert { height++ } diff --git a/persist/sqlite/init.sql b/persist/sqlite/init.sql index 0c2b750e..d253cd3c 100644 --- a/persist/sqlite/init.sql +++ b/persist/sqlite/init.sql @@ -190,7 +190,7 @@ CREATE TABLE transaction_file_contract_revisions ( transaction_order INTEGER NOT NULL, contract_id INTEGER REFERENCES file_contract_elements(id) ON DELETE CASCADE NOT NULL, parent_id BLOB UNIQUE NOT NULL, - unlock_conditions BLOB UNIQUE NOT NULL, + unlock_conditions BLOB NOT NULL, UNIQUE(transaction_id, transaction_order) );