]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #2354 from alecchendev/2023-06-bump-default-dust-exp
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Sat, 8 Jul 2023 02:15:10 +0000 (02:15 +0000)
committerGitHub <noreply@github.com>
Sat, 8 Jul 2023 02:15:10 +0000 (02:15 +0000)
Bump dust exposure threshold

1  2 
fuzz/src/full_stack.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs

index 2b9449d72b8ed00c978bb3ad817062ccef0a1f9a,7bd629fdb4dd0e1f85df0b9cd90fd6a3348dc501..9caf91040346c45436671cb0f4c3e74ad1cbb373
@@@ -439,9 -439,9 +439,10 @@@ pub fn do_test(data: &[u8], logger: &Ar
        });
        let mut config = UserConfig::default();
        config.channel_config.forwarding_fee_proportional_millionths =  slice_to_be32(get_slice!(4));
+       config.channel_config.max_dust_htlc_exposure = MaxDustHTLCExposure::FeeRateMultiplier(5_000_000 / 253);
        config.channel_handshake_config.announced_channel = get_slice!(1)[0] != 0;
        let network = Network::Bitcoin;
 +      let best_block_timestamp = genesis_block(network).header.time;
        let params = ChainParameters {
                network,
                best_block: BestBlock::from_network(network),
Simple merge
Simple merge