Skip to content

Commit

Permalink
Linter appeasements to achieve perfection
Browse files Browse the repository at this point in the history
  • Loading branch information
ABastionOfSanity committed Jul 28, 2022
1 parent f235c6d commit 2cea702
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
14 changes: 8 additions & 6 deletions cmd/geth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ import (
"context"
"errors"
"fmt"
"math/big"
"os"
"reflect"
"time"
"unicode"

"github.com/urfave/cli/v2"

"github.com/ethereum/go-ethereum/accounts/external"
"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/ethereum/go-ethereum/accounts/scwallet"
Expand All @@ -41,12 +49,6 @@ import (
"github.com/ethereum/go-ethereum/statediff/indexer/interfaces"
"github.com/ethereum/go-ethereum/statediff/indexer/shared"
"github.com/naoina/toml"
"github.com/urfave/cli/v2"
"math/big"
"os"
"reflect"
"time"
"unicode"
)

var (
Expand Down
1 change: 0 additions & 1 deletion statediff/indexer/ipld/eth_tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ func TestEthTxResolve(t *testing.T) {
t.Fatalf("error should be nil %v", gc)
}
}

}

func TestEthTxTree(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion statediff/indexer/ipld/eth_tx_trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ func TestTxTrieResolveBranch(t *testing.T) {
if err != nil {
t.Fatal("Error should be nil")
}

}
}

Expand Down
2 changes: 0 additions & 2 deletions statediff/known_gaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (kg *KnownGapsState) captureErrorBlocks(knownErrorBlocks []*big.Int) {
log.Warn("The following Gaps were found", "knownErrorBlocks", knownErrorBlocks)
log.Warn("Updating known Gaps table", "startErrorBlock", startErrorBlock, "endErrorBlock", endErrorBlock, "processingKey", kg.processingKey)
kg.pushKnownGaps(startErrorBlock, endErrorBlock, false, kg.processingKey)

}

// Users provide the latestBlockInDb and the latestBlockOnChain
Expand All @@ -153,7 +152,6 @@ func isGap(latestBlockInDb *big.Int, latestBlockOnChain *big.Int, expectedDiffer
return true
}
return false

}

// This function will check for Gaps and update the DB if gaps are found.
Expand Down
2 changes: 0 additions & 2 deletions statediff/known_gaps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func testWriteToDb(t *testing.T, tests []gapValues, wipeDbBeforeStart bool) {
validateUpsert(t, service, tc.knownErrorBlocksStart, tc.knownErrorBlocksEnd)
}
tearDown(t, db)

}

// test writing blocks to file and then inserting them to DB
Expand Down Expand Up @@ -166,7 +165,6 @@ func testFindAndUpdateGaps(t *testing.T, wipeDbBeforeStart bool) {
startBlock.Add(latestBlockInDb, expectedDifference)
endBlock.Sub(latestBlockOnChain, expectedDifference)
validateUpsert(t, service, startBlock.Int64(), endBlock.Int64())

}

// test capturing missed blocks
Expand Down

0 comments on commit 2cea702

Please sign in to comment.