github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/test/tools/LTE/chainmgmt/conf.go (about) 1 /* 2 Copyright IBM Corp. 2017 All Rights Reserved. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package chainmgmt 18 19 // ChainMgrConf captures the configurations meant at the level of chainMgr 20 // DataDir field specifies the filesystem location where the chains data is maintained 21 // NumChains field specifies the number of chains to instantiate 22 type ChainMgrConf struct { 23 DataDir string 24 NumChains int 25 } 26 27 // BatchConf captures the batch related configurations 28 // BatchSize specifies the number of transactions in one block 29 // SignBlock specifies whether the transactions should be signed 30 type BatchConf struct { 31 BatchSize int 32 SignBlock bool 33 }