chainntnfs/txconfnotifier: add HistoricalConfDispatch struct

This commit is contained in:
Conner Fromknecht 2018-09-28 16:24:19 -07:00
parent e804b30669
commit 37c864d6f6
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -48,6 +48,26 @@ type ConfNtfn struct {
dispatched bool
}
// HistoricalConfDispatch parameterizes a manual rescan for a particular
// transaction identifier. The parameters include the start and end block
// heights specifying the range of blocks to scan.
type HistoricalConfDispatch struct {
// TxID is the transaction ID to search for in the historical dispatch.
TxID *chainhash.Hash
// PkScript is a public key script from an output created by this
// transaction.
PkScript []byte
// StartHeight specifies the block height at which to being the
// historical rescan.
StartHeight uint32
// EndHeight specifies the last block height (inclusive) that the
// historical scan should consider.
EndHeight uint32
}
// NewConfirmationEvent constructs a new ConfirmationEvent with newly opened
// channels.
func NewConfirmationEvent(numConfs uint32) *ConfirmationEvent {