forked from streamingfast/firehose-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunsafe_extensions.go
More file actions
21 lines (16 loc) · 856 Bytes
/
unsafe_extensions.go
File metadata and controls
21 lines (16 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package firecore
import (
"context"
"github.com/streamingfast/firehose-core/launcher"
"go.uber.org/zap"
)
// UnsafeRunningFromFirecore is used internally and should not be altered.
var UnsafeRunningFromFirecore = false
// UnsafeAllowedExecutableNameToBeEmpty is used internally and should not be altered.
var UnsafeAllowExecutableNameToBeEmpty = false
// UnsafeResolveReaderNodeStartBlock is a function that resolved the reader node start block num, by default it simply
// returns the value of the 'reader-node-start-block-num'. However, the function may be overwritten in certain chains
// to perform a more complex resolution logic.
var UnsafeResolveReaderNodeStartBlock = func(ctx context.Context, startBlockNum uint64, firstStreamableBlock uint64, runtime *launcher.Runtime, rootLog *zap.Logger) (uint64, error) {
return startBlockNum, nil
}