From 3a00daadd1f796175255f1299004d04fd803943b Mon Sep 17 00:00:00 2001 From: studystill Date: Wed, 24 Apr 2024 16:13:28 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: studystill --- core/eds_test.go | 2 +- nodebuilder/p2p/network.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/eds_test.go b/core/eds_test.go index 723cb77ad1..a8c113acb5 100644 --- a/core/eds_test.go +++ b/core/eds_test.go @@ -27,7 +27,7 @@ func TestTrulyEmptySquare(t *testing.T) { assert.Nil(t, eds) } -// TestNonZeroSquareSize tests that the DAH hash of a block with no transactions +// TestEmptySquareWithZeroTxs tests that the DAH hash of a block with no transactions // is equal to the DAH hash for an empty root even if SquareSize is set to // something non-zero. Technically, this block data is invalid because the // construction of the square is deterministic, and the rules which dictate the diff --git a/nodebuilder/p2p/network.go b/nodebuilder/p2p/network.go index eb44169ee6..4f83eea213 100644 --- a/nodebuilder/p2p/network.go +++ b/nodebuilder/p2p/network.go @@ -72,7 +72,7 @@ var networkAliases = map[string]Network{ // orderedNetworks is a list of all known networks in order of priority. var orderedNetworks = []Network{Mainnet, Mocha, Arabica, Private} -// GetOrderedNetworks provides a list of all known networks in order of priority. +// GetNetworks provides a list of all known networks in order of priority. func GetNetworks() []Network { return append([]Network(nil), orderedNetworks...) }