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

Fix some typos #2085

Merged
merged 5 commits into from
Jan 3, 2024
Merged
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 Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# docker build . -t yourregistry/btcd
#
# You can use the following command to buid an arm64v8 container:
# You can use the following command to build an arm64v8 container:
#
# docker build . -t yourregistry/btcd --build-arg ARCH=arm64v8
#
Expand Down
2 changes: 1 addition & 1 deletion blockchain/sizehelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
avgEntrySize = baseEntrySize + (pubKeyHashLen + 7)
)

// The code here is shamelessely taken from the go runtime package. All the relevant
// The code here is shamelessly taken from the go runtime package. All the relevant
// code and variables are copied to here. These values are only correct for a 64 bit
// system.

Expand Down
2 changes: 1 addition & 1 deletion blockchain/utxocache.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const (
// utxoFlushPeriodicInterval is the interval at which a flush is performed
// when the flush mode FlushPeriodic is used. This is used when the initial
// block download is complete and it's useful to flush periodically in case
// of unforseen shutdowns.
// of unforeseen shutdowns.
utxoFlushPeriodicInterval = time.Minute * 5
)

Expand Down
2 changes: 1 addition & 1 deletion blockchain/utxocache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func TestUtxoCacheEntrySize(t *testing.T) {
}
return blocks
}(),
// Multipled by 6 since we'll have 6 entries left.
// Multiplied by 6 since we'll have 6 entries left.
expectedSize: (pubKeyHashLen + baseEntrySize) * 6,
},
{
Expand Down
2 changes: 1 addition & 1 deletion sample-btcd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

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

; Specify the external IP addresses your node is listening on. One address per
Expand Down
6 changes: 3 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (sp *serverPeer) OnVersion(_ *peer.Peer, msg *wire.MsgVersion) *wire.MsgRej
addrManager.SetServices(remoteAddr, msg.Services)
}

// Ignore peers that have a protcol version that is too old. The peer
// Ignore peers that have a protocol version that is too old. The peer
// negotiation logic will disconnect it after this callback returns.
if msg.ProtocolVersion < int32(peer.MinAcceptableProtocolVersion) {
return nil
Expand Down Expand Up @@ -2204,7 +2204,7 @@ func (s *server) outboundPeerConnected(c *connmgr.ConnReq, conn net.Conn) {
go s.peerDoneHandler(sp)
}

// peerDoneHandler handles peer disconnects by notifiying the server that it's
// peerDoneHandler handles peer disconnects by notifying the server that it's
// done along with other performing other desirable cleanup.
func (s *server) peerDoneHandler(sp *serverPeer) {
sp.WaitForDisconnect()
Expand All @@ -2231,7 +2231,7 @@ func (s *server) peerDoneHandler(sp *serverPeer) {
func (s *server) peerHandler() {
// Start the address manager and sync manager, both of which are needed
// by peers. This is done here since their lifecycle is closely tied
// to this handler and rather than adding more channels to sychronize
// to this handler and rather than adding more channels to synchronize
// things, it's easier and slightly faster to simply start and stop them
// in this handler.
s.addrManager.Start()
Expand Down
6 changes: 3 additions & 3 deletions txscript/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ const (
ErrMinimalIf

// ErrDiscourageUpgradableWitnessProgram is returned if
// ScriptVerifyWitness is set and the versino of an executing witness
// ScriptVerifyWitness is set and the version of an executing witness
// program is outside the set of currently defined witness program
// vesions.
// versions.
ErrDiscourageUpgradableWitnessProgram

// ----------------------------------------
Expand Down Expand Up @@ -363,7 +363,7 @@ const (
ErrTapscriptCheckMultisig

// ErrDiscourageUpgradeableTaprootVersion is returned if during
// tapscript execution, we encoutner a public key that isn't 0 or 32
// tapscript execution, we encounter a public key that isn't 0 or 32
// bytes.
ErrDiscourageUpgradeablePubKeyType

Expand Down
Loading