Closed dominicletz closed 4 years ago
currently EdgeHandler ports open at bootup causing all kind of nasty behaviour since they don't have all blocks yet:
(stdlib 3.11.2) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 Last message: {:ssl, {:sslsocket, {:gen_tcp, #Port<0.933>, :tls_connection, [option_tracker: #PID<0.2452.0>, session_tickets_tracker: :disabled]}, [#PID<0.4641.0>, #PID<0.4640.0>]}, "[\"getblockheader2\",71854]"} State: %{compression: nil, extra_flags: [], last_ticket: nil, node_address: {45, 79, 224, 174}, node_id: {:wallet, nil, <<2, 184, 32, 103, 108, 254, 245, 91, 6, 245, 146, 11, 98, 14, 60, 64, 209, 61, 80, 115, 15, 254, 107, 27, 153, 79, 73, 188, 38, 115, 226, 42, 224>>, <<132, 196, 133, 198, 44, 221, 135, 140, 231, 149, 170, 144, 242, 105, 248, 75, 90, 228, 250, 14>>}, ports: %Network.EdgeHandler.PortCollection{refs: %{}}, server_port: 41045, socket: {:sslsocket, {:gen_tcp, #Port<0.933>, :tls_connection, [option_tracker: #PID<0.2452.0>, session_tickets_tracker: :disabled]}, [#PID<0.4641.0>, #PID<0.4640.0>]}, unpaid_bytes: 0, unpaid_rx_bytes: 0} <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.4715.0> EdgeHandler: dove_negative (0x84c4) @ {45,79,224,174}: accepted connection 14:43:38.844 [error] GenServer #PID<0.4715.0> terminating ** (MatchError) no match of right hand side value: [] (Elixir.Diode 0.0.1) lib/chain.ex:167: Chain.block/1 (Elixir.Diode 0.0.1) lib/network/edgehandler.ex:705: Network.EdgeHandler.block_header/1 (Elixir.Diode 0.0.1) lib/network/edgehandler.ex:194: Network.EdgeHandler.handle_msg/2 (Elixir.Diode 0.0.1) lib/network/edgehandler.ex:333: Network.EdgeHandler.handle_info/2 (stdlib 3.11.2) gen_server.erl:637: :gen_server.try_dispatch/4 (stdlib 3.11.2) gen_server.erl:711: :gen_server.handle_msg/6 (stdlib 3.11.2) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 Last message: {:ssl, {:sslsocket, {:gen_tcp, #Port<0.935>, :tls_connection, [option_tracker: #PID<0.2452.0>, session_tickets_tracker: :disabled]}, [#PID<0.4714.0>, #PID<0.4713.0>]}, "[\"getblockheader2\",71854]"} State: %{compression: nil, extra_flags: [], last_ticket: nil, node_address: {45, 79, 224, 174}, node_id: {:wallet, nil, <<2, 184, 32, 103, 108, 254, 245, 91, 6, 245, 146, 11, 98, 14, 60, 64, 209, 61, 80, 115, 15, 254, 107, 27, 153, 79, 73, 188, 38, 115, 226, 42, 224>>, <<132, 196, 133, 198, 44, 221, 135, 140, 231, 149, 170, 144, 242, 105, 248, 75, 90, 228, 250, 14>>}, ports: %Network.EdgeHandler.PortCollection{refs: %{}}, server_port: 41045, socket: {:sslsocket, {:gen_tcp, #Port<0.935>, :tls_connection, [option_tracker: #PID<0.2452.0>, session_tickets_tracker: :disabled]}, [#PID<0.4714.0>, #PID<0.4713.0>]}, unpaid_bytes: 0, unpaid_rx_bytes: 0} <0.4679.0> PeerHandler: grain_silk (0x937c) @ {172,105,85,69}: hello from: grain_silk (0x937c492a77ae90de971986d003ffbc5f8bb2232c) <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.4679.0> PeerHandler: grain_silk (0x937c) @ {172,105,85,69}: Syncing ... <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.2459.0> PeerHandler: catch_also (0x68e0) @ {172,104,119,67}: Syncing ... <0.4679.0> PeerHandler: grain_silk (0x937c) @ {172,105,85,69}: Syncing ... <0.4753.0> EdgeHandler: dove_negative (0x84c4) @ {45,79,224,174}: accepted connection 14:43:40.060 [error] GenServer #PID<0.4753.0> terminating ** (MatchError) no match of right hand side value: []
Done since c6f1b182c66f42eba1c9c01bea758ca5b809e28a
currently EdgeHandler ports open at bootup causing all kind of nasty behaviour since they don't have all blocks yet: