Monero вилка не может подключиться к другому узлу - PullRequest
0 голосов
/ 02 апреля 2020

Я пытаюсь создать альткойн. У меня есть 2 узла, они не могут соединиться друг с другом, потратили на это 3 дня: O

Вот журнал узла 1:

Wgood      11 History: [343 343 0 0 0 0 0 0 0 0 ] m_last_sample_time=1.58582e+09
2020-04-02 10:25:24.247 E [217.28.60.131:17085 OUT] Signature mismatch, connection will be closed
2020-04-02 10:25:24.247 T Closed connection from host 217.28.60.131: 1
2020-04-02 10:25:24.248 I Failed to invoke command 1001 return code -3
2020-04-02 10:25:24.248 W [217.28.60.131:17085 OUT] COMMAND_HANDSHAKE invoke failed. (-3, LEVIN_ERROR_CONNECTION_DESTROYED)
2020-04-02 10:25:24.248 T [217.28.60.131:17085 OUT] [levin_protocol] <<-- finish_outer_call
2020-04-02 10:25:24.248 W [217.28.60.131:17085 OUT] COMMAND_HANDSHAKE Failed
2020-04-02 10:25:24.248 I [217.28.60.131:17085 OUT] [priority]Failed to HANDSHAKE with peer 217.28.60.131:17085
2020-04-02 10:25:24.248 T [217.28.60.131:17085 OUT] [sock 28] release
2020-04-02 10:25:24.248 T [sock 28] Socket destroyed
2020-04-02 10:25:24.248 I [217.28.60.131:17085 OUT] [0] state: closed in state before_handshake
2020-04-02 10:25:24.248 I [217.28.60.131:17085 03cdb51c-e6c4-459f-bda2-5707eed041ef OUT] CLOSE CONNECTION
2020-04-02 10:25:24.248 T [217.28.60.131:17085 OUT] ~async_protocol_handler()
2020-04-02 10:25:24.248 D Destructing connection #2 to 217.28.60.131
2020-04-02 10:25:25.249 D Connecting to 217.28.60.131:17085(peer_type=1, last_seen: never)...
2020-04-02 10:25:25.249 D Spawned connection #3 to 0.0.0.0 currently we have sockets count:2
2020-04-02 10:25:25.249 D test, connection constructor set m_connection_type=2
2020-04-02 10:25:25.249 D connections_ size now 1
2020-04-02 10:25:25.249 D Trying to connect to 217.28.60.131:17085, bind_ip = 0.0.0.0
2020-04-02 10:25:25.270 T Connected success to 217.28.60.131:17085
2020-04-02 10:25:25.270 T [sock 0x7fd8e9852e00] new connection from 217.28.60.131:17085 OUT to 172.20.10.8:65130, total sockets objects 2
2020-04-02 10:25:25.270 T New connection from host 217.28.60.131: 0
2020-04-02 10:25:25.271 I [217.28.60.131:17085 6f676002-b4b5-46e9-a5a1-342769a28014 OUT] NEW CONNECTION
2020-04-02 10:25:25.271 T Setting 00:00:10 expiry
2020-04-02 10:25:25.271 D  connection type P2P 172.20.10.8:65130 <--> 217.28.60.131:17085 (via 217.28.60.131:17085)
2020-04-02 10:25:25.271 T Blockchain::get_tail_id
2020-04-02 10:25:25.271 T BlockchainLMDB::top_block_hash
2020-04-02 10:25:25.271 T BlockchainLMDB::height
2020-04-02 10:25:25.271 T BlockchainLMDB::block_rtxn_start
2020-04-02 10:25:25.271 T mdb_txn_safe: destructor
2020-04-02 10:25:25.271 T BlockchainLMDB::get_block_hash_from_height
2020-04-02 10:25:25.271 T BlockchainLMDB::block_rtxn_start
2020-04-02 10:25:25.271 T mdb_txn_safe: destructor
2020-04-02 10:25:25.271 T BlockchainLMDB::get_block_cumulative_difficulty  height: 0
2020-04-02 10:25:25.271 T BlockchainLMDB::block_rtxn_start
2020-04-02 10:25:25.271 T mdb_txn_safe: destructor
2020-04-02 10:25:25.271 T BlockchainLMDB::get_blockchain_pruning_seed
2020-04-02 10:25:25.271 T BlockchainLMDB::block_rtxn_start
2020-04-02 10:25:25.271 T mdb_txn_safe: destructor
2020-04-02 10:25:25.271 T [217.28.60.131:17085 OUT] [levin_protocol] -->> start_outer_call
2020-04-02 10:25:25.271 T Moving counter buffer by 1 second 0 < 1.58582e+09 (last time 0)
2020-04-02 10:25:25.271 T Throttle throttle_speed_out: packet of ~352b  (from 352 b) Speed AVG=   0[w=1]    0[w=1] /  Limit=16 KiB/sec  [352 0 0 0 0 0 0 0 0 0 ]
2020-04-02 10:25:25.272 D do_send_chunk() NOW SENSD: packet=352 B
2020-04-02 10:25:25.272 T handler_write (direct) - before ASIO write, for packet=352 B (after sleep)
2020-04-02 10:25:25.272 T Setting 00:05:00 expiry
2020-04-02 10:25:25.272 D [217.28.60.131:17085 OUT] LEVIN_PACKET_SENT. [len=319, flags1, r?=1, cmd = 1001, ver=1
2020-04-02 10:25:25.272 T [217.28.60.131:17085 OUT] [levin_protocol] -->> start_outer_call
2020-04-02 10:25:25.272 D [217.28.60.131:17085 OUT] anvoke_handler, timeout: 5000
2020-04-02 10:25:25.272 T [217.28.60.131:17085 OUT] [levin_protocol] <<-- finish_outer_call
2020-04-02 10:25:25.272 T [217.28.60.131:17085 OUT] [sock 28] release
2020-04-02 10:25:25.272 T [217.28.60.131:17085 OUT] [sock 28] Async send calledback 352
2020-04-02 10:25:25.272 T Moving counter buffer by 1 second 1.58582e+09 < 1.58582e+09 (last time 1.58582e+09)
2020-04-02 10:25:25.272 T dbg >>> global-OUT: speed is A= 333.176 vs Max=2.09715e+06  so sleep: D=-2.11263 sec E=     704 (Enow=    1056) M=2.09715e+06 W=   2.113 R=4.43058e+06
 Wgood      11 History: [0 352 352 0 0 0 0 0 0 0 ] m_last_sample_time=1.58582e+09
2020-04-02 10:25:25.272 T Throttle >>> global-OUT: packet of ~352b  (from 352 b) Speed AVG=   0[w=2.113]    0[w=2.113] /  Limit=2048 KiB/sec  [352 352 352 0 0 0 0 0 0 0 ]
2020-04-02 10:25:25.297 T Moving counter buffer by 1 second 0 < 1.58582e+09 (last time 0)
2020-04-02 10:25:25.297 T Throttle throttle_speed_in: packet of ~343b  (from 343 b) Speed AVG=   0[w=1]    0[w=1] /  Limit=16 KiB/sec  [343 0 0 0 0 0 0 0 0 0 ]
2020-04-02 10:25:25.297 T Moving counter buffer by 1 second 1.58582e+09 < 1.58582e+09 (last time 1.58582e+09)
2020-04-02 10:25:25.298 T Throttle <<< global-IN: packet of ~343b  (from 343 b) Speed AVG=   0[w=2.116]    0[w=2.116] /  Limit=8192 KiB/sec  [343 343 343 0 0 0 0 0 0 0 ]
2020-04-02 10:25:25.298 T dbg <<< global-IN: speed is A= 486.065 vs Max=8.38861e+06  so sleep: D=-2.11687 sec E=    1029 (Enow=    1372) M=8.38861e+06 W=   2.117 R=1.77577e+07
Wgood      11 History: [343 343 343 0 0 0 0 0 0 0 ] m_last_sample_time=1.58582e+09
2020-04-02 10:25:25.298 E [217.28.60.131:17085 OUT] Signature mismatch, connection will be closed

Вот журнал узла 2:

2020-04-02 10:26:10.359 I Failed to connect to any, trying seeds
2020-04-02 10:26:11.359 T Blockchain::get_current_blockchain_height
2020-04-02 10:26:11.359 T BlockchainLMDB::height
2020-04-02 10:26:11.359 T BlockchainLMDB::block_rtxn_start
2020-04-02 10:26:11.360 T mdb_txn_safe: destructor
2020-04-02 10:26:11.360 D get_next_needed_pruning_stripe: want height 1 (1 from blockchain, 1 from block queue), stripe 1 (0/8 on it and 0 on 2, 0 others) -> 1 (+0), current pe
ers
2020-04-02 10:26:11.360 D Making expected connection, type 0, 0/2 connections
2020-04-02 10:26:11.360 D Making expected connection, type 1, 0/8 connections
2020-04-02 10:26:11.360 T Blockchain::get_current_blockchain_height
2020-04-02 10:26:11.360 T BlockchainLMDB::height
2020-04-02 10:26:11.360 T BlockchainLMDB::block_rtxn_start
2020-04-02 10:26:11.360 T mdb_txn_safe: destructor
2020-04-02 10:26:11.360 D get_next_needed_pruning_stripe: want height 1 (1 from blockchain, 1 from block queue), stripe 1 (0/8 on it and 0 on 2, 0 others) -> 1 (+0), current pe
ers
2020-04-02 10:26:11.360 D No available peer in white list filtered by 1
2020-04-02 10:26:11.360 D Making expected connection, type 2, 0/8 connections
2020-04-02 10:26:11.360 T Blockchain::get_current_blockchain_height
2020-04-02 10:26:11.360 T BlockchainLMDB::height
2020-04-02 10:26:11.361 T BlockchainLMDB::block_rtxn_start
2020-04-02 10:26:11.361 T mdb_txn_safe: destructor
2020-04-02 10:26:11.361 D get_next_needed_pruning_stripe: want height 1 (1 from blockchain, 1 from block queue), stripe 1 (0/8 on it and 0 on 2, 0 others) -> 1 (+0), current pe
ers
2020-04-02 10:26:11.361 D No available peer in gray list filtered by 1
2020-04-02 10:26:12.296 D [node] sending stop signal
2020-04-02 10:26:12.296 D [node] Stop signal sent
2020-04-02 10:26:12.297 T Miner has received stop signal
2020-04-02 10:26:12.297 T Not mining - nothing to stop
2020-04-02 10:26:12.326 D Thread monitor number of peers - done
2020-04-02 10:26:12.361 I Failed to connect to any, trying seeds

Вот nginx журнал доступа:

217.28.60.132 - - [02/Apr/2020:10:26:33 +0000] "GET /getheight HTTP/1.1" 200 140 "-" "-"
217.28.60.132 - - [02/Apr/2020:10:26:37 +0000] "\x16\x03\x01\x00\xA5\x01\x00\x00\xA1\x03\x03\x10\xF1\x8B\x04\xE9\xC4\x03V\x12\x91\xF3U\xF1\x1B\xD3\xB6\x5C\xA8\xF8@" 400 182 "-" "
-"
217.28.60.132 - - [02/Apr/2020:10:26:37 +0000] "GET /getheight HTTP/1.1" 200 140 "-" "-"
217.28.60.132 - - [02/Apr/2020:10:26:56 +0000] "\x16\x03\x01\x00\xA5\x01\x00\x00\xA1\x03\x03>\x82\x10\xA1\xB43i\xA4j\x10\x04\x15 \xDCb\x07tQ\x187\xB9\x09\xD6\x1Bng\xA7\xB3\xE4\x8
B\x08\x14\x00\x00\x0E\xCC\xA9\xC0,\xC0+\xCC\xA8\xC00\xC0/\x00\xFF\x01\x00\x00j\x00\x00\x00\x12\x00\x10\x00\x00" 400 182 "-" "-"
217.28.60.132 - - [02/Apr/2020:10:26:56 +0000] "GET /getheight HTTP/1.1" 200 140 "-" "-"
217.28.60.132 - - [02/Apr/2020:10:26:58 +0000] "\x16\x03\x01\x00\xA5\x01\x00\x00\xA1\x03\x03\x14\x1B\xE6\x1F\x82\xCF\x09\xB9T\x8E\xD9<\x09Mf\xBE&\xA0\x9A9\xFCa\xF2\x94R\x02P\xAD;
le\xBA\x00\x00\x0E\xCC\xA9\xC0,\xC0+\xCC\xA8\xC00\xC0/\x00\xFF\x01\x00\x00j\x00\x00\x00\x12\x00\x10\x00\x00" 400 182 "-" "-"
217.28.60.132 - - [02/Apr/2020:10:26:58 +0000] "GET /getheight HTTP/1.1" 200 140 "-" "-"

Я действительно не понимаю, почему это не работает! пожалуйста, помогите!

...