diff --git a/.github/workflows/clang-diff-format.yml b/.github/workflows/clang-diff-format.yml new file mode 100644 index 0000000000000..329b2a70c60a6 --- /dev/null +++ b/.github/workflows/clang-diff-format.yml @@ -0,0 +1,17 @@ +name: Clang Diff Format Check + +on: + pull_request: + branches: + - develop +jobs: + ClangFormat: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Fetch git + run: git fetch + - name: Run Clang-Format-Diff.py + run: git diff -U0 origin/develop | ./contrib/devtools/clang-format-diff.py -p1 + diff --git a/src/coinjoin/coinjoin.cpp b/src/coinjoin/coinjoin.cpp index 9fb8c39824357..6a71f74f1ee99 100644 --- a/src/coinjoin/coinjoin.cpp +++ b/src/coinjoin/coinjoin.cpp @@ -25,7 +25,7 @@ bool CCoinJoinEntry::AddScriptSig(const CTxIn& txin) { for (auto& txdsin : vecTxDSIn) { - if (txdsin.prevout == txin.prevout && txdsin.nSequence == txin.nSequence) { + if(txdsin.prevout == txin.prevout && txdsin.nSequence == txin.nSequence) { if (txdsin.fHasSig) return false; txdsin.scriptSig = txin.scriptSig;