Antoine Riard
09ca1e93a4
Add log_trace on bump candidates tracking-buffer insertions
2019-12-09 22:19:44 -05:00
Antoine Riard
201fb4b56a
Add MIN_RELAY_FEE_SAT_PER_1000_WEIGHT
...
Hardcode min relay fee as its value is fixed on the bitcoin network
and updating it would be done really conservatively.
2019-12-09 22:19:43 -05:00
Steven Roose
cd31cdb6b1
Document the default values of configs
2019-12-09 15:56:51 -05:00
Steven Roose
3f3dc6c067
Change the new() functions for config to Default::default()
2019-12-09 15:56:51 -05:00
Matt Corallo
fd1d5fd62c
Randomize initial onion packet data.
...
This avoids at least the trivial hop count discovery attack, though
other obvious ones remain and are slightly harder to avoid.
See https://github.com/lightningnetwork/lightning-rfc/pull/697
2019-12-01 19:22:44 -05:00
Matt Corallo
1b9bbe547a
Merge pull request #405 from TheBlueMatt/2019-11-cleanups
...
Misc Cleanups
2019-11-30 04:00:45 +00:00
Matt Corallo
7591eda7a8
Merge pull request #407 from TheBlueMatt/2019-11-396-english
...
#396 with a few english fixes
2019-11-30 04:00:27 +00:00
Matt Corallo
fbe3943cab
Update comments to be a bit more descriptive and fix english a bit
2019-11-29 20:38:03 -05:00
Antoine Riard
da94bac7ab
Add test_announce_disable_channels
2019-11-29 18:12:44 -05:00
Antoine Riard
d53f48e157
Add timer_chan_freshness_every_min
...
Latency/peer disconnection may trigger us to mark as disabled
some of our channels. After some time, if channels are still
disabled we need to broadcast ChannelUpdate to inform other network
peers about the uselessness of these channels.
2019-11-29 18:12:40 -05:00
Antoine Riard
f564df3892
Add UpdateStatus in Channel to track freshness of gossiped liveness.
...
Added enum and method are only used in next commit.
2019-11-29 18:12:38 -05:00
Matt Corallo
09b8c9e98b
Fix add_update_monitor check to unwrap() instead of an unused bool
2019-11-28 01:21:41 -05:00
Matt Corallo
a62e96bcd9
Move test profile to crate root, so it has effect again
2019-11-28 01:21:41 -05:00
Matt Corallo
be7d3d17ac
Merge pull request #401 from ariard/2019-11-log-tx-broadcast
...
Add log for every tx broadcast
2019-11-25 22:39:48 +00:00
Antoine Riard
9df0250dbb
Add log for every tx broadcast
...
Added macro log_tx in macro_logger.rs
2019-11-25 16:55:14 -05:00
Matt Corallo
9501ecce49
Move fuzz to top level.
2019-11-25 15:42:07 -05:00
Valentine Wallace
f71518365f
chaininterface+multi: add filter_block and reentered to ChainWatchInterface
...
Because filter_block takes a and returns a list of s , we must add a lifetime to the ChainWatchInterface, which bubbles up in a lot of places. These places include adding a lifetime to the Node struct, which causes a lot of rearranging tests so that variables don't go out of scope before the Node that owns them does.
2019-11-21 20:35:53 -05:00
Valentine Wallace
969f863013
chaininterface: add BlockNotifier struct
...
Adding this struct will allow us to remove the circular reference
between ChainListeners and the ChainWatchInterface, because it
separates out the responsibility of notifying listeners about new
blocks from the responsibility of storing and retrieving watched
transactions.
2019-11-21 20:34:00 -05:00
Valentine Wallace
1ec0c14fce
multi: remove listeners field and method from ChainWatchInterface
...
This includes the purpose of this PR, which is to remove the circular reference created by ChainListeners self-adding themselves to their ChainWatchInterface's `listeners` field.
2019-11-21 18:06:35 -05:00
Antoine Riard
13e52426c7
Extend test for announcement_sigs
2019-11-19 18:03:05 -05:00
Antoine Riard
e938e592b2
Document our handling of announcement_sigs
...
We may have in the future to rebroadcast announcement_sigs at
peer reconnection if this a burning issue as spec lacks
a acknowledgement mechanism.
2019-11-19 17:48:22 -05:00
RJ Rybarczyk
06091cee0f
Merge branch 'master' of github.com:rust-bitcoin/rust-lightning into use-workspaces
2019-11-18 23:51:21 +00:00
RJ Rybarczyk
5305223495
Merge branch 'master' of github.com:rust-bitcoin/rust-lightning into use-workspaces
2019-11-18 19:44:55 +00:00
RJ Rybarczyk
88fef649b1
Use workspaces to separate crates
2019-11-15 02:44:30 +00:00