diff --git a/node/db/keys.go b/node/db/keys.go index b0d50ddcd..e3cad5cca 100644 --- a/node/db/keys.go +++ b/node/db/keys.go @@ -10,7 +10,7 @@ var ( derivationL1HeightKey = []byte("LastDerivationL1Height") ) -// encodeBlockNumber encodes an L1 enqueue index as big endian uint64 +// encodeEnqueueIndex encodes an L1 enqueue index as big endian uint64 func encodeEnqueueIndex(index uint64) []byte { enc := make([]byte, 8) binary.BigEndian.PutUint64(enc, index) diff --git a/tx-submitter/services/rotator.go b/tx-submitter/services/rotator.go index bb5bb81af..f9cffd8ea 100644 --- a/tx-submitter/services/rotator.go +++ b/tx-submitter/services/rotator.go @@ -110,7 +110,7 @@ func (r *Rotator) UpdateState(clients []iface.L2Client, l1Staking iface.IL1Staki return nil } -// GetCurrentSubmitter returns the current sequencer that should be submitting +// CurrentSubmitter returns the current sequencer that should be submitting func (r *Rotator) CurrentSubmitter(clients []iface.L2Client, l1Staking iface.IL1Staking) (*common.Address, int64, error) { err := r.UpdateState(clients, l1Staking)