4d2ecab16f
It was broken somewhere between2f490a3403
and85ce207f40
leading to panic on watch only node: 2021-07-21T16:21:39.201+0200 INFO received Commit {"validator": 3} panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xbcc59e] goroutine 486 [running]: github.com/nspcc-dev/neo-go/pkg/consensus.(*service).newBlockFromContext(0xc0001629a0, 0xc000308000, 0xc0010fa000, 0x2cb417800) github.com/nspcc-dev/neo-go/pkg/consensus/consensus.go:664 +0xbe github.com/nspcc-dev/dbft.(*Context).MakeHeader(...) github.com/nspcc-dev/dbft@v0.0.0-20210302103605-cc75991b7cfb/context.go:270 github.com/nspcc-dev/dbft.(*DBFT).onCommit(0xc000308000, 0x138c998, 0xc000115110) github.com/nspcc-dev/dbft@v0.0.0-20210302103605-cc75991b7cfb/dbft.go:487 +0x575 github.com/nspcc-dev/dbft.(*DBFT).OnReceive(0xc000308000, 0x138c998, 0xc000115110) github.com/nspcc-dev/dbft@v0.0.0-20210302103605-cc75991b7cfb/dbft.go:251 +0xef5 github.com/nspcc-dev/neo-go/pkg/consensus.(*service).eventLoop(0xc0001629a0) github.com/nspcc-dev/neo-go/pkg/consensus/consensus.go:312 +0x7d6 created by github.com/nspcc-dev/neo-go/pkg/consensus.(*service).Start github.com/nspcc-dev/neo-go/pkg/consensus/consensus.go:262 +0xdc In fact, nonce is correctly provided by dbft library (since Legacy), we just need to use it here.
34 lines
1.2 KiB
Modula-2
34 lines
1.2 KiB
Modula-2
module github.com/nspcc-dev/neo-go
|
|
|
|
require (
|
|
github.com/Workiva/go-datastructures v1.0.50
|
|
github.com/abiosoft/readline v0.0.0-20180607040430-155bce2042db
|
|
github.com/alicebob/miniredis v2.5.0+incompatible
|
|
github.com/btcsuite/btcd v0.20.1-beta
|
|
github.com/dgraph-io/badger/v2 v2.0.3
|
|
github.com/go-redis/redis v6.10.2+incompatible
|
|
github.com/gorilla/websocket v1.4.2
|
|
github.com/hashicorp/golang-lru v0.5.4
|
|
github.com/mr-tron/base58 v1.1.2
|
|
github.com/nspcc-dev/dbft v0.0.0-20210721160347-1b03241391ac
|
|
github.com/nspcc-dev/neofs-api-go v1.27.1
|
|
github.com/nspcc-dev/rfc6979 v0.2.0
|
|
github.com/pierrec/lz4 v2.5.2+incompatible
|
|
github.com/prometheus/client_golang v1.2.1
|
|
github.com/stretchr/testify v1.6.1
|
|
github.com/syndtr/goleveldb v0.0.0-20180307113352-169b1b37be73
|
|
github.com/twmb/murmur3 v1.1.5
|
|
github.com/urfave/cli v1.20.0
|
|
github.com/virtuald/go-ordered-json v0.0.0-20170621173500-b18e6e673d74
|
|
go.etcd.io/bbolt v1.3.4
|
|
go.uber.org/atomic v1.4.0
|
|
go.uber.org/zap v1.10.0
|
|
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
|
|
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf
|
|
golang.org/x/text v0.3.0
|
|
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135
|
|
gopkg.in/abiosoft/ishell.v2 v2.0.0
|
|
gopkg.in/yaml.v2 v2.2.4
|
|
)
|
|
|
|
go 1.14
|