Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration_testing/mining_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions integration_testing/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down