Skip to content

Commit 599e3c7

Browse files
authored
Merge pull request bnb-chain#2722 from fabioberger/fixTypos
README, core, rpc: Fix typos
2 parents 4f3f6e2 + a3efdb1 commit 599e3c7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The go-ethereum project comes with several wrappers/executables found in the `cm
4646

4747
| Command | Description |
4848
|:----------:|-------------|
49-
| **`geth`** | Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default) archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as an gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. Please see our [Command Line Options](https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options) wiki page for details. |
49+
| **`geth`** | Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default) archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. Please see our [Command Line Options](https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options) wiki page for details. |
5050
| `abigen` | Source code generator to convert Ethereum contract definitions into easy to use, compile-time type-safe Go packages. It operates on plain [Ethereum contract ABIs](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI) with expanded functionality if the contract bytecode is also available. However it also accepts Solidity source files, making development much more streamlined. Please see our [Native DApps](https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts) wiki page for details. |
5151
| `bootnode` | Stripped down version of our Ethereum client implementation that only takes part in the network node discovery protocol, but does not run any of the higher level application protocols. It can be used as a lightweight bootstrap node to aid in finding peers in private networks. |
5252
| `disasm` | Bytecode disassembler to convert EVM (Ethereum Virtual Machine) bytecode into more user friendly assembly-like opcodes (e.g. `echo "6001" | disasm`). For details on the individual opcodes, please see pages 22-30 of the [Ethereum Yellow Paper](http://gavwood.com/paper.pdf). |

‎core/block_validator.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func NewBlockValidator(config *ChainConfig, blockchain *BlockChain, pow pow.PoW)
6464
//
6565
// ValidateBlock also validates and makes sure that any previous state (or present)
6666
// state that might or might not be present is checked to make sure that fast
67-
// sync has done it's job proper. This prevents the block validator form accepting
67+
// sync has done it's job proper. This prevents the block validator from accepting
6868
// false positives where a header is present but the state is not.
6969
func (v *BlockValidator) ValidateBlock(block *types.Block) error {
7070
if v.bc.HasBlock(block.Hash()) {
@@ -139,7 +139,7 @@ func (v *BlockValidator) ValidateState(block, parent *types.Block, statedb *stat
139139
// error if any of the included uncle headers were invalid. It returns an error
140140
// if the validation failed.
141141
func (v *BlockValidator) VerifyUncles(block, parent *types.Block) error {
142-
// validate that there at most 2 uncles included in this block
142+
// validate that there are at most 2 uncles included in this block
143143
if len(block.Uncles()) > 2 {
144144
return ValidationError("Block can only contain maximum 2 uncles (contained %v)", len(block.Uncles()))
145145
}
@@ -193,7 +193,7 @@ func (v *BlockValidator) ValidateHeader(header, parent *types.Header, checkPow b
193193
if parent == nil {
194194
return ParentError(header.ParentHash)
195195
}
196-
// Short circuit if the header's already known or its parent missing
196+
// Short circuit if the header's already known or its parent is missing
197197
if v.bc.HasHeader(header.Hash()) {
198198
return nil
199199
}

‎rpc/doc.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ arguments. It will pass the mod argument as nil to the RPC method.
4949
The server offers the ServeCodec method which accepts a ServerCodec instance. It will
5050
read requests from the codec, process the request and sends the response back to the
5151
client using the codec. The server can execute requests concurrently. Responses
52-
can be send back to the client out of order.
52+
can be sent back to the client out of order.
5353
5454
An example server which uses the JSON codec:
5555
type CalculatorService struct {}

‎rpc/server.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (s *RPCService) Modules() map[string]string {
8282
return modules
8383
}
8484

85-
// RegisterName will create an service for the given rcvr type under the given name. When no methods on the given rcvr
85+
// RegisterName will create a service for the given rcvr type under the given name. When no methods on the given rcvr
8686
// match the criteria to be either a RPC method or a subscription an error is returned. Otherwise a new service is
8787
// created and added to the service collection this server instance serves.
8888
func (s *Server) RegisterName(name string, rcvr interface{}) error {
@@ -236,7 +236,7 @@ func (s *Server) ServeSingleRequest(codec ServerCodec, options CodecOption) {
236236
}
237237

238238
// Stop will stop reading new requests, wait for stopPendingRequestTimeout to allow pending requests to finish,
239-
// close all codecs which will cancels pending requests/subscriptions.
239+
// close all codecs which will cancel pending requests/subscriptions.
240240
func (s *Server) Stop() {
241241
if atomic.CompareAndSwapInt32(&s.run, 1, 0) {
242242
glog.V(logger.Debug).Infoln("RPC Server shutdown initiatied")
@@ -294,7 +294,7 @@ func (s *Server) handle(ctx context.Context, codec ServerCodec, req *serverReque
294294
return codec.CreateErrorResponse(&req.id, &callbackError{err.Error()}), nil
295295
}
296296

297-
// active the subscription after the sub id was successful sent to the client
297+
// active the subscription after the sub id was successfully sent to the client
298298
activateSub := func() {
299299
notifier, _ := NotifierFromContext(ctx)
300300
notifier.(*bufferedNotifier).activate(subid)

0 commit comments

Comments
 (0)