Merge 9318370908aadc628d53306450d699d2b78a2cd0 into 4bb5bf25d3f2279ec2a61c3b4f7bb083b5f522b2

This commit is contained in:
camcui 2025-05-09 02:11:47 +03:00 committed by GitHub
commit 7739df491c
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) 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 { type Flow struct {
Name string Name string
ExecuteFunc flowExecuteFunc 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() { func (f *FlowContext) Close() {
close(f.shutdownChan) close(f.shutdownChan)
} }

View File

@ -39,7 +39,7 @@ func (bp *blockProcessor) setBlockStatusAfterBlockValidation(
// the block. // the block.
if !isPruningPoint { if !isPruningPoint {
return externalapi.StatusInvalid, errors.Errorf("block %s that is not the pruning point is not expected to be valid "+ 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", log.Debugf("Block %s is the pruning point and has status %s, so leaving its status untouched",
blockHash, status) 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 // 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. // including if the script has not finished.
func (vm *Engine) CheckErrorCondition(finalScript bool) error { func (vm *Engine) CheckErrorCondition(finalScript bool) error {
// Check execution is actually done. When pc is past the end of script // 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. // 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 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 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. interface. The functions are only exported while the tests are being run.