9862b40f2c
https://github.com/nspcc-dev/neo-go/pull/2435 breaks compatibility between newer RPC clients and older RPC servers with the following error: ``` failed to get network magic: json: cannot unmarshal string into Go struct field Protocol.protocol.initialgasdistribution of type int64 ``` This behaviour is expected, but we can't allow this radical change. Thus, the following solution is implemented: 1. RPC server responds with proper non-stringified InitialGasDistribution value. The value represents an integral of fixed8 multiplied by the decimals. 2. RPC client is able to distinguish older and newer responses. For older one the stringified value without decimals part is expected. For newer responses the int64 value with decimal part is expected. The cludge will be present in the code for a while until nodes of version <=0.98.3 become completely absolete.
35 lines
1.3 KiB
Modula-2
35 lines
1.3 KiB
Modula-2
module github.com/nspcc-dev/neo-go
|
|
|
|
require (
|
|
github.com/btcsuite/btcd v0.22.0-beta
|
|
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
|
|
github.com/coreos/go-semver v0.3.0
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/gorilla/websocket v1.4.2
|
|
github.com/hashicorp/golang-lru v0.5.4
|
|
github.com/holiman/uint256 v1.2.0
|
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
|
|
github.com/mr-tron/base58 v1.2.0
|
|
github.com/nspcc-dev/dbft v0.0.0-20220414131237-e497bbf7868e
|
|
github.com/nspcc-dev/go-ordered-json v0.0.0-20220111165707-25110be27d22
|
|
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220421162616-d942940a826c
|
|
github.com/nspcc-dev/neofs-sdk-go v0.0.0-20220113123743-7f3162110659
|
|
github.com/nspcc-dev/rfc6979 v0.2.0
|
|
github.com/pierrec/lz4 v2.6.1+incompatible
|
|
github.com/pmezard/go-difflib v1.0.0
|
|
github.com/prometheus/client_golang v1.11.0
|
|
github.com/stretchr/testify v1.7.0
|
|
github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954
|
|
github.com/twmb/murmur3 v1.1.5
|
|
github.com/urfave/cli v1.22.5
|
|
go.etcd.io/bbolt v1.3.6
|
|
go.uber.org/atomic v1.9.0
|
|
go.uber.org/zap v1.18.1
|
|
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
|
|
golang.org/x/term v0.0.0-20210429154555-c04ba851c2a4
|
|
golang.org/x/text v0.3.7
|
|
golang.org/x/tools v0.1.8
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
)
|
|
|
|
go 1.16
|