-
36ec5b4927
lnwallet: update tests to AddContribution API change
Olaoluwa Osuntokun
2015-12-21 15:55:17 -06:00
-
829f67f33e
lnwallet: CompleteReservation now includes sig for commit tx
Olaoluwa Osuntokun
2015-12-21 15:54:33 -06:00
-
584fc9b620
lnwallet: AddFunds is now AddContribution, accounts for commitment tx
Olaoluwa Osuntokun
2015-12-21 15:53:34 -06:00
-
e7e546af9a
lnwallet/reservation: fundingLockTime is int64 track their revoke hash
Olaoluwa Osuntokun
2015-12-21 15:49:57 -06:00
-
d7d569b267
lnwallet: track their current commitment sig in channel state
Olaoluwa Osuntokun
2015-12-21 15:49:34 -06:00
-
06bad8ba42
revocation: fix integer underflow infinite loop bug in sha chain
Olaoluwa Osuntokun
2015-12-21 15:47:36 -06:00
-
d7fba0e89d
revocation: fix nil pointer panic in shachain constructor
Olaoluwa Osuntokun
2015-12-21 15:41:23 -06:00
-
b9a6155021
lnwallet: add field to track current out-of-chain revocation hash
Olaoluwa Osuntokun
2015-12-20 21:48:56 -06:00
-
8cbbba14a4
lnwallet: assume symmetric initial channel balance
Olaoluwa Osuntokun
2015-12-20 21:48:45 -06:00
-
6d006ac79c
lnwallet: sort inputs/outputs in commit tx
Olaoluwa Osuntokun
2015-12-20 21:47:57 -06:00
-
d3fe04ab9b
lnwallet: add function to locate script index to script_utils.go
Olaoluwa Osuntokun
2015-12-20 21:47:29 -06:00
-
baf3b70e31
plasma: correct commit with sketch of lnwire.Message interface
Olaoluwa Osuntokun
2015-12-20 21:47:00 -06:00
-
422f0a9791
revocation: split up methods to get current pre-image and hash
Olaoluwa Osuntokun
2015-12-20 21:46:41 -06:00
-
34e35fe2d5
lnwallet: set commit tnx related info in ChannelReservation
Olaoluwa Osuntokun
2015-12-20 17:13:14 -06:00
-
c7d604fd0b
lnwallet: use funcs in script_utils.go
Olaoluwa Osuntokun
2015-12-20 17:11:21 -06:00
-
30523d7db3
lnwallet: import badge's script utils in new file
Olaoluwa Osuntokun
2015-12-20 17:10:24 -06:00
-
f52f2fd26c
plamas/peer: just use net.Conn for generality
Olaoluwa Osuntokun
2015-12-20 17:10:09 -06:00
-
093bbf40ad
lnwallet: track some more stats in channel state
Olaoluwa Osuntokun
2015-12-20 15:17:13 -06:00
-
d5f36d81c8
plasma: rough draft of peer struct
Olaoluwa Osuntokun
2015-12-20 15:16:38 -06:00
-
d2e3b376ea
lnwallet: re-name package to lnwallet, though it was?
Olaoluwa Osuntokun
2015-12-20 00:00:50 -06:00
-
61f5772c40
lnwallet: re-use same wallet instance across tests
Olaoluwa Osuntokun
2015-12-18 21:48:55 -06:00
-
29d381ad21
lnwallet: adapt tests to field changes
Olaoluwa Osuntokun
2015-12-18 21:47:47 -06:00
-
420e34cc91
lnwallet: forgot some field name changes
Olaoluwa Osuntokun
2015-12-18 21:43:37 -06:00
-
a689595054
lnwallet: comment out lnwire-like serialization stuff for now
Olaoluwa Osuntokun
2015-12-18 21:42:49 -06:00
-
2f7a801dcb
lnwallet: embed channel state within ChannelReservation
Olaoluwa Osuntokun
2015-12-18 21:39:51 -06:00
-
6bb37448f0
lnwallet: add num updates and delivery addresses to channel state
Olaoluwa Osuntokun
2015-12-18 21:35:40 -06:00
-
6af4aaf71b
lnwallet: separate channel state into new struct
Olaoluwa Osuntokun
2015-12-18 15:37:13 -06:00
-
39b100b865
Serialize Funding Request and script for CLTV-only
Joseph Poon
2015-12-18 11:29:35 -08:00
-
feb00e04c4
lnwallet: add fun to create initial Commitment Tx
Olaoluwa Osuntokun
2015-12-16 22:58:49 -06:00
-
48c1c39dc9
lnwallet: add skeleton for LightningChannel
Olaoluwa Osuntokun
2015-12-16 22:58:01 -06:00
-
a83dac4e86
revocation: skeleton for possibly needed method?
Olaoluwa Osuntokun
2015-12-16 22:56:11 -06:00
-
ddb74258ff
lnwallet: import tadge's p2shify func
Olaoluwa Osuntokun
2015-12-16 22:55:52 -06:00
-
e2c4ccbe28
chaintfns: skeleton of first notifier
Olaoluwa Osuntokun
2015-12-16 22:55:22 -06:00
-
d9f32db185
empty daemon entry point
Olaoluwa Osuntokun
2015-12-16 18:42:52 -06:00
-
139e63c9cf
shachain: constructors for remote vs origin
Olaoluwa Osuntokun
2015-12-16 18:42:07 -06:00
-
ce42741daa
First stab at shachain. Untested. Still doin't really get it...
Olaoluwa Osuntokun
2015-12-16 18:36:03 -06:00
-
147748d178
rename wallet to lnwallet
Olaoluwa Osuntokun
2015-12-16 14:51:59 -06:00
-
9de294c31f
add link to explanation
Olaoluwa Osuntokun
2015-12-16 14:49:01 -06:00
-
f475f6a0f2
Merge branch 'master' of li.lan:labs/plasma
Olaoluwa Osuntokun
2015-12-16 14:46:42 -06:00
-
-
69936d694c
revocation: HyperShaChan sounds cooler...
Olaoluwa Osuntokun
2015-12-16 14:43:59 -06:00
-
1621b8cc99
wallet/wallet_test: test for canceling reservations
Olaoluwa Osuntokun
2015-12-16 14:41:15 -06:00
-
24efbb46c3
wallet/reservation: Cancel needs to return an error
Olaoluwa Osuntokun
2015-12-16 14:40:44 -06:00
-
354bc74d3c
Flesh out LightningChannel struct a bit more
Olaoluwa Osuntokun
2015-12-16 14:40:11 -06:00
-
07984836e4
Create skeleton for revocation methods
Olaoluwa Osuntokun
2015-12-16 14:39:05 -06:00
-
b2522ef75a
Create skeleton for chain notifications
Olaoluwa Osuntokun
2015-12-16 14:38:21 -06:00
-
dd9552c980
wallet_test: add tests exercising output locking for concurrent safe funding
Olaoluwa Osuntokun
2015-12-16 13:22:36 -06:00
-
f70027fe76
add SegWit to support channel types
Olaoluwa Osuntokun
2015-12-16 13:04:51 -06:00
-
51dab18446
Committed the wrong _test file earlier...
Joseph Poon
2015-12-16 10:57:22 -08:00
-
a154e248ae
Taking a look...
Joseph Poon
2015-12-16 10:50:05 -08:00
-
-
cc6c59a427
wallet_test: ensure funding tx has been properly stored
Olaoluwa Osuntokun
2015-12-15 16:19:17 -06:00
-
6bb5febe9e
notes to self
Olaoluwa Osuntokun
2015-12-15 16:18:43 -06:00
-
41065a4538
check signatures in test itself, test-node infra not set up
Olaoluwa Osuntokun
2015-12-15 15:25:22 -06:00
-
46ad8389b2
note to self on steps after funding broadcast
Olaoluwa Osuntokun
2015-12-15 15:24:43 -06:00
-
cd8a4ccfa5
comment out gettxout logic for now, need test-node infrastructure
Olaoluwa Osuntokun
2015-12-15 15:24:19 -06:00
-
6f9ba620a8
grab the full script instead of just the hash for the change addr
Olaoluwa Osuntokun
2015-12-15 15:23:56 -06:00
-
4f89f8719c
bob's txin shouldn't have the pkscript as the sig :)
Olaoluwa Osuntokun
2015-12-15 15:23:17 -06:00
-
42880b5b4c
fix panic when creating bob-node
Olaoluwa Osuntokun
2015-12-15 15:22:54 -06:00
-
a5d915dea2
mental note to self
Olaoluwa Osuntokun
2015-12-15 15:22:33 -06:00
-
1cad40aaf0
add "future" open channel to reservation
Olaoluwa Osuntokun
2015-12-15 15:22:18 -06:00
-
9a601241d6
ensure bob sig's are valid, and his output actually exists
Olaoluwa Osuntokun
2015-12-02 16:51:46 -08:00
-
ad8a7cf2f2
write completed funding tx to disk
Olaoluwa Osuntokun
2015-12-02 16:51:21 -08:00
-
92ff9a6bd5
scrap completedFundingState
Olaoluwa Osuntokun
2015-12-02 16:50:19 -08:00
-
3bf3fa576d
make getNextMultiSigKey concurrent-safe
Olaoluwa Osuntokun
2015-12-02 16:50:00 -08:00
-
f8e4ff8edc
bare skeleton of funding -> open channel workflow
Olaoluwa Osuntokun
2015-12-02 16:49:41 -08:00
-
ab10677d91
lnwallet_test: initial test testing basic funding reservation workflow
Olaoluwa Osuntokun
2015-11-29 12:20:16 -08:00
-
5d9b4e73ff
lnwallet: fix panic, use append to collect sigs
Olaoluwa Osuntokun
2015-11-29 12:19:47 -08:00
-
dbc9c27758
lnwallet/reservation: properly populate request struct, forgot err chan
Olaoluwa Osuntokun
2015-11-29 12:19:13 -08:00
-
42ba1a5394
lnwallet/reservation: s/Unlock/RUnlock, fix panic caused by double unlock
Olaoluwa Osuntokun
2015-11-28 18:20:57 -06:00
-
b36de8768d
lnwallet: directly get change add for now, not connected to real node
Olaoluwa Osuntokun
2015-11-28 18:16:00 -06:00
-
627192f493
lnwallet: fix coin selection, translate to satoshis
Olaoluwa Osuntokun
2015-11-28 18:13:04 -06:00
-
06e5544428
lnwallet: ListUnspent takes int32 not uint32, use math.MaxInt32 instead
Olaoluwa Osuntokun
2015-11-28 17:28:48 -06:00
-
a56d2199a3
wallet_test: stop creating coinbase txns, make wallet think it's synced
Olaoluwa Osuntokun
2015-11-28 17:13:57 -06:00
-
bd37f05ad6
Stop btcwallet when shutting down lnwallet
Olaoluwa Osuntokun
2015-11-27 18:07:22 -06:00
-
bf1a090d1d
add some utilities to aide with testing
Olaoluwa Osuntokun
2015-11-27 00:53:38 -06:00
-
86b274a223
reservation iD embedded in ChannelReservation no need to pass in
Olaoluwa Osuntokun
2015-11-27 00:52:14 -06:00
-
40a515b3db
add some notes to roasbeef (TODO's)
Olaoluwa Osuntokun
2015-11-27 00:51:01 -06:00
-
dfd14d53a5
fill in some forgotten error paths
Olaoluwa Osuntokun
2015-11-27 00:50:17 -06:00
-
11179bf5c0
RequestChannelReservation -> InitChannelReservation
Olaoluwa Osuntokun
2015-11-27 00:49:48 -06:00
-
75d7c26e57
import walletdb/bdb for side effects (registers driver)
Olaoluwa Osuntokun
2015-11-27 00:49:21 -06:00
-
2945b8966d
add rpc client to wallet
Olaoluwa Osuntokun
2015-11-27 00:48:42 -06:00
-
0f1bd0fcdd
stop embedding btcwallet causing name conflicts
Olaoluwa Osuntokun
2015-11-27 00:48:20 -06:00
-
1d1ba454f4
pass db-path+hd-seed into wallet init
Olaoluwa Osuntokun
2015-11-27 00:46:59 -06:00
-
b023120460
add skeleton for shachain packaged
Olaoluwa Osuntokun
2015-11-18 14:59:51 -08:00
-
5e8a2ed26f
add skeleton for initial wallet tests
Olaoluwa Osuntokun
2015-11-18 14:59:07 -08:00
-
ff82c7d40a
add constructor for LightningWallet
Olaoluwa Osuntokun
2015-11-18 14:38:57 -08:00
-
f28ca7d9dc
add btcsuite license to setup.go
Olaoluwa Osuntokun
2015-11-18 14:38:29 -08:00
-
58d7afa7d3
introduce setup.go to handle initial wallet setup/create plus openening
Olaoluwa Osuntokun
2015-11-18 14:38:15 -08:00
-
e17ba7859e
add concurrent-safe interface to ChannelReservation state
Olaoluwa Osuntokun
2015-11-14 11:52:07 -08:00
-
3fad3aabef
start of wallet initialization for testing purposes
Olaoluwa Osuntokun
2015-11-12 19:34:35 -08:00
-
8583814f1f
separate out channel init functionality into reservation
Olaoluwa Osuntokun
2015-11-12 18:43:32 -08:00
-
f775e130e3
add note about normalized taxis
Olaoluwa Osuntokun
2015-11-12 17:45:18 -08:00
-
c6e7c6b1b6
scrap the multi-sig key pool, better to just use HD paths
Olaoluwa Osuntokun
2015-11-12 17:45:09 -08:00
-
bf5f630e53
note to self, abstract reservations further
Olaoluwa Osuntokun
2015-11-05 12:36:33 -08:00
-
ca40a2d924
Revamp funding workflow to match p2p workflow
Olaoluwa Osuntokun
2015-11-05 12:36:19 -08:00
-
ce8be70c74
add funding limbo to store pending channel opens
Olaoluwa Osuntokun
2015-11-05 12:34:11 -08:00
-
02844741e8
add resource pool for multi-sig keys
Olaoluwa Osuntokun
2015-11-05 12:33:35 -08:00
-
980f5e0879
move coin selection funcs to new file
Olaoluwa Osuntokun
2015-11-05 12:32:15 -08:00
-
0b66ed24be
initial draft of ln-wallet workflow, funding reservations implemented
Olaoluwa Osuntokun
2015-10-27 15:50:30 -07:00
-
85e1c7b91c
blank README
Olaoluwa Osuntokun
2015-10-27 15:49:56 -07:00