add funding limbo to store pending channel opens
This commit is contained in:
parent
02844741e8
commit
ce8be70c74
@ -81,8 +81,12 @@ type LightningWallet struct {
|
||||
|
||||
msgChan chan interface{}
|
||||
|
||||
//lockedInputs []*LockedPrevOut
|
||||
//lockedOutputs []*LockedOutPoint
|
||||
// TODO(roasbeef): zombie garbage collection routine to solve
|
||||
// lost-object/starvation problem/attack.
|
||||
limboMtx sync.RWMutex
|
||||
nextFundingID uint64 // TODO(roasbeef): monotonic or random?
|
||||
fundingLimbo map[uint64]*partialFundingState
|
||||
|
||||
keyPool *multiSigKeyPool
|
||||
|
||||
started int32
|
||||
@ -93,6 +97,12 @@ type LightningWallet struct {
|
||||
wg sync.WaitGroup
|
||||
}
|
||||
|
||||
// NewLightningWallet...
|
||||
// TODO(roasbeef): fin...
|
||||
func NewLightningWallet() (*LightningWallet, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// Start...
|
||||
func (l *LightningWallet) Start() error {
|
||||
// Already started?
|
||||
|
Loading…
Reference in New Issue
Block a user