config.go raw

   1  package active
   2  
   3  import (
   4  	"net"
   5  	"time"
   6  
   7  	"github.com/p9c/p9/pkg/amt"
   8  	"github.com/p9c/p9/pkg/btcaddr"
   9  	"github.com/p9c/p9/pkg/connmgr"
  10  
  11  	"github.com/p9c/p9/pkg/chaincfg"
  12  )
  13  
  14  // Config stores current state of the node
  15  type Config struct {
  16  	Lookup              connmgr.LookupFunc
  17  	Oniondial           func(string, string, time.Duration) (net.Conn, error)
  18  	Dial                func(string, string, time.Duration) (net.Conn, error)
  19  	AddedCheckpoints    []chaincfg.Checkpoint
  20  	ActiveMiningAddrs   []btcaddr.Address
  21  	ActiveMinerKey      []byte
  22  	ActiveMinRelayTxFee amt.Amount
  23  	ActiveWhitelists    []*net.IPNet
  24  	DropAddrIndex       bool
  25  	DropTxIndex         bool
  26  	DropCfIndex         bool
  27  	Save                bool
  28  }
  29