You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
599 B

  1. // cryptonote protocol based commands are described here
  2. https://github.com/monero-project/monero/blob/ed8fc8ac1c694344e30d07f1cb1a5cb904b13f52/src/cryptonote_protocol/cryptonote_protocol_defs.h
  3. #define BC_COMMANDS_POOL_BASE 2000
  4. https://github.com/monero-project/monero/blob/master/src/p2p/p2p_protocol_defs.h
  5. #define P2P_COMMANDS_POOL_BASE 1000
  6. 0x3e9 1001
  7. 0x3ef 1007
  8. The protocol state machine works as follows
  9. if you are client
  10. connect,
  11. send support flags
  12. send handshake
  13. receive handshake, if height or top is different send, send notify request chain
  14. // fall into processing loop