mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-02-23 05:54:30 +00:00
Revert "rpc: adjust getversion
RPC response"
This reverts commit 1c6afe402f
.
This commit is contained in:
parent
9ad9700aef
commit
c042c5bb63
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ package result
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/nspcc-dev/neo-go/pkg/config/netmode"
|
"github.com/nspcc-dev/neo-go/pkg/config/netmode"
|
||||||
|
"github.com/nspcc-dev/neo-go/pkg/encoding/fixedn"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
@ -31,7 +32,7 @@ type (
|
||||||
MaxTransactionsPerBlock uint16 `json:"maxtransactionsperblock"`
|
MaxTransactionsPerBlock uint16 `json:"maxtransactionsperblock"`
|
||||||
MemoryPoolMaxTransactions int `json:"memorypoolmaxtransactions"`
|
MemoryPoolMaxTransactions int `json:"memorypoolmaxtransactions"`
|
||||||
ValidatorsCount byte `json:"validatorscount"`
|
ValidatorsCount byte `json:"validatorscount"`
|
||||||
InitialGasDistribution int64 `json:"initialgasdistribution"`
|
InitialGasDistribution fixedn.Fixed8 `json:"initialgasdistribution"`
|
||||||
// StateRootInHeader is true if state root is contained in block header.
|
// StateRootInHeader is true if state root is contained in block header.
|
||||||
StateRootInHeader bool `json:"staterootinheader,omitempty"`
|
StateRootInHeader bool `json:"staterootinheader,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -551,7 +551,7 @@ func (s *Server) getVersion(_ request.Params) (interface{}, *response.Error) {
|
||||||
MaxTransactionsPerBlock: cfg.MaxTransactionsPerBlock,
|
MaxTransactionsPerBlock: cfg.MaxTransactionsPerBlock,
|
||||||
MemoryPoolMaxTransactions: cfg.MemPoolSize,
|
MemoryPoolMaxTransactions: cfg.MemPoolSize,
|
||||||
ValidatorsCount: byte(cfg.GetNumOfCNs(s.chain.BlockHeight())),
|
ValidatorsCount: byte(cfg.GetNumOfCNs(s.chain.BlockHeight())),
|
||||||
InitialGasDistribution: int64(cfg.InitialGASSupply),
|
InitialGasDistribution: cfg.InitialGASSupply,
|
||||||
StateRootInHeader: cfg.StateRootInHeader,
|
StateRootInHeader: cfg.StateRootInHeader,
|
||||||
},
|
},
|
||||||
}, nil
|
}, nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue