Skip to content

Commit

Permalink
fix mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
npq7721 committed May 27, 2024
1 parent ed7eef6 commit 2f792a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,18 +331,19 @@ jobs:
report_paths: 'unit_test_results.xml'

build-macos:
name: macOS 11 Build
name: macOS 13 Build
needs: get-version
runs-on: macos-11
runs-on: macos-13

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Required Packages
run: |
brew install automake libtool pkg-config miniupnpc librsvg libnatpmp zeromq python
brew install automake libtool pkg-config librsvg libnatpmp python
pip3 install ds_store mac_alias
pip3 install -U pip setuptools
- name: Build Depends
run: |
Expand Down
11 changes: 3 additions & 8 deletions src/consensus/tx_verify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,10 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state, int nHeig
{
if (txout.nValue < 0)
return state.DoS(100, false, REJECT_INVALID, "bad-txns-vout-negative");
if(isV17active){
if (txout.nValue > MAX_MONEY)
return state.DoS(100, false, REJECT_INVALID, "bad-txns-vout-toolarge");
}else{
if (txout.nValue > OLD_MAX_MONEY)
return state.DoS(100, false, REJECT_INVALID, "bad-txns-vout-toolarge");
}
if (txout.nValue > MAX_MONEY)
return state.DoS(100, false, REJECT_INVALID, "bad-txns-vout-toolarge");
nValueOut += txout.nValue;
if (!MoneyRange(nValueOut, isV17active))
if (!MoneyRange(nValueOut))
return state.DoS(100, false, REJECT_INVALID, "bad-txns-txouttotal-toolarge");
}

Expand Down

0 comments on commit 2f792a5

Please sign in to comment.