From d02799591d360692f7c3efedf2161e339b305671 Mon Sep 17 00:00:00 2001 From: evenevent Date: Wed, 14 Aug 2024 00:45:31 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: evenevent --- integration_testing/mining_test.go | 2 +- integration_testing/tools.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration_testing/mining_test.go b/integration_testing/mining_test.go index facbce226..114690810 100644 --- a/integration_testing/mining_test.go +++ b/integration_testing/mining_test.go @@ -5,7 +5,7 @@ import ( "testing" ) -// TestSimpleBlockSync test if a node can mine blocks on regtest +// TestRegtestMiner test if a node can mine blocks on regtest func TestRegtestMiner(t *testing.T) { node1 := spawnNodeProtocol1(t, 18000, "node1") params := lib.DeSoTestnetParams diff --git a/integration_testing/tools.go b/integration_testing/tools.go index 94617bd18..8a005b2e1 100644 --- a/integration_testing/tools.go +++ b/integration_testing/tools.go @@ -275,7 +275,7 @@ func GetChainDBFromNode(t *testing.T, node *cmd.Node) *badger.DB { return db } -// compareNodesByDB will look through all records in nodeA and nodeB txindex databases and will compare them. +// compareNodesByTxIndex will look through all records in nodeA and nodeB txindex databases and will compare them. // The nodes pass this comparison iff they have identical states. func compareNodesByTxIndex(t *testing.T, nodeA *cmd.Node, nodeB *cmd.Node, verbose int) { var prefixList [][]byte @@ -289,7 +289,7 @@ func compareNodesByTxIndex(t *testing.T, nodeA *cmd.Node, nodeB *cmd.Node, verbo compareNodesByStateWithPrefixList(t, nodeA.TXIndex.TXIndexChain.DB(), nodeB.TXIndex.TXIndexChain.DB(), prefixList, verbose) } -// compareNodesByDB will look through all records in provided prefixList in nodeA and nodeB databases and will compare them. +// compareNodesByStateWithPrefixList will look through all records in provided prefixList in nodeA and nodeB databases and will compare them. // The nodes pass this comparison iff they have identical states. func compareNodesByStateWithPrefixList(t *testing.T, dbA *badger.DB, dbB *badger.DB, prefixList [][]byte, verbose int) { maxBytes := lib.SnapshotBatchSize