Skip to content

Commit

Permalink
Merge branch 'feature/atree-inlining-cadence-v1.0' into janez/migrati…
Browse files Browse the repository at this point in the history
…on-mainnet-add-keys-to-core-contracts
  • Loading branch information
janezpodhostnik authored Jun 20, 2024
2 parents 3320dbe + d2c4171 commit 8c33fd8
Show file tree
Hide file tree
Showing 71 changed files with 2,091 additions and 575 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- Preserve
- Idea
# Label to use when marking an issue as stale
staleLabel: Stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
name: 'Mark and close stale issues'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 90
days-before-issue-close: 7
exempt-issue-labels: 'Preserve,Idea'
stale-issue-label: 'Stale'
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
12 changes: 8 additions & 4 deletions cmd/execution_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ func (exeNode *ExecutionNode) LoadExecutionDataGetter(node *NodeConfig) error {
return nil
}

func openChunkDataPackDB(dbPath string, logger zerolog.Logger) (*badgerDB.DB, error) {
func OpenChunkDataPackDB(dbPath string, logger zerolog.Logger) (*badgerDB.DB, error) {
log := sutil.NewLogger(logger)

opts := badgerDB.
Expand Down Expand Up @@ -722,17 +722,21 @@ func (exeNode *ExecutionNode) LoadExecutionState(
error,
) {

chunkDataPackDB, err := openChunkDataPackDB(exeNode.exeConf.chunkDataPackDir, node.Logger)
chunkDataPackDB, err := storagepebble.OpenDefaultPebbleDB(exeNode.exeConf.chunkDataPackDir)
if err != nil {
return nil, err
return nil, fmt.Errorf("could not open chunk data pack database: %w", err)
}

exeNode.builder.ShutdownFunc(func() error {
if err := chunkDataPackDB.Close(); err != nil {
return fmt.Errorf("error closing chunk data pack database: %w", err)
}
return nil
})
chunkDataPacks := storage.NewChunkDataPacks(node.Metrics.Cache, chunkDataPackDB, node.Storage.Collections, exeNode.exeConf.chunkDataPackCacheSize)
// chunkDataPacks := storage.NewChunkDataPacks(node.Metrics.Cache,
// chunkDataPackDB, node.Storage.Collections, exeNode.exeConf.chunkDataPackCacheSize)
chunkDataPacks := storagepebble.NewChunkDataPacks(node.Metrics.Cache,
chunkDataPackDB, node.Storage.Collections, exeNode.exeConf.chunkDataPackCacheSize)

// Needed for gRPC server, make sure to assign to main scoped vars
exeNode.events = storage.NewEvents(node.Metrics.Cache, node.DB)
Expand Down
5 changes: 5 additions & 0 deletions cmd/scaffold.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ func (fnb *FlowNodeBuilder) EnqueueNetworkInit() {
peerManagerFilters)
})

fnb.Module("epoch transition logger", func(node *NodeConfig) error {
node.ProtocolEvents.AddConsumer(events.NewEventLogger(node.Logger))
return nil
})

fnb.Module("network underlay dependency", func(node *NodeConfig) error {
fnb.networkUnderlayDependable = module.NewProxiedReadyDoneAware()
fnb.PeerManagerDependencies.Add(fnb.networkUnderlayDependable)
Expand Down
Loading

0 comments on commit 8c33fd8

Please sign in to comment.