Skip to content

Commit

Permalink
Update gateways2miners.py
Browse files Browse the repository at this point in the history
  • Loading branch information
simeononsecurity authored Dec 27, 2023
1 parent 49ecf28 commit f19553d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gateways2miners.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from src import messages
from src.vgateway import VirtualGateway



class GW2Miner:
def __init__(self, port, vminer_configs_paths, keepalive_interval=10, stat_interval=30, debug=True, tx_power_adjustment=0.0, rx_power_adjustment=0.0):

Expand Down Expand Up @@ -286,7 +284,7 @@ def __del__(self):


def packet_is_poc_challenge(rxpk: dict):
return (rxpk.get('size') == 52 and rxpk.get('datr') == 'SF9BW125') or (rxpk.get('size') == 21 and str(rxpk.get('data')).startswith("4"))
return (rxpk.get('size') == 52 and str(rxpk.get('data')).startswith("4")) or (rxpk.get('size') == 21 and str(rxpk.get('data')).startswith("4"))
#return (rxpk.get('size') == 52 ) and rxpk.get('datr') == 'SF9BW125'

def configure_logger(debug=False):
Expand Down

0 comments on commit f19553d

Please sign in to comment.