From 0077df5d4fd3dbf3cfbfd357c02649b65b49933a Mon Sep 17 00:00:00 2001 From: studystill <137779852+studystill@users.noreply.github.com> Date: Fri, 10 May 2024 18:16:28 +0800 Subject: [PATCH] chore: fix function names in comment (#3337) 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 92d78c3064..e8528eebe0 100644 --- a/core/eds_test.go +++ b/core/eds_test.go @@ -27,7 +27,7 @@ func TestTrulyEmptySquare(t *testing.T) { require.True(t, eds.Equals(share.EmptyExtendedDataSquare())) } -// 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...) }