github.com/BlockABC/godash@v0.0.0-20191112120524-f4aa3a32c566/mining/policy.go (about) 1 // Copyright (c) 2014-2015 The btcsuite developers 2 // Copyright (c) 2016 The Dash developers 3 // Use of this source code is governed by an ISC 4 // license that can be found in the LICENSE file. 5 6 package mining 7 8 import "github.com/BlockABC/godashutil" 9 10 // Policy houses the policy (configuration parameters) which is used to control 11 // the generation of block templates. See the documentation for 12 // NewBlockTemplate for more details on each of these parameters are used. 13 type Policy struct { 14 // BlockMinSize is the minimum block size in bytes to be used when 15 // generating a block template. 16 BlockMinSize uint32 17 18 // BlockMaxSize is the maximum block size in bytes to be used when 19 // generating a block template. 20 BlockMaxSize uint32 21 22 // BlockPrioritySize is the size in bytes for high-priority / low-fee 23 // transactions to be used when generating a block template. 24 BlockPrioritySize uint32 25 26 // TxMinFreeFee is the minimum fee in Satoshi/1000 bytes that is 27 // required for a transaction to be treated as free for mining purposes 28 // (block template generation). 29 TxMinFreeFee godashutil.Amount 30 }