diff --git a/sequencer/database/migrations/0001.sql b/sequencer/database/migrations/0001.sql index 59592fc..e04b440 100644 --- a/sequencer/database/migrations/0001.sql +++ b/sequencer/database/migrations/0001.sql @@ -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, diff --git a/sequencer/database/statedb/vouch_service.go b/sequencer/database/statedb/vouch_service.go index 76071bd..9c7d2b2 100644 --- a/sequencer/database/statedb/vouch_service.go +++ b/sequencer/database/statedb/vouch_service.go @@ -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 }