Skip to content

Commit

Permalink
f trigger mutants
Browse files Browse the repository at this point in the history
  • Loading branch information
dunxen committed May 31, 2024
1 parent 5e7a51b commit 87ab103
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ jobs:

incremental-mutants:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
if: always() #github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Relative diff
run: |
git branch -av
git diff origin/${{ github.base_ref }}.. | tee git.diff
git diff origin/main.. | tee git.diff
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
name: Install cargo-mutants using install-action
Expand Down
4 changes: 4 additions & 0 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7460,6 +7460,10 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
if !self.context.is_outbound() {
panic!("Tried to create outbound funding_created message on an inbound channel!");
}
// REMOVE ME - TRIGGER MUTANTS
if is_batch_funding {
println!("trigger mutants");
};
if !matches!(
self.context.channel_state, ChannelState::NegotiatingFunding(flags)
if flags == (NegotiatingFundingFlags::OUR_INIT_SENT | NegotiatingFundingFlags::THEIR_INIT_SENT)
Expand Down

0 comments on commit 87ab103

Please sign in to comment.