Skip to content
Open
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 app/protocol/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/protocol/flowcontext/flow_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion domain/consensus/utils/txscript/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion util/internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down