Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #2321

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 consensus/istanbul/celo-ibft-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Returns the timeout for the given round
Broadcasts the given message to all connected participants.

`send(<Commit, H, R, V>, sender(m))`\
Sends the given message to to the sender of another message.
Sends the given message to the sender of another message.

#### PCRound
Asserts that all messages in the given prepared certificate share the same round and returns that round.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/_developers/dns-discovery-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ go get -u github.com/celo-org/celo-blockchain/cmd/ethkey
### Crawling the v4 DHT

Our first step is to compile a list of all reachable nodes. The DHT crawler in cmd/devp2p
is a batch process which runs for a set amount of time. You should should schedule this command
is a batch process which runs for a set amount of time. You should schedule this command
to run at a regular interval. To create a node list, run

```shell
Expand Down
2 changes: 1 addition & 1 deletion miner/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func prepareBlock(w *worker) (*blockState, error) {
err := w.chain.RecoverRandomnessCache(lastCommitment, b.header.ParentHash)
if err != nil {
log.Error("Error in recovering randomness cache", "error", err, "number", header.Number.Uint64())
return b, errors.New("failed to to recover the randomness cache after miss")
return b, errors.New("failed to recover the randomness cache after miss")
}
lastRandomnessParentHash = rawdb.ReadRandomCommitmentCache(w.db, lastCommitment)
if (lastRandomnessParentHash == common.Hash{}) {
Expand Down
2 changes: 1 addition & 1 deletion signer/core/signed_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (api *SignerAPI) EcRecover(ctx context.Context, data hexutil.Bytes, sig hex
// addr = ecrecover(hash, signature)
//
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
// the V value must be be 27 or 28 for legacy reasons.
// the V value must be 27 or 28 for legacy reasons.
//
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
if len(sig) != 65 {
Expand Down