Fix some typos (#2085)

* Dockerfile: fix typo

* blockchain: fix typos

* sample-btcd.conf: fix typos

* server: fix typos

* txscript: fix typos
This commit is contained in:
Thabokani 2024-01-04 05:36:49 +08:00 committed by GitHub
parent b1b9420208
commit a4df044cfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 11 deletions

View File

@ -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
#

View File

@ -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.

View File

@ -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
)

View File

@ -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,
},
{

View File

@ -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

View File

@ -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
@ -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()
@ -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()

View File

@ -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
// ----------------------------------------
@ -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