ton-blockchain / ton

Main TON monorepo
Other
2.6k stars 715 forks source link

Send AdnlMessageNop instead empty Buffer for reverse pings #1015

Open andreypfau opened 3 weeks ago

andreypfau commented 3 weeks ago

This commit modifies send_message_ex to use AdnlMessageNop for empty payloads instead of AdnlMessageCustom. This change prevents exceptions in ADNL node implementations that expect non-empty messages, particularly addressing issues with reverse-ping operations from DHT nodes. Using AdnlMessageNop ensures proper handling of empty messages