Skip to content

Commit

Permalink
Revert "Fix nonce comparison. (#491)"
Browse files Browse the repository at this point in the history
This reverts commit af30a99.
  • Loading branch information
calina-c committed Jun 24, 2022
1 parent ceabcc2 commit 94a2974
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Run Barge
working-directory: ${{ github.workspace }}/barge
env:
CONTRACTS_VERSION: v1.0.0-alpha.32
AQUARIUS_VERSION: schema-4.1.0
run: |
bash -x start_ocean.sh --no-dashboard 2>&1 --with-rbac --with-provider2 --with-c2d > start_ocean.log &
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion ocean_provider/utils/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def verify_signature(signer_address, signature, original_msg, nonce):
:return: True if signature is valid, throws InvalidSignatureError otherwise
"""
db_nonce = get_nonce(signer_address)
if db_nonce and float(nonce) <= float(db_nonce):
if db_nonce and float(nonce) < float(db_nonce):
msg = (
f"Invalid signature expected nonce ({db_nonce}) > current nonce ({nonce})."
)
Expand Down

0 comments on commit 94a2974

Please sign in to comment.