Yuntai Kyong
dc4a8c1de2
Document channel reserve behavior a bit better
2018-10-06 12:01:37 +09:00
Yuntai Kyong
f8cfc4228c
Fix checking of channel_reserve values
2018-10-06 12:01:31 +09:00
Matt Corallo
a82a5f71da
Merge pull request #196 from yuntai/shutdown-apify
...
Raise APIError from close_channel
2018-10-05 18:32:24 -07:00
Yuntai Kyong
18ce6c8fd8
add a ChannelUnavailable error
2018-10-03 08:45:34 +09:00
Yuntai Kyong
eff730af18
raise APIError from close_channel
2018-10-03 08:36:39 +09:00
Matt Corallo
84953fc68f
Merge pull request #201 from TheBlueMatt/2018-09-channelerror-1
...
Introduce a Channel-specific Err type and return it in a few places
2018-10-01 10:32:00 -04:00
Matt Corallo
3f2d379835
Use new ChannelError in get_channel_announcement
2018-09-30 20:07:44 -04:00
Matt Corallo
ff644f4517
Use new ChannelError in channel_reestablish handling
2018-09-30 20:05:39 -04:00
Matt Corallo
ad77f72ff3
Use new ChannelError in HTLC-removal msgs, filling out more handling
2018-09-30 20:05:39 -04:00
Matt Corallo
662485a4dd
Use new ChannelError in funding_locked, filling out more handling
2018-09-30 20:05:39 -04:00
Matt Corallo
625e2b3532
Use new ChannelError type in accept_channel
2018-09-30 20:05:39 -04:00
Matt Corallo
aa2021dff5
Introduce a Channel-specific Err type and return it in a few places
...
This is way simpler than writing out the whole ErrorAction mess and
we can just convert it as appropriate in ChannelManager.
2018-09-30 20:05:38 -04:00
Matt Corallo
6c1123cafd
Merge pull request #199 from TheBlueMatt/2018-09-184-fixed-monitor
...
Fix simple to_local revoked output claim and rebase #184
2018-09-29 21:09:50 -04:00
Matt Corallo
8bfe18cf86
Merge pull request #200 from TheBlueMatt/2018-09-187-tweaks
...
#187 rebased + squashed
2018-09-29 20:43:14 -04:00
Matt Corallo
af29adcfdc
Macro-out checking a tx validly spends another (and add one more)
2018-09-29 20:28:15 -04:00
Antoine Riard
09831934d1
Test htlc outputs single tx claim due to timeout case
2018-09-29 20:28:15 -04:00
Antoine Riard
a805567683
Test htlc outputs shared tx claim case
2018-09-29 20:28:15 -04:00
Matt Corallo
ae8bd1ba48
Fix and test simple remote-revoked-commitment-output claiming
2018-09-29 20:27:05 -04:00
Matt Corallo
1d1c5da13d
Add 2-inbound-in-flight update_fee test (that we wouldn't generate)
2018-09-29 20:01:36 -04:00
Matt Corallo
b9a155d75f
Annotate test_update_fee to make events more clear
2018-09-29 20:01:36 -04:00
Matt Corallo
3833cc3736
Add test for out-of-order update_fee commitment_signed/RAA
2018-09-29 20:01:36 -04:00
Matt Corallo
3f0bc24f1e
Add test for send_commitment pending non-committed feerate updates
2018-09-29 20:01:36 -04:00
Matt Corallo
75f6804fc4
Note that update_fee is likely not gonna be our final API
2018-09-29 20:01:36 -04:00
Yuntai Kyong
a610e275c6
Add update_fee tests
2018-09-29 20:01:32 -04:00
Yuntai Kyong
f1ca469e9f
Expose updating fee on an individual channel
2018-09-29 19:58:09 -04:00
Yuntai Kyong
1dbc6fb0ef
Implement update_fee handling
2018-09-29 19:58:08 -04:00
Matt Corallo
2b9ee0995f
Macro out one-monitor-added check in network tests (thanks @yuntai)
...
Originally suggested by Yuntai Kyong <yuntai.kyong@gmail.com> in
some new tests.
2018-09-29 17:05:43 -04:00
Matt Corallo
2d33b92381
Macro out getting payment_preimage/hash in network tests
2018-09-29 17:05:43 -04:00
Matt Corallo
d4ba4af057
Merge pull request #197 from TheBlueMatt/master
...
Fix fuzztarget failures
2018-09-29 14:27:01 -04:00
Matt Corallo
8d706789e7
Avoid double-panic in ChannelManager when tests fail
2018-09-28 18:55:31 -04:00
Matt Corallo
28e67db327
Handle temporary_channel_id collision in fuzztarget mode
2018-09-26 11:06:28 -04:00
Matt Corallo
ea8a1f3506
Narrow check_spend_remote_htlc input/output count check.
...
This fixes a crash found by fuzztester where a 0-output tx causes a
[] panic (though this shouldn't happen in the real-world as
0-output txn should never be able to be mined).
2018-09-26 11:06:28 -04:00
Matt Corallo
0112394e52
Merge pull request #193 from SWvheerden/Bolt2-specs-errors-of-closing-messages-
...
Added test for testing sciptpubkey of closing message per bolt 2 spec
2018-09-21 04:59:37 -04:00
Matt Corallo
b2a855b57a
Merge pull request #194 from TheBlueMatt/2018-09-doc-cleanup
...
Make docs look nicer by adding explicit spacing
2018-09-21 04:42:57 -04:00
Schalk van Heerden
b58bab0700
Added test for testing sciptpubkey of closing message per bolt 2 spec
2018-09-21 10:20:44 +02:00
Matt Corallo
6e1318b0e2
Make docs look nicer by adding explicit spacing
2018-09-20 12:58:10 -04:00
Matt Corallo
92ff499bdb
Merge pull request #191 from TheBlueMatt/2018-09-chanmon-ser-framework
...
Migrate ChannelMonitor writing/reading to new serialization framework
2018-09-20 12:14:59 -04:00
Matt Corallo
d2a6ca529f
Bump version to 0.0.5 to get new docs out
2018-09-20 10:57:18 -04:00
Matt Corallo
9d69bc9a48
Switch to -O1 in dev as we have long-running tests and O1 is cheap
2018-09-20 10:57:01 -04:00
Matt Corallo
79a0a0c959
Migrate ChannelMonitor serialization to new ser framework(ish)
...
Sadly we can't straight up use the new serialization framework as
we have a few different serialization variants, but that's OK, it
looks identical and is just missing the Writeable impl
2018-09-20 10:46:13 -04:00
Matt Corallo
28d0d44e44
Move ChannelMonitor deserialization to new ser framework
2018-09-20 10:46:13 -04:00
Matt Corallo
c43e535bc0
Simplify DecodeError enum by removing some useless distinctions
2018-09-20 10:46:12 -04:00
Matt Corallo
66fbc66da0
Merge pull request #192 from TheBlueMatt/2018-09-docs-docs-docs
...
Add module and all-pub-things docs and deny missing docs
2018-09-20 10:44:23 -04:00
Matt Corallo
3aeec96470
Add module and all-pub-things docs and deny missing docs
2018-09-19 23:07:02 -04:00
Matt Corallo
7f6c31ea15
Document ConfirmationTarget a little bit ( closes #101 )
2018-09-19 23:07:02 -04:00
Matt Corallo
a4528faa54
Document all the fields in Errors
2018-09-19 23:07:02 -04:00
Matt Corallo
9373c5993f
Make message fields pub(crate) and hide a few internal fns
2018-09-19 23:07:02 -04:00
Matt Corallo
fe90e13f84
Log peer features in peer_handler (and check for all req bits)
2018-09-19 22:47:14 -04:00
Matt Corallo
da6171d50d
Remove fuzz channel_target.
...
It has bitrotted a lot and doesn't really make sense given all the
precondition enforcement that is in channelmanager, sadly.
2018-09-19 22:47:07 -04:00
Matt Corallo
ac821e448f
Merge pull request #186 from TheBlueMatt/2018-09-ser-rework-2
...
Drop old serialization framework
2018-09-18 16:14:49 -04:00