neoneo-go/pkg/config
Anna Shaleva 9862b40f2c rpc: support InitialGasDistribution response from old Neo-Go nodes
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.
2022-04-27 19:00:46 +03:00
..
netmode config: update mainnet magic 2021-07-21 14:42:26 +03:00
testdata config: add NativeUpdateHistory 2021-03-15 12:35:14 +03:00
application_config.go config: fix duration parameter types 2021-09-25 13:13:51 +03:00
config.go rpc: support InitialGasDistribution response from old Neo-Go nodes 2022-04-27 19:00:46 +03:00
config_test.go config: add NativeUpdateHistory 2021-03-15 12:35:14 +03:00
doc.go *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
notary_config.go core, network: add Notary module 2021-02-02 22:01:20 +03:00
oracle_config.go oracle: check response Content-Type 2021-07-12 13:13:48 +03:00
protocol_config.go config: conflict P2PStateExchangeExtensions/KeepOnlyLatestState 2022-02-11 14:19:54 +03:00
protocol_config_test.go config: conflict P2PStateExchangeExtensions/KeepOnlyLatestState 2022-02-11 14:19:54 +03:00
state_root.go stateroot: allow to sign new roots 2021-03-09 13:51:11 +03:00
wallet_config.go *: move wallet config from wallet to config package 2020-06-29 09:15:29 +03:00