From e6e5e2b781743b4217f5537b58bc4d1680b7ee5d Mon Sep 17 00:00:00 2001 From: bladehan1 Date: Mon, 25 Sep 2023 11:33:27 +0800 Subject: [PATCH] opt: doc and code optimize --- cmd/utils/flags.go | 2 +- consensus/bor/merkle.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 957ed7abd..e0f646075 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -227,7 +227,7 @@ var ( } TxLookupLimitFlag = cli.Uint64Flag{ Name: "txlookuplimit", - Usage: "Number of recent blocks to maintain transactions index for (default = about one year, 0 = entire chain)", + Usage: "Number of recent blocks to maintain transactions index for (default = about 56 days, 0 = entire chain)", Value: ethconfig.Defaults.TxLookupLimit, } LightKDFFlag = cli.BoolFlag{ diff --git a/consensus/bor/merkle.go b/consensus/bor/merkle.go index bdfbaba98..6b772c97d 100644 --- a/consensus/bor/merkle.go +++ b/consensus/bor/merkle.go @@ -36,7 +36,7 @@ func convertTo32(input []byte) (output [32]byte, err error) { return } -func convert(input []([32]byte)) [][]byte { +func convert(input [][32]byte) [][]byte { var output [][]byte for _, in := range input { newInput := make([]byte, len(in[:]))