Commit Graph

3439 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
ad8a7cf2f2 write completed funding tx to disk
* Will move to buckets specific to LNID’s in the future
2015-12-02 16:51:21 -08:00
Olaoluwa Osuntokun
92ff9a6bd5 scrap completedFundingState 2015-12-02 16:50:19 -08:00
Olaoluwa Osuntokun
3bf3fa576d make getNextMultiSigKey concurrent-safe 2015-12-02 16:50:00 -08:00
Olaoluwa Osuntokun
f8e4ff8edc bare skeleton of funding -> open channel workflow 2015-12-02 16:49:41 -08:00
Olaoluwa Osuntokun
ab10677d91 lnwallet_test: initial test testing basic funding reservation workflow 2015-11-29 12:20:16 -08:00
Olaoluwa Osuntokun
5d9b4e73ff lnwallet: fix panic, use append to collect sigs 2015-11-29 12:19:47 -08:00
Olaoluwa Osuntokun
dbc9c27758 lnwallet/reservation: properly populate request struct, forgot err chan 2015-11-29 12:19:13 -08:00
Olaoluwa Osuntokun
42ba1a5394 lnwallet/reservation: s/Unlock/RUnlock, fix panic caused by double unlock 2015-11-28 18:20:57 -06:00
Olaoluwa Osuntokun
b36de8768d lnwallet: directly get change add for now, not connected to real node 2015-11-28 18:16:00 -06:00
Olaoluwa Osuntokun
627192f493 lnwallet: fix coin selection, translate to satoshis 2015-11-28 18:13:04 -06:00
Olaoluwa Osuntokun
06e5544428 lnwallet: ListUnspent takes int32 not uint32, use math.MaxInt32 instead 2015-11-28 17:28:48 -06:00
Olaoluwa Osuntokun
a56d2199a3 wallet_test: stop creating coinbase txns, make wallet think it's synced 2015-11-28 17:13:57 -06:00
Olaoluwa Osuntokun
bd37f05ad6 Stop btcwallet when shutting down lnwallet 2015-11-27 18:07:22 -06:00
Olaoluwa Osuntokun
bf1a090d1d add some utilities to aide with testing 2015-11-27 00:53:38 -06:00
Olaoluwa Osuntokun
86b274a223 reservation iD embedded in ChannelReservation no need to pass in 2015-11-27 00:52:14 -06:00
Olaoluwa Osuntokun
40a515b3db add some notes to roasbeef (TODO's) 2015-11-27 00:51:01 -06:00
Olaoluwa Osuntokun
dfd14d53a5 fill in some forgotten error paths 2015-11-27 00:50:17 -06:00
Olaoluwa Osuntokun
11179bf5c0 RequestChannelReservation -> InitChannelReservation 2015-11-27 00:49:48 -06:00
Olaoluwa Osuntokun
75d7c26e57 import walletdb/bdb for side effects (registers driver) 2015-11-27 00:49:21 -06:00
Olaoluwa Osuntokun
2945b8966d add rpc client to wallet 2015-11-27 00:48:42 -06:00
Olaoluwa Osuntokun
0f1bd0fcdd stop embedding btcwallet causing name conflicts 2015-11-27 00:48:20 -06:00
Olaoluwa Osuntokun
1d1ba454f4 pass db-path+hd-seed into wallet init 2015-11-27 00:46:59 -06:00
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.
2015-11-18 14:59:51 -08:00
Olaoluwa Osuntokun
5e8a2ed26f add skeleton for initial wallet tests 2015-11-18 14:59:07 -08:00
Olaoluwa Osuntokun
ff82c7d40a add constructor for LightningWallet 2015-11-18 14:38:57 -08:00
Olaoluwa Osuntokun
f28ca7d9dc add btcsuite license to setup.go 2015-11-18 14:38:29 -08:00
Olaoluwa Osuntokun
58d7afa7d3 introduce setup.go to handle initial wallet setup/create plus openening
* will be useful for future tests
2015-11-18 14:38:15 -08:00
Olaoluwa Osuntokun
e17ba7859e add concurrent-safe interface to ChannelReservation state 2015-11-14 11:52:07 -08:00
Olaoluwa Osuntokun
3fad3aabef start of wallet initialization for testing purposes 2015-11-12 19:34:35 -08:00
Olaoluwa Osuntokun
8583814f1f separate out channel init functionality into reservation
* Reservation has synchronous interface, wallet and only wallet should
mutate any of the attributes
2015-11-12 18:43:32 -08:00
Olaoluwa Osuntokun
f775e130e3 add note about normalized taxis 2015-11-12 17:45:18 -08:00
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
2015-11-12 17:45:09 -08:00
Olaoluwa Osuntokun
bf5f630e53 note to self, abstract reservations further 2015-11-05 12:36:33 -08:00
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
2015-11-05 12:36:19 -08:00
Olaoluwa Osuntokun
ce8be70c74 add funding limbo to store pending channel opens 2015-11-05 12:34:11 -08:00
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
2015-11-05 12:33:35 -08:00
Olaoluwa Osuntokun
980f5e0879 move coin selection funcs to new file
* Will later include proper tx fee calculation based on size after
selection
2015-11-05 12:32:15 -08:00
Olaoluwa Osuntokun
0b66ed24be initial draft of ln-wallet workflow, funding reservations implemented 2015-10-27 15:50:30 -07:00
Olaoluwa Osuntokun
85e1c7b91c blank README 2015-10-27 15:49:56 -07:00