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{}
|
msgChan chan interface{}
|
||||||
|
|
||||||
//lockedInputs []*LockedPrevOut
|
// TODO(roasbeef): zombie garbage collection routine to solve
|
||||||
//lockedOutputs []*LockedOutPoint
|
// lost-object/starvation problem/attack.
|
||||||
|
limboMtx sync.RWMutex
|
||||||
|
nextFundingID uint64 // TODO(roasbeef): monotonic or random?
|
||||||
|
fundingLimbo map[uint64]*partialFundingState
|
||||||
|
|
||||||
keyPool *multiSigKeyPool
|
keyPool *multiSigKeyPool
|
||||||
|
|
||||||
started int32
|
started int32
|
||||||
@ -93,6 +97,12 @@ type LightningWallet struct {
|
|||||||
wg sync.WaitGroup
|
wg sync.WaitGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewLightningWallet...
|
||||||
|
// TODO(roasbeef): fin...
|
||||||
|
func NewLightningWallet() (*LightningWallet, error) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
// Start...
|
// Start...
|
||||||
func (l *LightningWallet) Start() error {
|
func (l *LightningWallet) Start() error {
|
||||||
// Already started?
|
// Already started?
|
||||||
|
Loading…
Reference in New Issue
Block a user