Documentation
¶
Index ¶
- Variables
- func PushTx(tx *wire.MsgTx) error
- func RunIBD(cfg *Config, sig chan bool) error
- type CompactState
- type Config
- type Csn
- func (c *Csn) IBDThread(cfg Config, sig chan bool)
- func (ch *Csn) RegisterAddress(adr [20]byte)
- func (ch *Csn) RegisterOutPoint(op wire.OutPoint)
- func (c *Csn) ScanBlock(b *btcutil.Block)
- func (c *Csn) Start(cfg *Config, height int32, path, proxyURL string, haltSig chan bool) (chan wire.MsgTx, chan int32, error)
- func (ch *Csn) UnegisterOutPoint(op wire.OutPoint)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidNetwork = errors.New("Invalid/not supported net flag given")
)
View Source
var HelpMsg = `` /* 753-byte string literal not displayed */
View Source
var PollardFilePath string = "pollardFile"
Functions ¶
Types ¶
type CompactState ¶
type CompactState struct {
// contains filtered or unexported fields
}
CsnHook is the main stateful struct for the Compact State Node. It keeps track of what block its on and what transactions it's looking for
type Config ¶
type Csn ¶
type Csn struct { CurrentHeight int32 WatchOPs map[wire.OutPoint]bool WatchAdrs map[[20]byte]bool // TODO use better addresses, either []byte or something fancy TxChan chan wire.MsgTx HeightChan chan int32 CheckSignatures bool Params chaincfg.Params // contains filtered or unexported fields }
CsnHook is the main stateful struct for the Compact State Node. It keeps track of what block its on and what transactions it's looking for
func (*Csn) IBDThread ¶
run IBD from block proof data we get the new utxo info from the same txos text file
func (*Csn) RegisterAddress ¶
func (*Csn) RegisterOutPoint ¶
func (*Csn) ScanBlock ¶
ScanBlock looks through a block using the CSN's maps and sends matches into the tx channel.
func (*Csn) Start ¶
func (c *Csn) Start(cfg *Config, height int32, path, proxyURL string, haltSig chan bool) ( chan wire.MsgTx, chan int32, error)
Start starts up a compact state node, and returns channels for txs and block heights.
func (*Csn) UnegisterOutPoint ¶
Click to show internal directories.
Click to hide internal directories.