2020-03-10 12:20:34 -07:00
|
|
|
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
|
|
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ava-labs/gecko/utils"
|
|
|
|
"github.com/ava-labs/gecko/utils/logging"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Config contains all of the configurations of an Ava client.
|
|
|
|
type Config struct {
|
|
|
|
// Networking configurations
|
|
|
|
RemoteIP utils.IPDesc // Which Ava node to connect to
|
|
|
|
|
|
|
|
// ID of the network that this client will be issuing transactions to
|
|
|
|
NetworkID uint32
|
|
|
|
|
|
|
|
// Transaction fee
|
|
|
|
AvaTxFee uint64
|
|
|
|
|
|
|
|
EnableCrypto bool
|
|
|
|
LoggingConfig logging.Config
|
|
|
|
|
|
|
|
// Key describes which key to use to issue transactions
|
2020-03-30 23:54:12 -07:00
|
|
|
Key []byte
|
|
|
|
|
2020-03-13 14:31:23 -07:00
|
|
|
// NumTxs describes the number of transactions to issue
|
2020-03-10 12:20:34 -07:00
|
|
|
// MaxOutstandingTxs describes how many txs to pipeline
|
2020-03-30 23:54:12 -07:00
|
|
|
NumTxs, MaxOutstandingTxs int
|
|
|
|
Chain ChainType
|
2020-03-10 12:20:34 -07:00
|
|
|
}
|