mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-25 09:24:30 +00:00
p2p: cleanup unused arguments (#7079)
This is mostly just reading through the output of uparam, after noticing that there were a few places where we were ignoring some arguments.
This commit is contained in:
@@ -200,7 +200,7 @@ func (q *blockQueue) retry(height int64) {
|
||||
|
||||
// Success is called when a light block has been successfully verified and
|
||||
// processed
|
||||
func (q *blockQueue) success(height int64) {
|
||||
func (q *blockQueue) success() {
|
||||
q.mtx.Lock()
|
||||
defer q.mtx.Unlock()
|
||||
if q.terminal != nil && q.verifyHeight == q.terminal.Height {
|
||||
|
||||
@@ -58,7 +58,7 @@ loop:
|
||||
// assert that the queue serializes the blocks
|
||||
require.Equal(t, resp.block.Height, trackingHeight)
|
||||
trackingHeight--
|
||||
queue.success(resp.block.Height)
|
||||
queue.success()
|
||||
}
|
||||
|
||||
}
|
||||
@@ -105,7 +105,7 @@ func TestBlockQueueWithFailures(t *testing.T) {
|
||||
queue.retry(resp.block.Height)
|
||||
} else {
|
||||
trackingHeight--
|
||||
queue.success(resp.block.Height)
|
||||
queue.success()
|
||||
}
|
||||
|
||||
case <-queue.done():
|
||||
@@ -223,7 +223,7 @@ func TestBlockQueueStopTime(t *testing.T) {
|
||||
// assert that the queue serializes the blocks
|
||||
assert.Equal(t, resp.block.Height, trackingHeight)
|
||||
trackingHeight--
|
||||
queue.success(resp.block.Height)
|
||||
queue.success()
|
||||
|
||||
case <-queue.done():
|
||||
wg.Wait()
|
||||
@@ -268,7 +268,7 @@ loop:
|
||||
|
||||
case resp := <-queue.verifyNext():
|
||||
require.GreaterOrEqual(t, resp.block.Height, initialHeight)
|
||||
queue.success(resp.block.Height)
|
||||
queue.success()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ func (r *Reactor) backfill(
|
||||
}
|
||||
|
||||
trustedBlockID = resp.block.LastBlockID
|
||||
queue.success(resp.block.Height)
|
||||
queue.success()
|
||||
r.Logger.Info("backfill: verified and stored light block", "height", resp.block.Height)
|
||||
|
||||
lastValidatorSet = resp.block.ValidatorSet
|
||||
|
||||
Reference in New Issue
Block a user