mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
b327308df8
Follow neo-project/neo#2042, use 2102400 setting for mainnet/testnet and 200000 for private networks.
29 lines
1.2 KiB
Go
29 lines
1.2 KiB
Go
package config
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/config/netmode"
|
|
)
|
|
|
|
// ProtocolConfiguration represents the protocol config.
|
|
type (
|
|
ProtocolConfiguration struct {
|
|
Magic netmode.Magic `yaml:"Magic"`
|
|
MemPoolSize int `yaml:"MemPoolSize"`
|
|
// MaxTraceableBlocks is the length of the chain accessible to smart contracts.
|
|
MaxTraceableBlocks uint32 `yaml:"MaxTraceableBlocks"`
|
|
// P2PSigExtensions enables additional signature-related transaction attributes
|
|
P2PSigExtensions bool `yaml:"P2PSigExtensions"`
|
|
// ReservedAttributes allows to have reserved attributes range for experimental or private purposes.
|
|
ReservedAttributes bool `yaml:"ReservedAttributes"`
|
|
// SaveStorageBatch enables storage batch saving before every persist.
|
|
SaveStorageBatch bool `yaml:"SaveStorageBatch"`
|
|
SecondsPerBlock int `yaml:"SecondsPerBlock"`
|
|
SeedList []string `yaml:"SeedList"`
|
|
StandbyCommittee []string `yaml:"StandbyCommittee"`
|
|
ValidatorsCount int `yaml:"ValidatorsCount"`
|
|
// Whether to verify received blocks.
|
|
VerifyBlocks bool `yaml:"VerifyBlocks"`
|
|
// Whether to verify transactions in received blocks.
|
|
VerifyTransactions bool `yaml:"VerifyTransactions"`
|
|
}
|
|
)
|