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 dataRetriever/txpool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Above, `N` is the number of shards.

1. **selection (`TxCache`):** this function retrieves a number (e.g. 30000) of transactions from the **TxCache** so that they are further fed to the transaction processing components. This function is required **on "my turn"** only.

1. **removal (both caches):** this function is required by components such as the **transactions cleaner** (which cleans old, stale transactions from time to time), the **transactions processor** (which removes bad transactions at processing time), the **base processor** (which removes transactions included in commited blocks) etc.
1. **removal (both caches):** this function is required by components such as the **transactions cleaner** (which cleans old, stale transactions from time to time), the **transactions processor** (which removes bad transactions at processing time), the **base processor** (which removes transactions included in committed blocks) etc.

1. **eviction (both caches):** when capacity is closed to be reached, the caches heuristically discard bulks of transactions. The high-load conditions are checked at the time of insertion.

Expand Down
2 changes: 1 addition & 1 deletion process/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ var ErrNotAllowedToWriteUnderProtectedKey = errors.New("not allowed to write und
// ErrNilNFTStorageHandler signals that nil NFT storage handler has been provided
var ErrNilNFTStorageHandler = errors.New("nil NFT storage handler")

// ErrNilBootstrapper signals that a nil bootstraper has been provided
// ErrNilBootstrapper signals that a nil bootstrapper has been provided
var ErrNilBootstrapper = errors.New("nil bootstrapper")

// ErrNodeIsNotSynced signals that the VM query cannot be executed because the node is not synced and the request required this
Expand Down
2 changes: 1 addition & 1 deletion process/interceptors/processor/export_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package processor

// RegisterHandler registers a callback function to be notified of incoming headers
// RegisteredHandlers registers a callback function to be notified of incoming headers
func (hip *HdrInterceptorProcessor) RegisteredHandlers() []func(topic string, hash []byte, data interface{}) {
hip.mutHandlers.Lock()
defer hip.mutHandlers.Unlock()
Expand Down
2 changes: 1 addition & 1 deletion process/smartContract/hooks/blockChainHook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ func TestBlockChainHookImpl_UpdateEpochStartHeaderFromCurrentHeader(t *testing.T
assert.Equal(t, genesisBlock.GetTimeStamp(), bh.EpochStartBlockTimeStampMs())
})

t.Run("get last commited epoch start block if not set", func(t *testing.T) {
t.Run("get last committed epoch start block if not set", func(t *testing.T) {
t.Parallel()

epoch := uint32(7)
Expand Down
8 changes: 4 additions & 4 deletions process/smartContract/hooks/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ var ErrNilCurrentHeader = errors.New("nil current header")
// ErrNilEpochStartHeader signals that a nil epoch start header was provided
var ErrNilEpochStartHeader = errors.New("nil epoch start header")

// ErrNilLastCommitedEpochStartHdr signals that a nil last commited epoch start header was provided
var ErrNilLastCommitedEpochStartHdr = errors.New("nil last commited epoch start header")
// ErrNilLastCommitedEpochStartHdr signals that a nil last committed epoch start header was provided
var ErrNilLastCommitedEpochStartHdr = errors.New("nil last committed epoch start header")

// ErrLastCommitedEpochStartHdrMismatch signals that the current header epoch and last commited epoch start header epoch do not match
var ErrLastCommitedEpochStartHdrMismatch = errors.New("current header epoch and last commited epoch start header epoch do not match")
// ErrLastCommitedEpochStartHdrMismatch signals that the current header epoch and last committed epoch start header epoch do not match
var ErrLastCommitedEpochStartHdrMismatch = errors.New("current header epoch and last committed epoch start header epoch do not match")