Use tutus-consensus fork for dBFT
Replace nspcc-dev/dbft with tutus-one/tutus-consensus v1.0.0 for full control over the consensus library.
This commit is contained in:
parent
3aa40bc80f
commit
cdae21d5a2
4
go.mod
4
go.mod
|
|
@ -15,8 +15,8 @@ require (
|
|||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
|
||||
github.com/mr-tron/base58 v1.2.0
|
||||
github.com/nspcc-dev/bbolt v0.0.0-20250911202005-807225ebb0c8
|
||||
github.com/nspcc-dev/dbft v0.4.0
|
||||
github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1
|
||||
github.com/nspcc-dev/neo-go v0.113.0
|
||||
github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.16
|
||||
github.com/nspcc-dev/rfc6979 v0.2.4
|
||||
github.com/pierrec/lz4 v2.6.1+incompatible
|
||||
|
|
@ -24,6 +24,7 @@ require (
|
|||
github.com/stretchr/testify v1.11.1
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954
|
||||
github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9
|
||||
github.com/tutus-one/tutus-consensus v1.0.0
|
||||
github.com/twmb/murmur3 v1.1.8
|
||||
github.com/urfave/cli/v2 v2.27.7
|
||||
go.uber.org/zap v1.27.0
|
||||
|
|
@ -50,7 +51,6 @@ require (
|
|||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
||||
github.com/nspcc-dev/hrw/v2 v2.0.4 // indirect
|
||||
github.com/nspcc-dev/neo-go v0.113.0 // indirect
|
||||
github.com/nspcc-dev/tzhash v1.8.3 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/prometheus/client_model v0.6.2 // indirect
|
||||
|
|
|
|||
4
go.sum
4
go.sum
|
|
@ -147,8 +147,6 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
|
|||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
|
||||
github.com/nspcc-dev/bbolt v0.0.0-20250911202005-807225ebb0c8 h1:lYMHisGPtL70vqCe/M+cU27HMZcV2PTYTaRmO7qxhMQ=
|
||||
github.com/nspcc-dev/bbolt v0.0.0-20250911202005-807225ebb0c8/go.mod h1:iYl+DCkSLXgVCeQWyC+kqS9V1fAQCA74JZtptwjNYpc=
|
||||
github.com/nspcc-dev/dbft v0.4.0 h1:4/atD4GrrMEtrYBDiZPrPzdKZ6ws7PR/cg0M4DEdVeI=
|
||||
github.com/nspcc-dev/dbft v0.4.0/go.mod h1:msYlF5GIGwOZ9jUIHttBAAtiqJ29jzV8PPKKv1avXAI=
|
||||
github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1 h1:U3wvYzJi07NzN4I0fwt1Uznp92xKkfkTcAyC+TsxP9E=
|
||||
github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1/go.mod h1:CHwf1nwquA6ecSfxmNF0YuemOPHAnRGoLuZUv/WPjeY=
|
||||
github.com/nspcc-dev/hrw/v2 v2.0.4 h1:o3Zh/2aF+IgGpvt414f46Ya20WG9u9vWxVd16ErFI8w=
|
||||
|
|
@ -213,6 +211,8 @@ github.com/tklauser/go-sysconf v0.3.15 h1:VE89k0criAymJ/Os65CSn1IXaol+1wrsFHEB8O
|
|||
github.com/tklauser/go-sysconf v0.3.15/go.mod h1:Dmjwr6tYFIseJw7a3dRLJfsHAMXZ3nEnL/aZY+0IuI4=
|
||||
github.com/tklauser/numcpus v0.10.0 h1:18njr6LDBk1zuna922MgdjQuJFjrdppsZG60sHGfjso=
|
||||
github.com/tklauser/numcpus v0.10.0/go.mod h1:BiTKazU708GQTYF4mB+cmlpT2Is1gLk7XVuEeem8LsQ=
|
||||
github.com/tutus-one/tutus-consensus v1.0.0 h1:PFMXSSSYjTnbymoIjU2L30ckf92j2kVwrmtRnkuGlnY=
|
||||
github.com/tutus-one/tutus-consensus v1.0.0/go.mod h1:hpA/0rPM0Frdh9cowAp//vQTMN8j6Q0GYq1BFlpCLVM=
|
||||
github.com/twmb/murmur3 v1.1.8 h1:8Yt9taO/WN3l08xErzjeschgZU2QSrwm1kclYq+0aRg=
|
||||
github.com/twmb/murmur3 v1.1.8/go.mod h1:Qq/R7NUyOfr65zD+6Q5IHKsJLwP7exErjN6lyyq3OSQ=
|
||||
github.com/urfave/cli/v2 v2.27.7 h1:bH59vdhbjLv3LAvIu6gd0usJHgoTTPhCFib8qqOwXYU=
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package consensus
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/config/netmode"
|
||||
coreb "github.com/tutus-one/tutus-chain/pkg/core/block"
|
||||
"github.com/tutus-one/tutus-chain/pkg/core/transaction"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package consensus
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/core/transaction"
|
||||
"github.com/tutus-one/tutus-chain/pkg/crypto/keys"
|
||||
"github.com/tutus-one/tutus-chain/pkg/util"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package consensus
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/io"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package consensus
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package consensus
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/io"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/nspcc-dev/dbft/timer"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-consensus/timer"
|
||||
"github.com/tutus-one/tutus-chain/pkg/config"
|
||||
"github.com/tutus-one/tutus-chain/pkg/config/netmode"
|
||||
coreb "github.com/tutus-one/tutus-chain/pkg/core/block"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/internal/random"
|
||||
"github.com/tutus-one/tutus-chain/internal/testchain"
|
||||
"github.com/tutus-one/tutus-chain/pkg/config"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package consensus
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/config/netmode"
|
||||
"github.com/tutus-one/tutus-chain/pkg/crypto/keys"
|
||||
"github.com/tutus-one/tutus-chain/pkg/io"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"math/rand/v2"
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/internal/random"
|
||||
"github.com/tutus-one/tutus-chain/internal/testserdes"
|
||||
"github.com/tutus-one/tutus-chain/pkg/config/netmode"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package consensus
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/core/block"
|
||||
"github.com/tutus-one/tutus-chain/pkg/io"
|
||||
"github.com/tutus-one/tutus-chain/pkg/util"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package consensus
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/io"
|
||||
"github.com/tutus-one/tutus-chain/pkg/util"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package consensus
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/crypto/keys"
|
||||
"github.com/tutus-one/tutus-chain/pkg/io"
|
||||
npayload "github.com/tutus-one/tutus-chain/pkg/network/payload"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package consensus
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/internal/testchain"
|
||||
"github.com/tutus-one/tutus-chain/pkg/config/netmode"
|
||||
"github.com/tutus-one/tutus-chain/pkg/crypto/keys"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package consensus
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/dbft"
|
||||
"github.com/tutus-one/tutus-consensus"
|
||||
"github.com/tutus-one/tutus-chain/pkg/io"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue