Skip to content

Commit

Permalink
Updated files as per comments changed name and commented removed part…
Browse files Browse the repository at this point in the history
… in migration folder
  • Loading branch information
Shailu-s committed Nov 13, 2024
1 parent bd2f5e4 commit ed5628f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sequencer/database/migrations/0001.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ CREATE TABLE batch (
batch_num BIGINT UNIQUE NOT NULL,
eth_block_num BIGINT NOT NULL REFERENCES block (eth_block_num) ON DELETE CASCADE,
forger_addr BYTEA NOT NULL, -- fake foreign key for coordinator
-- fees_collected BYTEA NOT NULL,
-- fee_idxs_coordinator BYTEA NOT NULL,
state_root DECIMAL(78,0) NOT NULL,
num_accounts BIGINT NOT NULL,
last_idx BIGINT NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion sequencer/database/statedb/vouch_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func performTxVouch(sto db.Storage, idx common.VouchIdx,
}

// CurrentIdx returns the current in-memory CurrentIdx of the StateDB.db
func (s *StateDB) CurrentVouchIdx() common.VouchIdx {
func (s *StateDB) GetCurrentVouchIdx() common.VouchIdx {
return s.db.CurrentVouchIdx
}

Expand Down

0 comments on commit ed5628f

Please sign in to comment.