Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Partanskiy <pfi79@mail.ru>
  • Loading branch information
pfi79 committed Mar 14, 2024
1 parent fd3c35e commit 1352778
Show file tree
Hide file tree
Showing 63 changed files with 150 additions and 156 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.7
go-version: 1.21.8

- name: Prepare Env
run: bash scripts/prepare_environ.sh

- name: Test
working-directory: /home/runner/go/src/github.com/SmartBFT-Go/consensus
working-directory: /home/runner/go/src/github.com/hyperledger-labs/SmartBFT
run: make all

- name: Post
working-directory: /home/runner/go/src/github.com/SmartBFT-Go/consensus
working-directory: /home/runner/go/src/github.com/hyperledger-labs/SmartBFT
run: ./scripts/post.sh
12 changes: 6 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ v2 ]
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ v2 ]
branches: [ main ]
schedule:
- cron: '29 1 * * 5'

Expand All @@ -38,11 +38,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -53,7 +53,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -67,4 +67,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This is a Byzantine fault-tolerant (BFT) state machine replication (SMR) library.
It is an open source library written in Go.
The implementation is inspired by the [BFT-SMaRt project](https://github.com/bft-smart/library).
For more information on this library see our [wiki page](https://github.com/SmartBFT-Go/consensus/wiki).
For more information on this library see our [wiki page](https://github.com/hyperledger-labs/SmartBFT/wiki).


## License
Expand All @@ -19,9 +19,3 @@ The source code files are made available under the Apache License, Version 2.0 (
* Hagar Meir - [hagar.meir@ibm.com](mailto:hagar.meir@ibm.com)
* Artem Barger - [bartem@il.ibm.com](mailto:bartem@il.ibm.com)
* Yoav Tock - [tock@il.ibm.com](mailto:tock@il.ibm.com)

## Ownership

The library development was sponsored by __[Idea](https://scientificideas.org/)__ - The Interdisciplinary Blockchain Research and Expertise center.

* Gennadiy Muzykantov - [repository admin](mailto:g@muzykantov.me)
4 changes: 2 additions & 2 deletions examples/naive_chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package naive
import (
"encoding/asn1"

smart "github.com/SmartBFT-Go/consensus/pkg/api"
"github.com/SmartBFT-Go/consensus/pkg/wal"
smart "github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/wal"
)

type Block struct {
Expand Down
6 changes: 3 additions & 3 deletions examples/naive_chain/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"testing"
"time"

smart "github.com/SmartBFT-Go/consensus/pkg/api"
"github.com/SmartBFT-Go/consensus/pkg/metrics/disabled"
"github.com/SmartBFT-Go/consensus/pkg/wal"
"github.com/golang/protobuf/proto"
smart "github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger-labs/SmartBFT/pkg/wal"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"
)
Expand Down
10 changes: 5 additions & 5 deletions examples/naive_chain/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"sync"
"time"

smart "github.com/SmartBFT-Go/consensus/pkg/api"
smartbft "github.com/SmartBFT-Go/consensus/pkg/consensus"
bft "github.com/SmartBFT-Go/consensus/pkg/types"
"github.com/SmartBFT-Go/consensus/pkg/wal"
"github.com/SmartBFT-Go/consensus/smartbftprotos"
"github.com/golang/protobuf/proto"
smart "github.com/hyperledger-labs/SmartBFT/pkg/api"
smartbft "github.com/hyperledger-labs/SmartBFT/pkg/consensus"
bft "github.com/hyperledger-labs/SmartBFT/pkg/types"
"github.com/hyperledger-labs/SmartBFT/pkg/wal"
"github.com/hyperledger-labs/SmartBFT/smartbftprotos"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/SmartBFT-Go/consensus
module github.com/hyperledger-labs/SmartBFT

go 1.20

Expand Down
6 changes: 3 additions & 3 deletions internal/bft/batcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"
"time"

"github.com/SmartBFT-Go/consensus/internal/bft"
"github.com/SmartBFT-Go/consensus/internal/bft/mocks"
"github.com/SmartBFT-Go/consensus/pkg/types"
"github.com/hyperledger-labs/SmartBFT/internal/bft"
"github.com/hyperledger-labs/SmartBFT/internal/bft/mocks"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"go.uber.org/zap"
Expand Down
6 changes: 3 additions & 3 deletions internal/bft/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"sync/atomic"
"time"

"github.com/SmartBFT-Go/consensus/pkg/api"
"github.com/SmartBFT-Go/consensus/pkg/types"
protos "github.com/SmartBFT-Go/consensus/smartbftprotos"
"github.com/golang/protobuf/proto"
"github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
protos "github.com/hyperledger-labs/SmartBFT/smartbftprotos"
)

// Decider delivers the proposal with signatures to the application
Expand Down
14 changes: 7 additions & 7 deletions internal/bft/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import (
"testing"
"time"

"github.com/SmartBFT-Go/consensus/internal/bft"
"github.com/SmartBFT-Go/consensus/internal/bft/mocks"
"github.com/SmartBFT-Go/consensus/pkg/api"
"github.com/SmartBFT-Go/consensus/pkg/metrics/disabled"
"github.com/SmartBFT-Go/consensus/pkg/types"
"github.com/SmartBFT-Go/consensus/pkg/wal"
protos "github.com/SmartBFT-Go/consensus/smartbftprotos"
"github.com/golang/protobuf/proto"
"github.com/hyperledger-labs/SmartBFT/internal/bft"
"github.com/hyperledger-labs/SmartBFT/internal/bft/mocks"
"github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
"github.com/hyperledger-labs/SmartBFT/pkg/wal"
protos "github.com/hyperledger-labs/SmartBFT/smartbftprotos"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
Expand Down
2 changes: 1 addition & 1 deletion internal/bft/hbm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/SmartBFT-Go/consensus/smartbftprotos"
"github.com/hyperledger-labs/SmartBFT/smartbftprotos"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/bft/heartbeatmonitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"sync/atomic"
"time"

"github.com/SmartBFT-Go/consensus/pkg/api"
"github.com/SmartBFT-Go/consensus/smartbftprotos"
"github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/smartbftprotos"
)

// A node could either be a leader or a follower
Expand Down
8 changes: 4 additions & 4 deletions internal/bft/heartbeatmonitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"testing"
"time"

"github.com/SmartBFT-Go/consensus/internal/bft"
"github.com/SmartBFT-Go/consensus/internal/bft/mocks"
"github.com/SmartBFT-Go/consensus/pkg/types"
"github.com/SmartBFT-Go/consensus/smartbftprotos"
"github.com/hyperledger-labs/SmartBFT/internal/bft"
"github.com/hyperledger-labs/SmartBFT/internal/bft/mocks"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
"github.com/hyperledger-labs/SmartBFT/smartbftprotos"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion internal/bft/mocks/application_mock.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/assembler_mock.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/comm_mock.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/decider.go

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

4 changes: 2 additions & 2 deletions internal/bft/mocks/leader_monitor.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/proposer_builder.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/request_pool.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/request_timeout_handler.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/requests_timer.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/signer_mock.go

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

4 changes: 2 additions & 2 deletions internal/bft/mocks/state.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/synchronizer_mock.go

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

2 changes: 1 addition & 1 deletion internal/bft/mocks/verifier_mock.go

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

6 changes: 3 additions & 3 deletions internal/bft/requestpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"sync"
"time"

"github.com/SmartBFT-Go/consensus/pkg/api"
"github.com/SmartBFT-Go/consensus/pkg/metrics/disabled"
"github.com/SmartBFT-Go/consensus/pkg/types"
"github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
"github.com/pkg/errors"
"golang.org/x/sync/semaphore"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/bft/requestpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"testing"
"time"

"github.com/SmartBFT-Go/consensus/internal/bft"
"github.com/SmartBFT-Go/consensus/internal/bft/mocks"
"github.com/SmartBFT-Go/consensus/pkg/types"
"github.com/hyperledger-labs/SmartBFT/internal/bft"
"github.com/hyperledger-labs/SmartBFT/internal/bft/mocks"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
Expand Down
2 changes: 1 addition & 1 deletion internal/bft/sched_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/SmartBFT-Go/consensus/internal/bft"
"github.com/hyperledger-labs/SmartBFT/internal/bft"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/bft/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ package bft
import (
"fmt"

"github.com/SmartBFT-Go/consensus/pkg/api"
"github.com/SmartBFT-Go/consensus/pkg/types"
protos "github.com/SmartBFT-Go/consensus/smartbftprotos"
"github.com/golang/protobuf/proto"
"github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
protos "github.com/hyperledger-labs/SmartBFT/smartbftprotos"
"github.com/pkg/errors"
)

Expand Down
Loading

0 comments on commit 1352778

Please sign in to comment.