Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Mar 12, 2024
1 parent d05912d commit 9a2ac52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion persist/sqlite/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func (s *Store) updateMaturedBalances(dbTxn txn, update consensusUpdate, height
}

_, isRevert := update.(*chain.RevertUpdate)
if !isRevert {
if isRevert {
height++
}

Expand Down
2 changes: 1 addition & 1 deletion persist/sqlite/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);

Expand Down

0 comments on commit 9a2ac52

Please sign in to comment.