From 02f1ddf82c58df97cb9da3a35ad695e8ea01dfcc Mon Sep 17 00:00:00 2001 From: Fedor Partanskiy Date: Sun, 13 Oct 2024 21:49:24 +0300 Subject: [PATCH] bump github.com/hyperledger-labs/SmartBFT to v0.0.0-20241013183757-134292d4208a Signed-off-by: Fedor Partanskiy --- go.mod | 2 +- go.sum | 4 ++-- .../hyperledger-labs/SmartBFT/internal/bft/view.go | 5 ++++- vendor/modules.txt | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 61c23961312..61015a26a5c 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/go-viper/mapstructure/v2 v2.2.1 github.com/gorilla/handlers v1.5.2 github.com/gorilla/mux v1.8.1 - github.com/hyperledger-labs/SmartBFT v0.0.0-20240916013553-852e5be5889b + github.com/hyperledger-labs/SmartBFT v0.0.0-20241013183757-134292d4208a github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0 github.com/hyperledger/fabric-config v0.3.0 github.com/hyperledger/fabric-lib-go v1.1.3-0.20240523144151-25edd1eaf5f5 diff --git a/go.sum b/go.sum index 611efdda07f..f884a0c9015 100644 --- a/go.sum +++ b/go.sum @@ -877,8 +877,8 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/hyperledger-labs/SmartBFT v0.0.0-20240916013553-852e5be5889b h1:HihCDs7Hy69lykrPJP7Uc54DIWlTCYg4m/+kHRqxUk0= -github.com/hyperledger-labs/SmartBFT v0.0.0-20240916013553-852e5be5889b/go.mod h1:54hysiDJViMzhT0mJIqt8aUvkQ+yHj4RIdiGZzuosQs= +github.com/hyperledger-labs/SmartBFT v0.0.0-20241013183757-134292d4208a h1:+rSygBMv8VJVDVbXn1NHff/0gv9wQp8R2FhcuRGTULM= +github.com/hyperledger-labs/SmartBFT v0.0.0-20241013183757-134292d4208a/go.mod h1:xRvr2gJBeo88dQuxw5AK9f+Wj7+mYxpl7EUFUvlZBm0= github.com/hyperledger/aries-bbs-go v0.0.0-20240528084656-761671ea73bc h1:3Ykk6MtyfnlzMOQry9zkxsoLWpCWZwDPqehO/BJwArM= github.com/hyperledger/aries-bbs-go v0.0.0-20240528084656-761671ea73bc/go.mod h1:Kofn6A6WWea1ZM8Rys5aBW9dszwJ7Ywa0kyyYL0TPYw= github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 h1:B1Nt8hKb//KvgGRprk0h1t4lCnwhE9/ryb1WqfZbV+M= diff --git a/vendor/github.com/hyperledger-labs/SmartBFT/internal/bft/view.go b/vendor/github.com/hyperledger-labs/SmartBFT/internal/bft/view.go index 76477d86740..4586e6b416b 100644 --- a/vendor/github.com/hyperledger-labs/SmartBFT/internal/bft/view.go +++ b/vendor/github.com/hyperledger-labs/SmartBFT/internal/bft/view.go @@ -949,7 +949,10 @@ func (v *View) metadataWithUpdatedBlacklist(metadata *protos.ViewMetadata, verif // Propose broadcasts a prePrepare message with the given proposal func (v *View) Propose(proposal types.Proposal) { - _, prevSigs := v.RetrieveCheckpoint() + var prevSigs []*protos.Signature + if v.DecisionsPerLeader > 0 { + _, prevSigs = v.RetrieveCheckpoint() + } seq := v.ProposalSequence msg := &protos.Message{ diff --git a/vendor/modules.txt b/vendor/modules.txt index 4b4dc1a3c32..c05d086ef2d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -197,7 +197,7 @@ github.com/gorilla/handlers # github.com/gorilla/mux v1.8.1 ## explicit; go 1.20 github.com/gorilla/mux -# github.com/hyperledger-labs/SmartBFT v0.0.0-20240916013553-852e5be5889b +# github.com/hyperledger-labs/SmartBFT v0.0.0-20241013183757-134292d4208a ## explicit; go 1.22 github.com/hyperledger-labs/SmartBFT/internal/bft github.com/hyperledger-labs/SmartBFT/pkg/api