forked from TrueCloudLab/neoneo-go
d5df1212c2
It will be important for proper subscription testing and it doesn't hurt even though technically we've got two http servers listening after this change (one is a regular Server's http.Server and one is httptest's Server). Reusing rpc.Server would be nice, but it requires some changes to Start sequence to start Listener with net.Listen and then communicate back its resulting Addr. It's not very convenient especially given that no other code needs it, so doing these changes just for a bit cleaner testing seems like and overkill. Update config appropriately. Update Start comment along the way.
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
ProtocolConfiguration:
|
|
Magic: 56753
|
|
AddressVersion: 23
|
|
SecondsPerBlock: 15
|
|
LowPriorityThreshold: 0.000
|
|
MemPoolSize: 50000
|
|
StandbyValidators:
|
|
- 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2
|
|
- 02103a7f7dd016558597f7960d27c516a4394fd968b9e65155eb4b013e4040406e
|
|
- 03d90c07df63e690ce77912e10ab51acc944b66860237b608c4f8f8309e71ee699
|
|
- 02a7bc55fe8684e0119768d104ba30795bdcc86619e864add26156723ed185cd62
|
|
SeedList:
|
|
- 127.0.0.1:20334
|
|
- 127.0.0.1:20335
|
|
- 127.0.0.1:20336
|
|
SystemFee:
|
|
EnrollmentTransaction: 1000
|
|
IssueTransaction: 500
|
|
PublishTransaction: 500
|
|
RegisterTransaction: 10000
|
|
VerifyBlocks: true
|
|
VerifyTransactions: true
|
|
|
|
ApplicationConfiguration:
|
|
# LogPath could be set up in case you need stdout logs to some proper file.
|
|
# LogPath: "./log/neogo.log"
|
|
DBConfiguration:
|
|
Type: "inmemory" #other options: 'inmemory','redis','boltdb', 'badgerdb'.
|
|
# DB type options. Uncomment those you need in case you want to switch DB type.
|
|
# LevelDBOptions:
|
|
# DataDirectoryPath: "./chains/unit_testnet"
|
|
# RedisDBOptions:
|
|
# Addr: "localhost:6379"
|
|
# Password: ""
|
|
# DB: 0
|
|
# BoltDBOptions:
|
|
# FilePath: "./chains/unit_testnet.bolt"
|
|
# BadgerDBOptions:
|
|
# BadgerDir: "./chains/unit_testnet.badger"
|
|
# Uncomment in order to set up custom address for node.
|
|
# Address: 127.0.0.1
|
|
NodePort: 20333
|
|
Relay: true
|
|
DialTimeout: 3
|
|
ProtoTickInterval: 2
|
|
PingInterval: 30
|
|
PingTimeout: 90
|
|
MaxPeers: 50
|
|
AttemptConnPeers: 5
|
|
MinPeers: 1
|
|
RPC:
|
|
Address: 127.0.0.1
|
|
Enabled: true
|
|
EnableCORSWorkaround: false
|
|
Port: 0 # let the system choose port dynamically
|
|
Prometheus:
|
|
Enabled: false #since it's not useful for unit tests.
|
|
Port: 2112
|
|
Pprof:
|
|
Enabled: false #since it's not useful for unit tests.
|
|
Port: 2113
|