From dd34d62963880d715a2496683f7639dc4899a810 Mon Sep 17 00:00:00 2001 From: bytetigers Date: Tue, 13 Aug 2024 21:34:19 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: bytetigers --- accounts/abi/type.go | 2 +- consensus/quorum/one-node-one-vote.go | 2 +- consensus/quorum/one-node-staked-vote.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/accounts/abi/type.go b/accounts/abi/type.go index ffa3acafe9..fc47cc919d 100644 --- a/accounts/abi/type.go +++ b/accounts/abi/type.go @@ -350,7 +350,7 @@ func (t Type) pack(v reflect.Value) ([]byte, error) { } } -// requireLengthPrefix returns whether the type requires any sort of length +// requiresLengthPrefix returns whether the type requires any sort of length // prefixing. func (t Type) requiresLengthPrefix() bool { return t.T == StringTy || t.T == BytesTy || t.T == SliceTy diff --git a/consensus/quorum/one-node-one-vote.go b/consensus/quorum/one-node-one-vote.go index e9e229fdf3..906e2b53a5 100644 --- a/consensus/quorum/one-node-one-vote.go +++ b/consensus/quorum/one-node-one-vote.go @@ -53,7 +53,7 @@ func (v *uniformVoteWeight) IsQuorumAchieved(p Phase) bool { return r } -// IsQuorumAchivedByMask .. +// IsQuorumAchievedByMask .. func (v *uniformVoteWeight) IsQuorumAchievedByMask(mask *bls_cosi.Mask) bool { if mask == nil { return false diff --git a/consensus/quorum/one-node-staked-vote.go b/consensus/quorum/one-node-staked-vote.go index 2532f9691e..31c8f33b28 100644 --- a/consensus/quorum/one-node-staked-vote.go +++ b/consensus/quorum/one-node-staked-vote.go @@ -147,7 +147,7 @@ func (v *stakedVoteWeight) IsQuorumAchieved(p Phase) bool { } } -// IsQuorumAchivedByMask .. +// IsQuorumAchievedByMask .. func (v *stakedVoteWeight) IsQuorumAchievedByMask(mask *bls_cosi.Mask) bool { threshold := v.QuorumThreshold() if mask == nil {