Merge 9318370908aadc628d53306450d699d2b78a2cd0 into 03cc7dfc194cdb2e9f637bceec1bb8070a903c5e

This commit is contained in:
camcui 2025-03-19 12:21:48 +05:30 committed by GitHub
commit 186c9d744f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ var ErrPeerWithSameIDExists = errors.New("ready peer with the same ID already ex
type flowExecuteFunc func(peer *peerpkg.Peer)
// Flow is a a data structure that is used in order to associate a p2p flow to some route in a router.
// Flow is a data structure that is used in order to associate a p2p flow to some route in a router.
type Flow struct {
Name string
ExecuteFunc flowExecuteFunc

View File

@ -86,7 +86,7 @@ func New(cfg *config.Config, domain domain.Domain, addressManager *addressmanage
}
}
// Close signals to all flows the the protocol manager is closed.
// Close signals to all flows the protocol manager is closed.
func (f *FlowContext) Close() {
close(f.shutdownChan)
}

View File

@ -39,7 +39,7 @@ func (bp *blockProcessor) setBlockStatusAfterBlockValidation(
// the block.
if !isPruningPoint {
return externalapi.StatusInvalid, errors.Errorf("block %s that is not the pruning point is not expected to be valid "+
"before adding to to the consensus state manager", blockHash)
"before adding to the consensus state manager", blockHash)
}
log.Debugf("Block %s is the pruning point and has status %s, so leaving its status untouched",
blockHash, status)

View File

@ -187,7 +187,7 @@ func (vm *Engine) DisasmScript(idx int) (string, error) {
}
// CheckErrorCondition returns nil if the running script has ended and was
// successful, leaving a a true boolean on the stack. An error otherwise,
// successful, leaving a true boolean on the stack. An error otherwise,
// including if the script has not finished.
func (vm *Engine) CheckErrorCondition(finalScript bool) error {
// Check execution is actually done. When pc is past the end of script

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
/*
This test file is part of the util package rather than than the
This test file is part of the util package rather than the
util_test package so it can bridge access to the internals to properly test
cases which are either not possible or can't reliably be tested via the public
interface. The functions are only exported while the tests are being run.