Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:

env:
GO_VER: 1.26.3
PROTOC_VER: "33.1"
PROTOC_GEN_GO_VER: v1.36.10
PROTOC_VER: "36.2"
PROTOC_GEN_GO_VER: v1.36.12

jobs:
validate:
Expand All @@ -28,7 +28,7 @@ jobs:
run: |
curl -fL --retry 3 -o /tmp/protoc.zip "https://github.com/protocolbuffers/protobuf/releases/download/v${{ env.PROTOC_VER }}/protoc-${{ env.PROTOC_VER }}-linux-x86_64.zip"
# update this hash whenever PROTOC_VER is bumped
echo "f3340e28a83d1c637d8bafdeed92b9f7db6a384c26bca880a6e5217b40a4328b /tmp/protoc.zip" | sha256sum -c -
echo "121f6c7afe1d4d0e3ea6aab9432038599250134cbf4474cb1167d2c7decd4278 /tmp/protoc.zip" | sha256sum -c -
unzip -o /tmp/protoc.zip -d "$HOME/protoc" 'bin/*' 'include/*'
echo "$HOME/protoc/bin" >> "$GITHUB_PATH"

Expand Down
2 changes: 1 addition & 1 deletion 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/hyperledger-labs/SmartBFT/wiki).
For more information on this library see our [wiki page](https://github.com/hyperledger/SmartBFT/wiki).


## License
Expand Down
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/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/wal"
smart "github.com/hyperledger/SmartBFT/pkg/api"
"github.com/hyperledger/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,9 +11,9 @@ import (
"testing"
"time"

smart "github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger-labs/SmartBFT/pkg/wal"
smart "github.com/hyperledger/SmartBFT/pkg/api"
"github.com/hyperledger/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger/SmartBFT/pkg/wal"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"
"google.golang.org/protobuf/proto"
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,11 +13,11 @@ import (
"sync"
"time"

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"
smart "github.com/hyperledger/SmartBFT/pkg/api"
smartbft "github.com/hyperledger/SmartBFT/pkg/consensus"
bft "github.com/hyperledger/SmartBFT/pkg/types"
"github.com/hyperledger/SmartBFT/pkg/wal"
"github.com/hyperledger/SmartBFT/smartbftprotos"
"google.golang.org/protobuf/proto"
)

Expand Down
6 changes: 3 additions & 3 deletions examples/naive_chain/test_message.pb.go

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

2 changes: 1 addition & 1 deletion examples/naive_chain/test_message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

syntax = "proto3";

option go_package = "github.com/hyperledger-labs/SmartBFT/naive";
option go_package = "github.com/hyperledger/SmartBFT/naive";

package naive;

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/hyperledger-labs/SmartBFT
module github.com/hyperledger/SmartBFT

go 1.26.3

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/hyperledger-labs/SmartBFT/internal/bft"
"github.com/hyperledger-labs/SmartBFT/internal/bft/mocks"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
"github.com/hyperledger/SmartBFT/internal/bft"
"github.com/hyperledger/SmartBFT/internal/bft/mocks"
"github.com/hyperledger/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,9 +10,9 @@ import (
"sync/atomic"
"time"

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

Expand Down
4 changes: 2 additions & 2 deletions internal/bft/controller_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"
"time"

"github.com/hyperledger-labs/SmartBFT/pkg/types"
protos "github.com/hyperledger-labs/SmartBFT/smartbftprotos"
"github.com/hyperledger/SmartBFT/pkg/types"
protos "github.com/hyperledger/SmartBFT/smartbftprotos"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"
)
Expand Down
15 changes: 7 additions & 8 deletions internal/bft/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"testing"
"time"

"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/hyperledger/SmartBFT/internal/bft"
"github.com/hyperledger/SmartBFT/internal/bft/mocks"
"github.com/hyperledger/SmartBFT/pkg/api"
"github.com/hyperledger/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger/SmartBFT/pkg/types"
"github.com/hyperledger/SmartBFT/pkg/wal"
protos "github.com/hyperledger/SmartBFT/smartbftprotos"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"go.uber.org/zap"
Expand Down Expand Up @@ -1194,7 +1194,6 @@ func TestRotateFromFollowerToLeader(t *testing.T) {
}

func TestDeliverTwiceOnceFromSyncAndOnceFromViewData(t *testing.T) {

// In this scenario a decision is delivered twice.
// Once by the synchronizer and a second time by the view data received during a view change.
// In the beginning there is a view change timeout and there is a view still running concurrently.
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/hyperledger-labs/SmartBFT/smartbftprotos"
"github.com/hyperledger/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/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/smartbftprotos"
"github.com/hyperledger/SmartBFT/pkg/api"
"github.com/hyperledger/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/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/hyperledger/SmartBFT/internal/bft"
"github.com/hyperledger/SmartBFT/internal/bft/mocks"
"github.com/hyperledger/SmartBFT/pkg/types"
"github.com/hyperledger/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 @@ -13,9 +13,9 @@ import (
"sync"
"time"

"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/SmartBFT/pkg/api"
"github.com/hyperledger/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger/SmartBFT/pkg/types"
"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 @@ -15,9 +15,9 @@ import (
"testing"
"time"

"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/SmartBFT/internal/bft"
"github.com/hyperledger/SmartBFT/internal/bft/mocks"
"github.com/hyperledger/SmartBFT/pkg/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"go.uber.org/zap"
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/hyperledger-labs/SmartBFT/internal/bft"
"github.com/hyperledger/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 @@ -9,9 +9,9 @@ import (
"errors"
"fmt"

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

Expand Down
10 changes: 5 additions & 5 deletions internal/bft/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ package bft_test
import (
"testing"

"github.com/hyperledger-labs/SmartBFT/internal/bft"
"github.com/hyperledger-labs/SmartBFT/pkg/api"
"github.com/hyperledger-labs/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger-labs/SmartBFT/pkg/types"
protos "github.com/hyperledger-labs/SmartBFT/smartbftprotos"
"github.com/hyperledger/SmartBFT/internal/bft"
"github.com/hyperledger/SmartBFT/pkg/api"
"github.com/hyperledger/SmartBFT/pkg/metrics/disabled"
"github.com/hyperledger/SmartBFT/pkg/types"
protos "github.com/hyperledger/SmartBFT/smartbftprotos"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"
)
Expand Down
Loading
Loading