Skip to content

Commit c7c846e

Browse files
chore: fix some typos in comment (gcash#567)
Signed-off-by: wangcundashang <wangcundashang@qq.com>
1 parent a5bffa7 commit c7c846e

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

bchrpc/regtest/bchd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ regtestanyhost=1
5555

5656
; Use Universal Plug and Play (UPnP) to automatically open the listen port
5757
; and obtain the external IP address from supported devices. NOTE: This option
58-
; will have no effect if exernal IP addresses are specified.
58+
; will have no effect if external IP addresses are specified.
5959
; upnp=1
6060

6161
; Specify the external IP addresses your node is listening on. One address per

bchrpc/regtest/lib/rpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface RpcPeerInfoRes {
3434
addr: string;
3535
addnode: boolean;
3636

37-
// TODO: type this inteface
37+
// TODO: type this interface
3838
// "id": n, (numeric) Peer index
3939
// "addr":"host:port", (string) The IP address and port of the peer
4040
// "addrbind":"ip:port", (string) Bind address of the connection to the peer

btcjson/jsonrpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (request *Request) UnmarshalJSON(b []byte) error {
9494
}
9595
paramsValue, hasParams := data["params"]
9696
if !hasParams {
97-
// set the request param to an empty array if it is ommited in the request
97+
// set the request param to an empty array if it is omitted in the request
9898
request.Params = []json.RawMessage{}
9999
}
100100
if hasParams {

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ type config struct {
158158
MaxOrphanTxs int `long:"maxorphantx" description:"Max number of orphan transactions to keep in memory"`
159159
Generate bool `long:"generate" description:"Generate (mine) bitcoins using the CPU"`
160160
MiningAddrs []string `long:"miningaddr" description:"Add the specified payment address to the list of addresses to use for generated blocks -- At least one address is required if the generate option is set"`
161-
BlockMinSize uint32 `long:"blockminsize" description:"Mininum block size in bytes to be used when creating a block"`
161+
BlockMinSize uint32 `long:"blockminsize" description:"Minimum block size in bytes to be used when creating a block"`
162162
BlockMaxSize uint32 `long:"blockmaxsize" description:"Maximum block size in bytes to be used when creating a block"`
163163
BlockPrioritySize uint32 `long:"blockprioritysize" description:"Size in bytes for high-priority/low-fee transactions when creating a block"`
164164
CoinbaseFlags string `long:"cbflags" description:"Comment to append to the coinbase input when generating a block template." default:"/bchd/"`

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Application Options:
107107
addresses to use for generated blocks -- At least
108108
one address is required if the generate option is
109109
set
110-
--blockminsize= Mininum block size in bytes to be used when creating
110+
--blockminsize= Minimum block size in bytes to be used when creating
111111
a block
112112
--blockmaxsize= Maximum block size in bytes to be used when creating
113113
a block (750000)

sample-bchd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
; Use Universal Plug and Play (UPnP) to automatically open the listen port
6666
; and obtain the external IP address from supported devices. NOTE: This option
67-
; will have no effect if exernal IP addresses are specified.
67+
; will have no effect if external IP addresses are specified.
6868
; upnp=1
6969

7070
; Specify the external IP addresses your node is listening on. One address per

0 commit comments

Comments
 (0)