2018-03-15 20:45:37 +00:00
|
|
|
ProtocolConfiguration:
|
2020-05-27 09:41:20 +00:00
|
|
|
Magic: 1951352142
|
Implement rpc server method: sendrawtransaction (#174)
* Added new config attributes: 'SecondsPerBlock','LowPriorityThreshold'
* Added new files:
* Added new method: CompareTo
* Fixed empty Slice case
* Added new methods: LessThan, GreaterThan, Equal, CompareTo
* Added new method: InputIntersection
* Added MaxTransactionSize, GroupOutputByAssetID
* Added ned method: ScriptHash
* Added new method: IsDoubleSpend
* Refactor blockchainer, Added Feer interface, Verify and GetMemPool method
* 1) Added MemPool
2) Added new methods to satisfy the blockchainer interface: IsLowPriority, Verify, GetMemPool
* Added new methods: RelayTxn, RelayDirectly
* Fixed tests
* Implemented RPC server method sendrawtransaction
* Refactor getrawtransaction, sendrawtransaction in separate methods
* Moved 'secondsPerBlock' to config file
* Implemented Kim suggestions:
1) Fixed data race issues
2) refactor Verify method
3) Get rid of unused InputIntersection method due to refactoring Verify method
4) Fixed bug in https://github.com/CityOfZion/neo-go/pull/174#discussion_r264108135
5) minor simplications of the code
* Fixed minor issues related to
1) space
2) getter methods do not need pointer on the receiver
3) error message
4) refactoring CompareTo method in uint256.go
* Fixed small issues
* Use sync.RWMutex instead of sync.Mutex
* Refined (R)Lock/(R)Unlock
* return error instead of bool in Verify methods
2019-03-20 12:30:05 +00:00
|
|
|
SecondsPerBlock: 15
|
|
|
|
LowPriorityThreshold: 0.000
|
2020-01-22 14:28:02 +00:00
|
|
|
MemPoolSize: 50000
|
2018-03-15 20:45:37 +00:00
|
|
|
StandbyValidators:
|
2020-05-27 09:41:20 +00:00
|
|
|
- 023e9b32ea89b94d066e649b124fd50e396ee91369e8e2a6ae1b11c170d022256d
|
|
|
|
- 03009b7540e10f2562e5fd8fac9eaec25166a58b26e412348ff5a86927bfac22a2
|
|
|
|
- 02ba2c70f5996f357a43198705859fae2cfea13e1172962800772b3d588a9d4abd
|
|
|
|
- 03408dcd416396f64783ac587ea1e1593c57d9fea880c8a6a1920e92a259477806
|
|
|
|
- 02a7834be9b32e2981d157cb5bbd3acb42cfd11ea5c3b10224d7a44e98c5910f1b
|
|
|
|
- 0214baf0ceea3a66f17e7e1e839ea25fd8bed6cd82e6bb6e68250189065f44ff01
|
|
|
|
- 030205e9cefaea5a1dfc580af20c8d5aa2468bb0148f1a5e4605fc622c80e604ba
|
2018-03-15 20:45:37 +00:00
|
|
|
SeedList:
|
2020-05-27 09:41:20 +00:00
|
|
|
- seed1t.neo.org:20333
|
|
|
|
- seed2t.neo.org:20333
|
|
|
|
- seed3t.neo.org:20333
|
|
|
|
- seed4t.neo.org:20333
|
|
|
|
- seed5t.neo.org:20333
|
2019-10-11 14:46:47 +00:00
|
|
|
VerifyBlocks: true
|
|
|
|
VerifyTransactions: false
|
2020-01-21 13:39:48 +00:00
|
|
|
FreeGasLimit: 10.0
|
2020-02-18 17:16:38 +00:00
|
|
|
MaxTransactionsPerBlock: 500
|
|
|
|
MaxFreeTransactionsPerBlock: 20
|
|
|
|
MaxFreeTransactionSize: 1024
|
|
|
|
FeePerExtraByte: 0.00001
|
2018-03-15 20:45:37 +00:00
|
|
|
|
|
|
|
ApplicationConfiguration:
|
2019-11-05 12:22:07 +00:00
|
|
|
# LogPath could be set up in case you need stdout logs to some proper file.
|
|
|
|
# LogPath: "./log/neogo.log"
|
2019-09-10 14:22:21 +00:00
|
|
|
DBConfiguration:
|
2020-04-08 14:14:58 +00:00
|
|
|
Type: "leveldb" #other options: 'inmemory','redis','boltdb', 'badgerdb'.
|
2019-09-10 14:22:21 +00:00
|
|
|
# DB type options. Uncomment those you need in case you want to switch DB type.
|
|
|
|
LevelDBOptions:
|
|
|
|
DataDirectoryPath: "./chains/testnet"
|
|
|
|
# RedisDBOptions:
|
|
|
|
# Addr: "localhost:6379"
|
|
|
|
# Password: ""
|
|
|
|
# DB: 0
|
2019-09-14 07:28:43 +00:00
|
|
|
# BoltDBOptions:
|
|
|
|
# FilePath: "./chains/testnet.bolt"
|
2020-04-08 14:14:58 +00:00
|
|
|
# BadgerDBOptions:
|
|
|
|
# BadgerDir: "./chains/testnet.badger"
|
2019-11-05 12:22:07 +00:00
|
|
|
# Uncomment in order to set up custom address for node.
|
|
|
|
# Address: 127.0.0.1
|
2018-03-15 20:45:37 +00:00
|
|
|
NodePort: 20333
|
|
|
|
Relay: true
|
|
|
|
DialTimeout: 3
|
2018-03-25 10:45:54 +00:00
|
|
|
ProtoTickInterval: 2
|
2020-01-20 16:02:19 +00:00
|
|
|
PingInterval: 30
|
|
|
|
PingTimeout: 90
|
2019-11-06 12:17:20 +00:00
|
|
|
MaxPeers: 100
|
|
|
|
AttemptConnPeers: 20
|
2019-10-31 12:04:28 +00:00
|
|
|
MinPeers: 5
|
2019-11-01 10:23:46 +00:00
|
|
|
RPC:
|
|
|
|
Enabled: true
|
|
|
|
EnableCORSWorkaround: false
|
|
|
|
Port: 20332
|
2020-03-10 11:56:18 +00:00
|
|
|
TLSConfig:
|
|
|
|
Enabled: false
|
|
|
|
Port: 20331
|
|
|
|
CertFile: serv.crt
|
|
|
|
KeyFile: serv.key
|
2019-12-04 06:48:32 +00:00
|
|
|
Prometheus:
|
2019-10-29 17:51:17 +00:00
|
|
|
Enabled: true
|
|
|
|
Port: 2112
|
2019-12-04 06:48:32 +00:00
|
|
|
Pprof:
|
|
|
|
Enabled: false
|
|
|
|
Port: 2113
|