mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
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. |
||
---|---|---|
.. | ||
cmdargs | ||
flags | ||
input | ||
options | ||
paramcontext | ||
query | ||
server | ||
smartcontract | ||
testdata | ||
util | ||
vm | ||
wallet | ||
.gitignore | ||
candidate_test.go | ||
contract_test.go | ||
dump_test.go | ||
executor_test.go | ||
main.go | ||
main_test.go | ||
multisig_test.go | ||
nep11_test.go | ||
nep17_test.go | ||
options_test.go | ||
query_test.go | ||
server_test.go | ||
util_test.go | ||
wallet_test.go |