Olaoluwa Osuntokun
9a601241d6
ensure bob sig's are valid, and his output actually exists
9 years ago
Olaoluwa Osuntokun
ad8a7cf2f2
write completed funding tx to disk
...
* Will move to buckets specific to LNID’s in the future
9 years ago
Olaoluwa Osuntokun
92ff9a6bd5
scrap completedFundingState
9 years ago
Olaoluwa Osuntokun
3bf3fa576d
make getNextMultiSigKey concurrent-safe
9 years ago
Olaoluwa Osuntokun
f8e4ff8edc
bare skeleton of funding -> open channel workflow
9 years ago
Olaoluwa Osuntokun
ab10677d91
lnwallet_test: initial test testing basic funding reservation workflow
9 years ago
Olaoluwa Osuntokun
5d9b4e73ff
lnwallet: fix panic, use append to collect sigs
9 years ago
Olaoluwa Osuntokun
dbc9c27758
lnwallet/reservation: properly populate request struct, forgot err chan
9 years ago
Olaoluwa Osuntokun
42ba1a5394
lnwallet/reservation: s/Unlock/RUnlock, fix panic caused by double unlock
9 years ago
Olaoluwa Osuntokun
b36de8768d
lnwallet: directly get change add for now, not connected to real node
9 years ago
Olaoluwa Osuntokun
627192f493
lnwallet: fix coin selection, translate to satoshis
9 years ago
Olaoluwa Osuntokun
06e5544428
lnwallet: ListUnspent takes int32 not uint32, use math.MaxInt32 instead
9 years ago
Olaoluwa Osuntokun
a56d2199a3
wallet_test: stop creating coinbase txns, make wallet think it's synced
9 years ago
Olaoluwa Osuntokun
bd37f05ad6
Stop btcwallet when shutting down lnwallet
9 years ago
Olaoluwa Osuntokun
bf1a090d1d
add some utilities to aide with testing
9 years ago
Olaoluwa Osuntokun
86b274a223
reservation iD embedded in ChannelReservation no need to pass in
9 years ago
Olaoluwa Osuntokun
40a515b3db
add some notes to roasbeef (TODO's)
9 years ago
Olaoluwa Osuntokun
dfd14d53a5
fill in some forgotten error paths
9 years ago
Olaoluwa Osuntokun
11179bf5c0
RequestChannelReservation -> InitChannelReservation
9 years ago
Olaoluwa Osuntokun
75d7c26e57
import walletdb/bdb for side effects (registers driver)
9 years ago
Olaoluwa Osuntokun
2945b8966d
add rpc client to wallet
9 years ago
Olaoluwa Osuntokun
0f1bd0fcdd
stop embedding btcwallet causing name conflicts
9 years ago
Olaoluwa Osuntokun
1d1ba454f4
pass db-path+hd-seed into wallet init
9 years ago
Olaoluwa Osuntokun
b023120460
add skeleton for shachain packaged
...
* Still considering if it’s better just to use a modified HD chain or
not:
* give them child branch/sub-tree etc.
9 years ago
Olaoluwa Osuntokun
5e8a2ed26f
add skeleton for initial wallet tests
9 years ago
Olaoluwa Osuntokun
ff82c7d40a
add constructor for LightningWallet
9 years ago
Olaoluwa Osuntokun
f28ca7d9dc
add btcsuite license to setup.go
9 years ago
Olaoluwa Osuntokun
58d7afa7d3
introduce setup.go to handle initial wallet setup/create plus openening
...
* will be useful for future tests
9 years ago
Olaoluwa Osuntokun
e17ba7859e
add concurrent-safe interface to ChannelReservation state
9 years ago
Olaoluwa Osuntokun
3fad3aabef
start of wallet initialization for testing purposes
9 years ago
Olaoluwa Osuntokun
8583814f1f
separate out channel init functionality into reservation
...
* Reservation has synchronous interface, wallet and only wallet should
mutate any of the attributes
9 years ago
Olaoluwa Osuntokun
f775e130e3
add note about normalized taxis
9 years ago
Olaoluwa Osuntokun
c6e7c6b1b6
scrap the multi-sig key pool, better to just use HD paths
...
* Better to just keep the single file back-up IMO
9 years ago
Olaoluwa Osuntokun
bf5f630e53
note to self, abstract reservations further
9 years ago
Olaoluwa Osuntokun
ca40a2d924
Revamp funding workflow to match p2p workflow
...
* Now more closely mirrors Joseph’s photos
* 3 step dance: init, theirFunds, theirSigs -> complete
* Currently missing any concept of reserve funds for CLTV
* Many lingering TODO’s still, once addressed will move onto Commitment
TX update, and HTLC workflow
9 years ago
Olaoluwa Osuntokun
ce8be70c74
add funding limbo to store pending channel opens
9 years ago
Olaoluwa Osuntokun
02844741e8
add resource pool for multi-sig keys
...
* Need to change to instead just use the HD chain so backups aren’t
fragmented
* Optional pre-load on start available, will push EC computations up
front
9 years ago
Olaoluwa Osuntokun
980f5e0879
move coin selection funcs to new file
...
* Will later include proper tx fee calculation based on size after
selection
9 years ago
Olaoluwa Osuntokun
0b66ed24be
initial draft of ln-wallet workflow, funding reservations implemented
9 years ago
Olaoluwa Osuntokun
85e1c7b91c
blank README
9 years ago