Skip to content

Commit

Permalink
Merge pull request #190 from knocte/formattingFixup
Browse files Browse the repository at this point in the history
Add Release build to CI lane & fix Core warnings
  • Loading branch information
knocte committed Apr 26, 2022
2 parents c813b77 + b71b08d commit 88599a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
dotnet build tests/DotNetLightning.Core.Tests -p:Portability=True --framework=${{ matrix.framework }}
dotnet run --no-build --project tests/DotNetLightning.Core.Tests --framework=${{ matrix.framework }}
- name: Build/pack in release mode
run: |
dotnet pack -p:Configuration=Release src/DotNetLightning.Core -p:Portability=True
- name: Clean to prepare for NSec build
run: |
dotnet clean
Expand Down
19 changes: 7 additions & 12 deletions src/DotNetLightning.Core/Utils/Primitives.fs
Original file line number Diff line number Diff line change
Expand Up @@ -619,18 +619,13 @@ module Primitives =
(scriptPubKey: Script)
: Result<ShutdownScriptPubKey, string> =
let isValidFinalScriptPubKey =
(PayToPubkeyHashTemplate.Instance.CheckScriptPubKey(
scriptPubKey
))
|| (PayToScriptHashTemplate.Instance.CheckScriptPubKey(
scriptPubKey
))
|| (PayToWitPubKeyHashTemplate.Instance.CheckScriptPubKey(
scriptPubKey
))
|| (PayToWitScriptHashTemplate.Instance.CheckScriptPubKey(
scriptPubKey
))
(PayToPubkeyHashTemplate.Instance.CheckScriptPubKey scriptPubKey)
|| (PayToScriptHashTemplate.Instance.CheckScriptPubKey
scriptPubKey)
|| (PayToWitPubKeyHashTemplate.Instance.CheckScriptPubKey
scriptPubKey)
|| (PayToWitScriptHashTemplate.Instance.CheckScriptPubKey
scriptPubKey)

if isValidFinalScriptPubKey then
Ok
Expand Down

0 comments on commit 88599a0

Please sign in to comment.