Matt Corallo
0940db25ec
Refactor channelmanager network tests significantly
2018-04-16 20:35:21 -04:00
Matt Corallo
374ea1f05e
Completely rewrite channel HTLC tracking and processing
...
It obviously was nonsensical prior, though its now way more
complicated...there's refactoring work to be done here, but it
should at least kinda sorta work now.
2018-04-16 20:35:21 -04:00
Matt Corallo
e2b1b1be78
Prep HTLCFailReason for Channel holding it until revoke_and_ack
2018-04-16 20:35:21 -04:00
Matt Corallo
00c6f42452
Use libbitcoinconsensus to check tx validity in some tests
2018-04-16 20:35:19 -04:00
Matt Corallo
8b1a7ede27
Test that channel monitors get updated appropriately
2018-04-16 20:35:03 -04:00
Matt Corallo
021b3643cc
Hand payment preimages into channel monitors when claimed
2018-04-16 20:35:03 -04:00
Matt Corallo
91b964ae1f
Basic error handling framework in peer_handler
2018-04-02 18:31:23 -04:00
Matt Corallo
df9367adaf
Rename ErrorMessage
2018-04-02 18:31:23 -04:00
Matt Corallo
b21048a1ce
Check funding txout format when transaction is confirmed in channel
2018-04-02 18:07:03 -04:00
Matt Corallo
187ca8c0c8
Make Channel non-public except in fuzztarget mode, bump version
2018-04-02 18:07:03 -04:00
Matt Corallo
8e79c05a20
Add support for initiating channel closure to Channel{,Manager}
2018-04-02 18:07:03 -04:00
Matt Corallo
c528ff3650
Handle incoming shutdown messages
2018-04-02 18:07:02 -04:00
Matt Corallo
890e3cb165
Update for new rust-bitcoin API, avoid some duplicate hashing
2018-04-02 18:06:59 -04:00
Matt Corallo
93f47f5421
Fix double-locking in channelmanager
2018-03-25 17:02:28 -04:00
Matt Corallo
9606f94caf
Stop freeing holding cell in updates, fix freeing in revoke
2018-03-25 17:02:28 -04:00
Matt Corallo
d923717216
Expand fake_network_test a bit with multiple in-flight rebalances
2018-03-25 17:02:28 -04:00
Matt Corallo
0795b34e10
Fail payments backwards in delayed processing as well
2018-03-25 13:21:32 -04:00
Matt Corallo
729f02d2dd
Hold channel_state lock into fail_htlc_backwards_internal
2018-03-23 16:57:22 -04:00
Matt Corallo
d8fc9ffde9
DRY up update_add_htlc a bit with macros
2018-03-23 16:56:45 -04:00
Matt Corallo
397b6f90e1
Fix new "uneccessary mut" warning
2018-03-23 15:30:18 -04:00
Matt Corallo
02b92f5d5c
Add dummy creator for PendingForwardHTLCInfo
2018-03-23 13:16:24 -04:00
Matt Corallo
ab56b81acd
Stub out Sha256 calls when fuzzing
2018-03-23 13:16:24 -04:00
Matt Corallo
d18e54bd90
Stub out RNG when fuzzing
2018-03-23 13:16:24 -04:00
Matt Corallo
40ab09f627
Clarify roles in failing HTLCs, impl it, support rebalances
2018-03-22 17:35:30 -04:00
Matt Corallo
df11c05fa6
Use ChainWatchInterfaceUtil directly in tests instead of a wrapper
2018-03-19 17:46:37 -04:00
Tamas Blummer
fbe4f7a442
Split out BroadcastInterface, ChainWatchInterface monitors re-enter from called listeners
2018-03-19 16:14:19 -04:00
Matt Corallo
f9fc2dfbe2
Merge pull request #3 from RCasatta/fixtry
...
use ? instead of try macro
2018-03-02 11:21:00 -05:00
Riccardo Casatta
b94365f3f5
use ? instead of try macro
2018-03-01 09:54:56 +01:00
practicalswift
e7d0d8af9f
Fix typos
2018-02-27 23:38:52 +01:00
Matt Corallo
6185a28190
initial checkin
2018-02-16 18:09:48 -05:00