Skip to content

Commit

Permalink
Merge pull request #253 from multiversx/merge-rc-in-feat-logs
Browse files Browse the repository at this point in the history
Merge rc in feat logs
  • Loading branch information
miiu96 authored Aug 17, 2023
2 parents 9d7bbfa + c721256 commit 6b5a05d
Show file tree
Hide file tree
Showing 9 changed files with 783 additions and 233 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: golangci-lint
on:
push:
branches:
- main
pull_request:
branches: [ main, feat/*, rc/* ]

permissions:
contents: read

jobs:
golangci:
name: golangci linter
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.7
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.53.2

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
args: --timeout 10m0s --max-issues-per-linter 0 --max-same-issues 0 --print-issued-lines

# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true

# Optional: if set to true then the action will use pre-installed Go
# skip-go-installation: true
11 changes: 6 additions & 5 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: Tests

on:
push:
branches: [ main, development, feat/*, rc/* ]
pull_request:
branches: [ main, development, feat/*, rc/* ]
branches: [ main, rc/*, feat/* ]
types: [ opened, ready_for_review ]
push:
workflow_dispatch:

jobs:
test:
name: Unit
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17.6
- name: Set up Go 1.20.7
uses: actions/setup-go@v3
with:
go-version: 1.17.6
go-version: 1.20.7
id: go

- name: Check out code
Expand Down
72 changes: 57 additions & 15 deletions data/outport/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion data/outport/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ option (gogoproto.stable_marshaler_all) = true;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";

message OutportConfig {
bool IsInImportDBMode = 1 [(gogoproto.jsontag) = "isInImportDBMode"];
uint32 ShardID = 1 [(gogoproto.jsontag) = "shardID"];
bool IsInImportDBMode = 2 [(gogoproto.jsontag) = "isInImportDBMode"];
}
8 changes: 5 additions & 3 deletions data/outport/outportBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package outport

import (
"github.com/multiversx/mx-chain-core-go/data"
"github.com/multiversx/mx-chain-core-go/data/block"
)

// OutportBlockWithHeader will extend the OutportBlock structure
Expand All @@ -14,9 +15,10 @@ type OutportBlockWithHeader struct {

// HeaderDataWithBody holds header and body data
type HeaderDataWithBody struct {
Body data.BodyHandler
Header data.HeaderHandler
HeaderHash []byte
Body data.BodyHandler
Header data.HeaderHandler
IntraShardMiniBlocks []*block.MiniBlock
HeaderHash []byte
}

// OutportBlockWithHeaderAndBody is a wrapper for OutportBlock used for outport handler
Expand Down
Loading

0 comments on commit 6b5a05d

Please sign in to comment.