Skip to content

Fix #60

どら edited this page May 24, 2019 · 26 revisions

Basic policy

  • Make a module of echo.rs in interledger-service-util crate
  • Insert the service into node.rs

Must-learn Specs

Brief Spec

  • echo service responds to the address of the connector
  • throws error when the data size of ILP packet is less than 17 bytes
    • 17 bytes = ECHOECHOECHOECHO + type(0)
  • throws error when the data does not start with ECHOECHOECHOECHO

ILP Packet handling in ilp-connector

  • index.ts
    • creates App and listen
  • app.ts
    • createApp loads accounts from env or config, and adds it to Accounts
    • listen
      • adminApi.listen()
      • backend.connect()
      • middlewareManager.setup()
      • accounts.loadIlpAddress()
      • accounts.connect()
      • middlewareManager.startup()
  • middleware-manager.ts
    • constructor adds BUILTIN_MIDDLEWARES
      • error-handler, throughput, etc...
      • error-handler is inserted first, and called first covering all the exceptions
    • setup adds plug-ins for each account, and sets up Pipelines
    • startup calls startup handlers of each account

memo

  • warning
Clone this wiki locally