Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
makemake-kbo committed Jan 7, 2024
1 parent 5aca2b7 commit 232e462
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hrotti/websocket_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ async def fake_subscribe(sub_request: RPCRequest, websocket: WebSocket):
local_conf["result"] = sub_id

# send confirmation and prep our client to listen for subscriptions
print("1")
await websocket.send_json(local_conf)

local_fake_head = fake_new_head
Expand All @@ -62,7 +63,9 @@ async def fake_subscribe(sub_request: RPCRequest, websocket: WebSocket):
while True:
block_num = block_num + 1
local_fake_head["params"]["result"]["number"] = hex(block_num)
print("2")
await websocket.send_json(local_fake_head)
print("3")
time.sleep(6)


Expand Down

0 comments on commit 232e462

Please sign in to comment.