HeliumDIY / helium_workarounds

Container base for Helium workarounds to run in
7 stars 11 forks source link

Dont know anything about push requests... But I made a tweak, that works 100x better!! update!! #6

Open serbyxp opened 2 years ago

serbyxp commented 2 years ago

well since im not a coder or work with github verymuch... but I tweaked the .py file inside of the workaround container...

it can be better but I have no idea about this R' stuff heh I been reading but anyways im sure you can figure it out... but this works alot better, The only thing that if I knew how to do it I would add whatever the M = is to add another one... that finds the...

libp2p_framed_stream dial failed and do the $s thing or whatever any ways enough of me blabing about things I dont know... you can figure it out faster... anyways heres the tweak I did to the current one..

if name == 'main':
json_msg = {
"jsonrpc":"2.0",
"id":"id",

....

heh I just got annoyed at this and went at it manually... got to much time on my hands apparently... but I started tailing the logs on my own and just copying the failed to connect << is what needs to be added to make this redundant... and the fail to dials and just copying and pasting them in to console " miner peer connect /p2p/failedadder " and it would connect... if not on the first attempt, on the second. Their are some that dont want to connect at all.. but those are relayed hard... I even went as far as finding peers that the relayed ones have succesfuly connected to and did the "miner peer connect /p2p/addr/p2p-circuit/p2p/addr ... and just trying to connect to those relay peers that fail... but I mean thats a mission lol but super easy for someone that knows how to add that... let me know

Proof of concept... It just needs theese other tweaks... I mean you guys can figure it out faster then I can Im, Happy for tonight... figure it out tomorrow or hopefully you guys can knock it out! Cheers... 2022-02-13 02:17:33.271 [error] <0.8080.0>@blockchain_txndialer:dial:{142,21} libp2p_framed_stream dial failed. Reason: not_found, 2022-02-13 03:12:15.471 [error] <0.14364.0>@libp2p_stream_relay:handle_server_data:{193,13} fail to pass request {libp2p_relay_bridge_cr_pb,"/p2p/11V2kGMFFKmeLccxtm7jVc2veRVqnsjGHjkNzdUjnWiKEq7Yr7u","/ip4/80.119.142.85/tcp/44158"} Server not found

**2022-02-13 02:42:14.404 1 [info] <0.11045.0>@miner_onion_server:send_witness:{251,37} **successfully sent witness to** challenger "/p2p/112XsdZkm3WiTgguiP7qXd3Ym7CU1XbrGjeKFACvSxvhVdLskjFZ**" with RSSI: -118, Frequency: 904.1, SNR: -11.0

2022-02-13 02:40:07.421 1 [info] <0.10807.0>@miner_onion_server:send_witness:{251,37} successfully sent witness to **challenger "/p2p/11jAjSVnfiKdHcxRstRgvUQwxJzMC95SrGawg2QezD7XqkYrrbv" with RSSI: -116, Frequency: 904.7,** SNR: -14.2
**2022-02-13 02:32:40.821 1 [info] <0.9767.0>@miner_onion_server:send_witness:{251,37} successfully sent witness to challenger "/p2p/112WEKwXyZYZBWLtdawDSekx187AQNRwBGUfTs8h5bk9urustAUJ" with RSSI: -114, Frequency:** 905.1, SNR: -12.0
2022-02-13 02:29:28.637 1 [info] <0.9272.0>@miner_onion_server:send_witness:{251,37} **successfully sent witness to challenger "/p2p/113pFgGPeRfXWXhoPdH73ng6LJi84VVYRe4WBSuzVMn5XHA1g1B"** with RSSI: -112, Frequency: 903.9, SNR: -10.8
2022-02-13 02:28:58.377 1 [warning] <0.9272.0>@miner_onion_server:send_witness:{243,37} failed to dial challenger **"/p2p/113pFgGPeRfXWXhoPdH73ng6LJi84VVYRe4WBSuzVMn5XHA1g1B": not_found**
Finding Docker API...
Finding miner container...
**Execing miner peer connect /p2p/113pFgGPeRfXWXhoPdH73ng6LJi84VVYRe4WBSuzVMn5XHA1g1B...**
ExecResult(exit_code=0, output=b'Connected to **"/p2p/113pFgGPeRfXWXhoPdH73ng6LJi84VVYRe4WBSuzVMn5XHA1g1B" successfully\n\n')**
2022-02-13 02:32:05.183 1 [warning] <0.9767.0>@miner_onion_server:send_witness:{243,37} failed to dial challenger **"/p2p/112WEKwXyZYZBWLtdawDSekx187AQNRwBGUfTs8h5bk9urustAUJ": not_found**
Finding Docker API...
Finding miner container...
**Execing miner peer connect /p2p/112WEKwXyZYZBWLtdawDSekx187AQNRwBGUfTs8h5bk9urustAUJ...**
ExecResult(exit_code=0, output=b'Failed to connect to **"/p2p/112WEKwXyZYZBWLtdawDSekx187AQNRwBGUfTs8h5bk9urustAUJ": [{"/p2p**/112SWSAfqD5o4eUfnnVY6gGuzN55qvKXpnHHrThsPtLba3f5bm4y/p2p-circuit**/p2p/112WEKwXyZYZBWLtdawDSekx187AQNRwBGUfTs8h5bk9urustAUJ",\n                                                                                    timeout_relay_session}]\n\n')**
2022-02-13 02:39:37.069 1 [warning] <0.10807.0>@miner_onion_server:send_witness:{243,37} failed to dial challenger **"/p2p/11jAjSVnfiKdHcxRstRgvUQwxJzMC95SrGawg2QezD7XqkYrrbv": not_found**
Finding Docker API...
Finding miner container...
**Execing miner peer connect /p2p/11jAjSVnfiKdHcxRstRgvUQwxJzMC95SrGawg2QezD7XqkYrrbv...**
**ExecResult(exit_code=0, output=b'Connected to "/p2p/11jAjSVnfiKdHcxRstRgvUQwxJzMC95SrGawg2QezD7XqkYrrbv"** successfully\n\n')
2022-02-13 02:41:43.586 1 [warning] <0.11045.0>@miner_onion_server:send_witness:{243,37} failed to dial challenger **"/p2p/112XsdZkm3WiTgguiP7qXd3Ym7CU1XbrGjeKFACvSxvhVdLskjFZ": not_found**
Finding Docker API...
Finding miner container...
**Execing miner peer connect /p2p/112XsdZkm3WiTgguiP7qXd3Ym7CU1XbrGjeKFACvSxvhVdLskjFZ...**
ExecResult(exit_code=0, output=b'Connected to **"/p2p/112XsdZkm3WiTgguiP7qXd3Ym7CU1XbrGjeKFACvSxvhVdLskjFZ" successfully\n\n')**
2022-02-13 02:46:33.102 1 [warning] <0.11530.0>@miner_onion_server:send_witness:{243,37} failed to dial challenger "/p2p/11CVtiCNt6Aymk4dbGo36Hz5BWapdmBR8mTzbPwzueHuXbdT4J9": not_found
Finding Docker API...
Finding miner container...
Execing miner peer connect /p2p/11CVtiCNt6Aymk4dbGo36Hz5BWapdmBR8mTzbPwzueHuXbdT4J9...
ExecResult(exit_code=0, output=b'Connected to "/p2p/11CVtiCNt6Aymk4dbGo36Hz5BWapdmBR8mTzbPwzueHuXbdT4J9" successfully\n\n')

before... the tweak... It would refresh but maybe 1/20 would successfully connect