mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-24 09:30:36 +00:00
17 lines
524 B
Go
17 lines
524 B
Go
package result
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/config/netmode"
|
|
|
|
type (
|
|
// Version model used for reporting server version
|
|
// info.
|
|
Version struct {
|
|
Magic netmode.Magic `json:"magic"`
|
|
TCPPort uint16 `json:"tcpport"`
|
|
WSPort uint16 `json:"wsport,omitempty"`
|
|
Nonce uint32 `json:"nonce"`
|
|
UserAgent string `json:"useragent"`
|
|
// StateRootInHeader is true if state root is contained in block header.
|
|
StateRootInHeader bool `json:"staterootinheader,omitempty"`
|
|
}
|
|
)
|