| 69 | } |
| 70 | |
| 71 | void P2PProtocolBasic::send(BinaryArray &&body) { |
| 72 | no_outgoing_timer.once(float(config.p2p_no_outgoing_message_ping_timeout)); |
| 73 | on_msg_bytes(0, body.size()); |
| 74 | P2PProtocol::send(std::move(body)); |
| 75 | } |
| 76 | |
| 77 | Timestamp P2PProtocolBasic::get_local_time() const { return platform::now_unix_timestamp(); } |
| 78 |