Skip to content

Commit

Permalink
Fix ecdsa error
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchocholaty committed Nov 5, 2024
1 parent 94b4ecd commit 42f8b8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#python3 -m venv venv
#venv/bin/pip install --upgrade pip
#venv/bin/pip install -r requirements.txt
#source /venv/bin/activate
python3 src/main.py --mempool=mempool > output.txt
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install -r requirements.txt
source /venv/bin/activate
python3 src/main.py --mempool=mempool > output.txt
4 changes: 2 additions & 2 deletions src/transaction.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import hashlib
import json

from ecdsa import VerifyingKey, SECP256k1, BadSignatureError
#from ecdsa import VerifyingKey, SECP256k1, BadSignatureError

from src.script import Script, InvalidScriptException
from src.serialize import serialize_transaction
Expand Down Expand Up @@ -307,4 +307,4 @@ def validate_p2sh_p2wpkh(self, vin_idx, vin):
except BadSignatureError:
return False
return True """
return True """

0 comments on commit 42f8b8e

Please sign in to comment.